Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/agents/amp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@

## Run headless

Use `-x` for non-interactive mode and `--dangerously-allow-all` to auto-approve all tool calls (safe inside E2B sandboxes). Amp uses its own API key from [ampcode.com/settings](https://ampcode.com/settings).
Use `-x` for non-interactive mode and `--dangerously-allow-all` to auto-approve all tool calls. The sandbox isolates the agent from your host machine, but sandboxes can reach the open internet by default — restrict outbound traffic with [network rules](/docs/network/internet-access). Amp uses its own API key from [ampcode.com/settings](https://ampcode.com/settings).

<Note>
Auto-approving tool calls is contained by the sandbox: the agent cannot touch your host machine, local files, or credentials. It can still make outbound network requests — internet access is enabled by default. To limit where an auto-approved agent can connect, configure [outbound network rules](/docs/network/internet-access) (`allowInternetAccess`, plus allow/deny lists by CIDR or hostname). Hostname rules apply to HTTP(S) traffic only; use CIDR rules for other protocols.

Check warning on line 28 in docs/agents/amp.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/amp.mdx#L28

Did you really mean 'hostname'?

Check warning on line 28 in docs/agents/amp.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/amp.mdx#L28

Did you really mean 'Hostname'?
</Note>

<CodeGroup>
```typescript JavaScript & TypeScript
Expand Down Expand Up @@ -64,7 +68,7 @@

const sandbox = await Sandbox.create('amp', {
envs: { AMP_API_KEY: process.env.AMP_API_KEY },
timeoutMs: 600_000,

Check warning on line 71 in docs/agents/amp.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/amp.mdx#L71

Did you really mean 'timeoutMs'?
})

await sandbox.git.clone('https://github.com/your-org/your-repo.git', {
Expand Down Expand Up @@ -180,7 +184,7 @@

const sandbox = await Sandbox.create('amp', {
envs: { AMP_API_KEY: process.env.AMP_API_KEY },
timeoutMs: 600_000,

Check warning on line 187 in docs/agents/amp.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/amp.mdx#L187

Did you really mean 'timeoutMs'?
})

// Start a new thread
Expand All @@ -191,7 +195,7 @@

// List threads and get the most recent thread ID
const threads = await sandbox.commands.run('amp threads list --json')
const threadId = JSON.parse(threads.stdout)[0].id

Check warning on line 198 in docs/agents/amp.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/amp.mdx#L198

Did you really mean 'threadId'?

// Continue the thread with a follow-up task
const followUp = await sandbox.commands.run(
Expand Down Expand Up @@ -288,7 +292,7 @@

<CodeGroup>
```bash JavaScript & TypeScript
npx tsx build.ts

Check warning on line 295 in docs/agents/amp.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/amp.mdx#L295

Did you really mean 'npx'?
```
```bash Python
python build.py
Expand All @@ -302,7 +306,7 @@
Auto-pause, resume, and manage sandbox lifecycle
</Card>
<Card title="Git integration" icon="code-branch" href="/docs/sandbox/git-integration">
Clone repos, manage branches, and push changes

Check warning on line 309 in docs/agents/amp.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/amp.mdx#L309

Did you really mean 'repos'?
</Card>
<Card title="SSH access" icon="terminal" href="/docs/sandbox/ssh-access">
Connect to the sandbox via SSH for interactive sessions
Expand Down
6 changes: 5 additions & 1 deletion docs/agents/claude-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
icon: "/images/icons/claude-code.svg"
---

[Claude Code](https://docs.anthropic.com/en/docs/claude-code) is Anthropic's agentic coding tool. E2B provides a pre-built `claude` template with Claude Code already installed.

Check warning on line 7 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L7

Did you really mean 'Anthropic's'?

Check warning on line 7 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L7

Did you really mean 'agentic'?

## CLI

Expand All @@ -22,7 +22,11 @@

## Run headless

Use `-p` for non-interactive mode and `--dangerously-skip-permissions` to auto-approve all tool calls (safe inside E2B sandboxes).
Use `-p` for non-interactive mode and `--dangerously-skip-permissions` to auto-approve all tool calls. The sandbox isolates the agent from your host machine, but sandboxes can reach the open internet by default — restrict outbound traffic with [network rules](/docs/network/internet-access) if the agent processes untrusted input or handles secrets.

Check warning on line 25 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L25

Did you really mean 'untrusted'?

<Note>
Auto-approving tool calls is contained by the sandbox: the agent cannot touch your host machine, local files, or credentials. It can still make outbound network requests — internet access is enabled by default. To limit where an auto-approved agent can connect, configure [outbound network rules](/docs/network/internet-access) (`allowInternetAccess`, plus allow/deny lists by CIDR or hostname). Hostname rules apply to HTTP(S) traffic only; use CIDR rules for other protocols.

Check warning on line 28 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L28

Did you really mean 'hostname'?

Check warning on line 28 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L28

Did you really mean 'Hostname'?
</Note>

<CodeGroup>
```typescript JavaScript & TypeScript
Expand Down Expand Up @@ -64,7 +68,7 @@

const sandbox = await Sandbox.create('claude', {
envs: { ANTHROPIC_API_KEY: process.env.ANTHROPIC_API_KEY },
timeoutMs: 600_000,

Check warning on line 71 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L71

Did you really mean 'timeoutMs'?
})

await sandbox.git.clone('https://github.com/your-org/your-repo.git', {
Expand Down Expand Up @@ -220,7 +224,7 @@

const sandbox = await Sandbox.create('claude', {
envs: { ANTHROPIC_API_KEY: process.env.ANTHROPIC_API_KEY },
timeoutMs: 600_000,

Check warning on line 227 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L227

Did you really mean 'timeoutMs'?
})

// Start a new session
Expand All @@ -230,7 +234,7 @@

// Extract session ID from the JSON response
const response = JSON.parse(initial.stdout)
const sessionId = response.session_id

Check warning on line 237 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L237

Did you really mean 'sessionId'?

// Continue with a follow-up task
const followUp = await sandbox.commands.run(
Expand Down Expand Up @@ -334,7 +338,7 @@

const sandbox = await Sandbox.create('claude', {
envs: { ANTHROPIC_API_KEY: process.env.ANTHROPIC_API_KEY },
mcp: {

Check warning on line 341 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L341

Did you really mean 'mcp'?
browserbase: {
apiKey: process.env.BROWSERBASE_API_KEY,
projectId: process.env.BROWSERBASE_PROJECT_ID,
Expand All @@ -342,8 +346,8 @@
},
})

const mcpUrl = sandbox.getMcpUrl()

Check warning on line 349 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L349

Did you really mean 'mcpUrl'?
const mcpToken = await sandbox.getMcpToken()

Check warning on line 350 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L350

Did you really mean 'mcpToken'?

await sandbox.commands.run(
`claude mcp add --transport http e2b-mcp-gateway ${mcpUrl} --header "Authorization: Bearer ${mcpToken}"`
Expand Down Expand Up @@ -437,7 +441,7 @@

<CodeGroup>
```bash JavaScript & TypeScript
npx tsx build.ts

Check warning on line 444 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L444

Did you really mean 'npx'?
```
```bash Python
python build.py
Expand All @@ -454,6 +458,6 @@
Auto-pause, resume, and manage sandbox lifecycle
</Card>
<Card title="Git integration" icon="code-branch" href="/docs/sandbox/git-integration">
Clone repos, manage branches, and push changes

Check warning on line 461 in docs/agents/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/claude-code.mdx#L461

Did you really mean 'repos'?
</Card>
</CardGroup>
6 changes: 5 additions & 1 deletion docs/agents/codex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@

## Run headless

Use `codex exec` for non-interactive mode and `--full-auto` to auto-approve tool calls (safe inside E2B sandboxes). Pass `--skip-git-repo-check` to bypass git directory ownership checks inside the sandbox. Pass `CODEX_API_KEY` as an environment variable.
Use `codex exec` for non-interactive mode and `--full-auto` to auto-approve tool calls. The sandbox isolates the agent from your host machine, but sandboxes can reach the open internet by default — restrict outbound traffic with [network rules](/docs/network/internet-access). Pass `--skip-git-repo-check` to bypass git directory ownership checks inside the sandbox. Pass `CODEX_API_KEY` as an environment variable.

<Note>
Auto-approving tool calls is contained by the sandbox: the agent cannot touch your host machine, local files, or credentials. It can still make outbound network requests — internet access is enabled by default. To limit where an auto-approved agent can connect, configure [outbound network rules](/docs/network/internet-access) (`allowInternetAccess`, plus allow/deny lists by CIDR or hostname). Hostname rules apply to HTTP(S) traffic only; use CIDR rules for other protocols.

Check warning on line 28 in docs/agents/codex.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/codex.mdx#L28

Did you really mean 'hostname'?

Check warning on line 28 in docs/agents/codex.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/codex.mdx#L28

Did you really mean 'Hostname'?
</Note>

<CodeGroup>
```typescript JavaScript & TypeScript
Expand Down Expand Up @@ -66,7 +70,7 @@

const sandbox = await Sandbox.create('codex', {
envs: { CODEX_API_KEY: process.env.CODEX_API_KEY },
timeoutMs: 600_000,

Check warning on line 73 in docs/agents/codex.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/codex.mdx#L73

Did you really mean 'timeoutMs'?
})

await sandbox.git.clone('https://github.com/your-org/your-repo.git', {
Expand Down Expand Up @@ -246,19 +250,19 @@

## Image input

Pass screenshots or design mockups with `--image` to give Codex visual context alongside the prompt.

Check warning on line 253 in docs/agents/codex.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/codex.mdx#L253

Did you really mean 'mockups'?

<CodeGroup>
```typescript JavaScript & TypeScript
import fs from 'fs'

Check warning on line 257 in docs/agents/codex.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/codex.mdx#L257

Did you really mean 'fs'?
import { Sandbox } from 'e2b'

const sandbox = await Sandbox.create('codex', {
envs: { CODEX_API_KEY: process.env.CODEX_API_KEY },
timeoutMs: 600_000,

Check warning on line 262 in docs/agents/codex.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/codex.mdx#L262

Did you really mean 'timeoutMs'?
})

// Upload a design mockup to the sandbox

Check warning on line 265 in docs/agents/codex.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/codex.mdx#L265

Did you really mean 'mockup'?
await sandbox.files.write(
'/home/user/mockup.png',
fs.readFileSync('./mockup.png')
Expand Down Expand Up @@ -344,7 +348,7 @@

<CodeGroup>
```bash JavaScript & TypeScript
npx tsx build.ts

Check warning on line 351 in docs/agents/codex.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/codex.mdx#L351

Did you really mean 'npx'?
```
```bash Python
python build.py
Expand All @@ -358,7 +362,7 @@
Auto-pause, resume, and manage sandbox lifecycle
</Card>
<Card title="Git integration" icon="code-branch" href="/docs/sandbox/git-integration">
Clone repos, manage branches, and push changes

Check warning on line 365 in docs/agents/codex.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/codex.mdx#L365

Did you really mean 'repos'?
</Card>
<Card title="SSH access" icon="terminal" href="/docs/sandbox/ssh-access">
Connect to the sandbox via SSH for interactive sessions
Expand Down
4 changes: 4 additions & 0 deletions docs/agents/devin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

After installation and login, use `devin -p` for non-interactive mode and `--permission-mode dangerous` to auto-approve tool calls.

<Note>
Auto-approving tool calls is contained by the sandbox: the agent cannot touch your host machine, local files, or credentials. It can still make outbound network requests — internet access is enabled by default. To limit where an auto-approved agent can connect, configure [outbound network rules](/docs/network/internet-access) (`allowInternetAccess`, plus allow/deny lists by CIDR or hostname). Hostname rules apply to HTTP(S) traffic only; use CIDR rules for other protocols.

Check warning on line 29 in docs/agents/devin.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/devin.mdx#L29

Did you really mean 'hostname'?

Check warning on line 29 in docs/agents/devin.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/devin.mdx#L29

Did you really mean 'Hostname'?
</Note>

```bash
mkdir -p /home/user/project
cd /home/user/project
Expand Down
6 changes: 5 additions & 1 deletion docs/agents/grok.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
icon: "/images/icons/grok.svg"
---

[Grok Build](https://x.ai/cli) is xAI's coding agent and CLI. E2B provides a pre-built `grok` template with Grok Build already installed.

Check warning on line 7 in docs/agents/grok.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/grok.mdx#L7

Did you really mean 'xAI's'?

## CLI

Expand All @@ -22,7 +22,11 @@

## Run headless

Use `-p` for non-interactive mode and `--always-approve` to auto-approve all tool calls (safe inside E2B sandboxes). Grok Build authenticates with an API key from the [xAI console](https://console.x.ai) via the `XAI_API_KEY` environment variable.
Use `-p` for non-interactive mode and `--always-approve` to auto-approve all tool calls. The sandbox isolates the agent from your host machine, but sandboxes can reach the open internet by default — restrict outbound traffic with [network rules](/docs/network/internet-access). Grok Build authenticates with an API key from the [xAI console](https://console.x.ai) via the `XAI_API_KEY` environment variable.

<Note>
Auto-approving tool calls is contained by the sandbox: the agent cannot touch your host machine, local files, or credentials. It can still make outbound network requests — internet access is enabled by default. To limit where an auto-approved agent can connect, configure [outbound network rules](/docs/network/internet-access) (`allowInternetAccess`, plus allow/deny lists by CIDR or hostname). Hostname rules apply to HTTP(S) traffic only; use CIDR rules for other protocols.

Check warning on line 28 in docs/agents/grok.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/grok.mdx#L28

Did you really mean 'hostname'?

Check warning on line 28 in docs/agents/grok.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/grok.mdx#L28

Did you really mean 'Hostname'?
</Note>

<CodeGroup>
```typescript JavaScript & TypeScript
Expand Down Expand Up @@ -64,7 +68,7 @@

const sandbox = await Sandbox.create('grok', {
envs: { XAI_API_KEY: process.env.XAI_API_KEY },
timeoutMs: 600_000,

Check warning on line 71 in docs/agents/grok.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/grok.mdx#L71

Did you really mean 'timeoutMs'?
})

await sandbox.git.clone('https://github.com/your-org/your-repo.git', {
Expand Down Expand Up @@ -163,7 +167,7 @@

<CodeGroup>
```bash JavaScript & TypeScript
npx tsx build.ts

Check warning on line 170 in docs/agents/grok.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/grok.mdx#L170

Did you really mean 'npx'?
```
```bash Python
python build.py
Expand All @@ -177,7 +181,7 @@
Auto-pause, resume, and manage sandbox lifecycle
</Card>
<Card title="Git integration" icon="code-branch" href="/docs/sandbox/git-integration">
Clone repos, manage branches, and push changes

Check warning on line 184 in docs/agents/grok.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/agents/grok.mdx#L184

Did you really mean 'repos'?
</Card>
<Card title="SSH access" icon="terminal" href="/docs/sandbox/ssh-access">
Connect to the sandbox via SSH for interactive sessions
Expand Down