> ## Documentation Index
> Fetch the complete documentation index at: https://e2b-mintlify-changelog-1773668972.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Coding Agents

> Run AI coding agents like Claude Code, Codex, and Amp in secure E2B sandboxes with full terminal, filesystem, and git access.

Coding agents like [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview), [Codex](https://github.com/openai/codex), and [Amp](https://ampcode.com/) 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](/docs/template/quickstart) 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](/docs/template/quickstart) 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](/docs/template/quickstart). E2B also provides pre-built templates for popular agents to get you started quickly.

<CardGroup cols={2}>
  <Card title="Claude Code" icon="https://mintcdn.com/e2b-mintlify-changelog-1773668972/K8jBAXiTHGOIi3ab/images/icons/claude-code.svg?fit=max&auto=format&n=K8jBAXiTHGOIi3ab&q=85&s=925f2dfecfffb212b50ea0824ede6441" href="/docs/agents/claude-code" width="248" height="248" data-path="images/icons/claude-code.svg">
    Anthropic's autonomous coding agent with structured output and MCP tool support
  </Card>

  <Card title="Codex" icon="https://mintcdn.com/e2b-mintlify-changelog-1773668972/K8jBAXiTHGOIi3ab/images/icons/codex.svg?fit=max&auto=format&n=K8jBAXiTHGOIi3ab&q=85&s=7348b5456730a99cecc8e0de9b5d8019" href="/docs/agents/codex" width="512" height="512" data-path="images/icons/codex.svg">
    OpenAI's coding agent with schema-validated output and image input
  </Card>

  <Card title="Amp" icon="https://mintcdn.com/e2b-mintlify-changelog-1773668972/K8jBAXiTHGOIi3ab/images/icons/amp.svg?fit=max&auto=format&n=K8jBAXiTHGOIi3ab&q=85&s=337efc83341c71807765758f777fa0fb" href="/docs/agents/amp" width="21" height="21" data-path="images/icons/amp.svg">
    Coding agent with streaming JSON and thread management
  </Card>

  <Card title="OpenCode" icon="https://mintcdn.com/e2b-mintlify-changelog-1773668972/K8jBAXiTHGOIi3ab/images/icons/opencode.svg?fit=max&auto=format&n=K8jBAXiTHGOIi3ab&q=85&s=76250c6c5b3c211e34c5e1be079ca18d" href="/docs/agents/opencode" width="240" height="300" data-path="images/icons/opencode.svg">
    Open-source multi-provider agent with a built-in web UI
  </Card>
</CardGroup>

## Related Guides

<CardGroup cols={3}>
  <Card title="Git Integration" icon="code-branch" href="/docs/sandbox/git-integration">
    Clone repos, manage branches, and push changes from sandboxes
  </Card>

  <Card title="Sandbox Persistence" icon="floppy-disk" href="/docs/sandbox/persistence">
    Pause and resume sandboxes to preserve state
  </Card>

  <Card title="Custom Templates" icon="cube" href="/docs/template/quickstart">
    Build your own sandbox templates with custom tools and dependencies
  </Card>
</CardGroup>
