In short.
E2B’s Amp guide is for developers who want a coding agent in an isolated environment, but its automated examples approve all tools and require deliberate network and credential controls. It documents a preinstalled Amp template, repository workflows, JSON event streaming, thread continuation and custom environments. The page supplies implementation examples, but does not establish coding quality, pricing, exact software versions or independent security results. None of the examples were executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete selected page at [https://docs.e2b.dev/agents/amp.md], including its documentation-index notice, network warning, code examples and related-guide links. The documentation index and all linked destinations are excluded, including Amp settings, E2B CLI, network rules, persistence and SSH documentation. Commands, sandbox behavior, security properties, generated code and task outcomes were not tested.
The overview
identity
This is E2B’s integration guide for Amp at [https://docs.e2b.dev/agents/amp.md]. It describes Amp as a coding agent with multiple models and built-in code intelligence, and provides an E2B template named amp with the agent already installed. It does not identify the underlying models or their versions.
assessment
The guide offers a concrete starting point for developers automating coding tasks in a separate execution environment. Its strongest practical feature is the connection between agent execution, repository access and inspecting changes with git diff.
Host isolation does not establish that an automated task is safe or correct. The examples authorize every tool call, and the page explicitly warns that outbound internet access is enabled by default. No successful task results, accuracy measurements or independent isolation assessments are supplied.
users
The material suits developers building scripts or services that ask Amp to modify repositories, generate code or continue a coding task over several prompts. Python and JavaScript/TypeScript examples support readers working in either ecosystem.
Beginners need familiarity with terminal commands, environment variables, API keys and Git. The page does not teach these foundations or provide a complete first-time E2B installation and authentication walkthrough.
capabilities
The documented integration supports interactive CLI sessions, non-interactive prompts, filesystem and terminal operations, Git repository work, streamed output and conversation threads that can receive follow-up tasks.
The guide also shows deriving a custom environment from the amp template. Its JSONL streaming option exposes events described as including tool calls, token usage, thinking blocks and permission decisions; the examples handle assistant and result events.
Using it
requirements
You need E2B access through its CLI or SDK and an Amp API key from [https://ampcode.com/settings]. The SDK examples pass that key into the sandbox as AMP_API_KEY. The authenticated repository example additionally expects GITHUB_TOKEN.
SDK installation commands, supported runtime versions, E2B authentication details and account entitlements are not specified. The custom-template example chooses two CPUs and 2048 MB of memory; these are example settings, not documented minimum requirements.
mechanism
The SDK creates an E2B sandbox from the amp template, injects environment variables and runs Amp through the sandbox’s command interface. Amp’s -x flag supplies a non-interactive task, while --dangerously-allow-all automatically approves tool calls. The calling program can collect output, inspect a Git diff and terminate the sandbox.
The page describes isolation from the host machine, local files and host credentials. Credentials and repository data deliberately supplied to the sandbox remain sensitive inputs. Outbound restrictions use allowInternetAccess and allow/deny rules; hostname rules cover HTTP(S), while other protocols require CIDR rules.
setup
For interactive use, the page shows e2b sbx create amp, followed by amp inside the sandbox. For automation, its Python and TypeScript examples create the amp sandbox, supply AMP_API_KEY, run a prompt, print output and call sandbox.kill().
Repository examples configure a ten-minute sandbox timeout, clone a repository into /home/user/repo and run Amp from that directory. Custom environments extend the amp template and use Template.build. These are documented setup paths; installation prerequisites and error recovery require further information.
example
One example clones an authenticated GitHub repository, asks Amp to add error handling to API endpoints, streams its output and prints git diff before terminating the sandbox. This demonstrates the intended sequence for reviewing a proposed code change, but supplies no resulting patch or test output.
Another example asks Amp for a refactoring plan, lists conversation threads and continues the first listed thread with an implementation request. It illustrates follow-up work within the same sandbox; it does not demonstrate recovery after that sandbox is terminated.
Assessment & evidence
limitations
Several snippets assume /home/user/repo already exists. The thread example selects the first entry returned by the thread list, without establishing ordering guarantees. Thread availability after sandbox destruction is unknown.
The streaming handlers split each stdout callback into lines and parse them immediately. The page does not establish whether callbacks always contain complete JSON records, so buffering may be necessary. Cleanup appears at the end of the examples without an error-handling path; reliable cleanup and preservation of required files need additional implementation.
reasoning
The documented combination of a preinstalled agent, command execution and Git inspection makes this a plausible starting point for automated repository tasks. That assessment follows from the integration shown, rather than measured task performance.
The main adoption tradeoff is operational: broad tool approval reduces interaction, while default internet access and supplied credentials require explicit controls. A Git diff supports human review but does not establish that generated code works.
alternatives
Within the guide, the CLI offers an interactive entry point, SDK calls support automation, and a custom template can preinstall dependencies or configuration. These are different ways to use the same integration.
The page does not compare Amp with other coding agents or E2B with other execution environments. Relative price, coding quality, speed and isolation are not assessed.
evidence
The evidence is the complete E2B Amp documentation page at [https://docs.e2b.dev/agents/amp.md]. Its source revision is sha256:fe379a7f2c6bdcc7e634b461bfe67dd9680b4826c8f0b22a5725d3611743632b.
The page supports descriptions of its commands, examples and stated behavior. It contains no execution receipts, generated patches, benchmarks or independent security findings. Nothing was executed, and runtime behavior remains unverified.
Access & freshness
costs
The page provides no E2B or Amp prices, free allowances, billing units or worked cost examples. Total operating cost is unknown. Token-usage events and sample CPU, memory and timeout settings do not establish a monetary charge.
rights
The selected page states no licence or redistribution terms for its documentation, code examples or prebuilt template. It also does not establish terms for generated code, repository data handling or retention. Those rights and obligations remain unknown from this page.
freshness
The document was captured on 2026-11-13 at 12:32:50.017 UTC. The page supplies no publication or last-update date and pins no Amp, SDK or template version. The capture time establishes when this text was available, not when its examples last worked.
actions
Before adopting the integration, confirm current prerequisites, pricing and applicable terms. Configure outbound access for the intended task, scope repository credentials carefully and decide which files or results must be saved before terminating the sandbox.
Start with a small repository task, inspect the resulting diff and run relevant project checks before accepting changes. For a longer-lived integration, verify JSON stream handling, thread identification, failure cleanup and persistence behavior.
