e2b-sandbox
Guide for creating and managing E2B sandboxes using ComputeSDK. Use when building applications that need E2B provider for ComputeSDK - cloud sandboxes with full Linux environments, filesystem access, and microVM isolation.
How do I install this agent skill?
npx skills add https://github.com/computesdk/sandbox-skills --skill e2b-sandboxIs this agent skill safe to install?
- Gen Agent Trust Hubpass
No security issues were detected. The skill provides documentation and code examples for using the ComputeSDK E2B provider to manage cloud sandboxes. It follows standard development practices for credential management via environment variables and utilizes official packages and repositories from the vendor's ecosystem.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
1/1 file flagged
What does this agent skill do?
E2B Sandboxes with ComputeSDK
E2B provider for ComputeSDK - cloud sandboxes with full Linux environments, filesystem access, and microVM isolation.
Setup
npm install computesdk @computesdk/e2b
Set your credentials:
# .env
E2B_API_KEY=your_e2b_api_key
Quick Start
import { compute } from 'computesdk';
import { e2b } from '@computesdk/e2b';
compute.setConfig({
provider: e2b({
apiKey: process.env.E2B_API_KEY,
}),
});
const sandbox = await compute.sandbox.create();
const result = await sandbox.runCommand('echo "Hello from E2B!"');
console.log(result.stdout);
await sandbox.destroy();
You can also call the provider factory directly:
import { e2b } from '@computesdk/e2b';
const sdk = e2b({
apiKey: process.env.E2B_API_KEY,
});
const sandbox = await sdk.sandbox.create();
E2B Configuration
interface E2BConfig {
/** E2B API key - if not provided, will fallback to E2B_API_KEY environment variable */
apiKey?: string;
/** Execution timeout in milliseconds */
timeout?: number;
}
Full API
ComputeSDK exposes the same universal sandbox API across providers: sandbox.create(), sandbox.getById(), sandbox.destroy(), sandbox.runCommand(), sandbox.getInfo(), sandbox.getUrl(), and sandbox.filesystem.*.
Install the main skill for the complete reference:
npx skills add https://github.com/computesdk/sandbox-skills --skill computesdk
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/computesdk/sandbox-skills/e2b-sandbox">View e2b-sandbox on skillZs</a>