> ## Documentation Index
> Fetch the complete documentation index at: https://e2b.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://e2b.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://e2b.manicule.dev/api/mcp.
> Every agent surface: https://e2b.manicule.dev/.well-known/llms-manifest.json

# Coding Agents (/docs/use-cases/coding-agents)

<!-- agent-signals: reading_time_min: 2 · est_tokens: 913 · updated: 2026-07-30 -->
Related: [Computer use](/docs/use-cases/computer-use.md), [GitHub Actions CI/CD](/docs/use-cases/ci-cd.md), [Run Kubernetes with k3s](/docs/use-cases/k3s.md), [Cloud browser](/docs/use-cases/remote-browser.md), [BYOC (Bring Your Own Cloud)](/docs/byoc.md)

> 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="/_assets/b150888bc7257af83e3b85d3c2be4294f88986026f8168f6c12fc1fde6697350" href="/docs/agents/claude-code">Anthropic's autonomous coding agent with structured output and MCP tool support</Card>

<Card title="Codex" icon="/_assets/d23cc7052dbcbfb814d7d87ab616d7f24d70f7fa4051fcfd7d16a7ba26656267" href="/docs/agents/codex">OpenAI's coding agent with schema-validated output and image input</Card>

<Card title="Amp" icon="/_assets/215a0ef86a91f9e55e6da25f289f2818896304fb253306d8b317b2e150adb29e" href="/docs/agents/amp">Coding agent with streaming JSON and thread management</Card>

<Card title="OpenCode" icon="/_assets/4fe414df6d293d929a6881137a02e0fae5868bcf886c0fa101e1de4d68f28d8c" href="/docs/agents/opencode">Open-source multi-provider agent with a built-in web UI</Card>

<Card title="Mastra" icon="/_assets/7eff45a10ecc1248691bfe4a214260ffba8dceb17e9c3132dbcb79ccf1c2d8d9" href="/docs/agents/mastra">Build custom TypeScript coding agents with E2B-backed workspaces</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>
