Skip to main content

Documentation Index

Fetch the complete documentation index at: https://e2b-mintlify-b093f5ae.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Coding agents like Claude Code, Codex, and Amp can write, debug, and refactor code autonomously. E2B sandboxes give each agent a full Linux environment with terminal, filesystem, and git — completely isolated from your infrastructure. Pre-built templates mean you can go from zero to a running agent in a single API call.

Why Use a Sandbox

Running coding agents directly on your machine or servers means giving AI-generated code unrestricted access to your environment. E2B sandboxes solve this:
  1. Isolation — agent-generated code runs in a secure sandbox, never touching your production systems or local machine
  2. Full dev environment — terminal, filesystem, git, and package managers are all available out of the box, so agents work like a developer would
  3. Pre-built templates — ready-made templates for popular agents get you started fast, and you can build your own for any agent
  4. Scalability — run many sandboxes in parallel, each with its own agent on a separate task

How It Works

  1. Create a sandbox — use a pre-built template or build your own with any agent installed
  2. Agent gets a full environment — terminal, filesystem, git access, and any tools installed in the template
  3. Agent works autonomously — it reads the codebase, writes code, runs tests, and iterates until the task is done
  4. Extract results — pull out the git diff, structured output, or modified files via the SDK. The sandbox stays available for follow-up work, or you can pause it to pick up later

Agent Examples

Since each sandbox is a full Linux environment, you can run any coding agent — just install it in a custom template. E2B also provides pre-built templates for popular agents to get you started quickly.
https://mintcdn.com/e2b-mintlify-b093f5ae/4q-nKVKoN7S6MNYa/images/icons/claude-code.svg?fit=max&auto=format&n=4q-nKVKoN7S6MNYa&q=85&s=0976ad5b84b4b1dd4259f1636cae217c

Claude Code

Anthropic’s autonomous coding agent with structured output and MCP tool support
https://mintcdn.com/e2b-mintlify-b093f5ae/4q-nKVKoN7S6MNYa/images/icons/codex.svg?fit=max&auto=format&n=4q-nKVKoN7S6MNYa&q=85&s=f4a4f4676115d217909a84638b13aff8

Codex

OpenAI’s coding agent with schema-validated output and image input
https://mintcdn.com/e2b-mintlify-b093f5ae/4q-nKVKoN7S6MNYa/images/icons/amp.svg?fit=max&auto=format&n=4q-nKVKoN7S6MNYa&q=85&s=03d43e49b1776b18a83afe58f4f750f6

Amp

Coding agent with streaming JSON and thread management
https://mintcdn.com/e2b-mintlify-b093f5ae/4q-nKVKoN7S6MNYa/images/icons/opencode.svg?fit=max&auto=format&n=4q-nKVKoN7S6MNYa&q=85&s=0914eb008f378525c8af0ecd4ea7f7a5

OpenCode

Open-source multi-provider agent with a built-in web UI

Git Integration

Clone repos, manage branches, and push changes from sandboxes

Sandbox Persistence

Pause and resume sandboxes to preserve state

Custom Templates

Build your own sandbox templates with custom tools and dependencies