In short.
This E2B documentation page shows Python developers how to run code, commands and file operations for agents built with Google's Agent Development Kit (ADK) inside an isolated remote E2B sandbox instead of on their own machine. Running code in the sandbox does not guarantee that an agent's code or answers are correct. It explains two approaches: application-controlled execution through the experimental E2BEnvironment, and model-controlled tools through the e2b-adk plugin. The plugin shares one sandbox across calls and documents automatic cleanup, timeout behavior and optional pause/resume configuration. Its success flag requires particular care: code exceptions and nonzero command exits can accompany success: True. The page includes data-analysis and code-generation examples, but nothing was executed for this report. Prices, licence terms, security guarantees and current package compatibility remain unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete page at [https://docs.e2b.dev/agents/google-adk.md], including both integration paths, embedded examples, tool-result semantics, the experimental native-environment notice and timeout configuration. All linked pages, repositories, package listings and the documentation index are excluded. No code was executed; installation, runtime behavior, security, performance, costs and current compatibility were not independently verified.
The overview
Identity
The resource is E2B's Google ADK integration guide at [https://docs.e2b.dev/agents/google-adk.md]. Google ADK is Google's agent-building framework, described here as using Gemini by default. E2B supplies the remote workspace where code, commands and file operations take place.
The page covers two integration paths: Google's native E2BEnvironment and the separate e2b-adk plugin. It is a guide to choosing and configuring those paths, rather than a standalone agent application.
Assessment
The guide's main practical value is its distinction between application control and agent control. With the native environment, your application explicitly runs commands and reads or writes files. With the plugin, the model receives tools and decides when to use them.
It provides useful implementation detail beyond installation, especially around shared state, cleanup and error interpretation. Its stronger claims about verified answers and tested code depend on the agent following its instructions and interpreting results correctly; the page does not demonstrate an enforcement mechanism or supply an independent test report.
Who it suits
The guide suits Python developers building Google ADK agents that need to calculate from data, execute generated code, manipulate files or start a service. Its complete examples can help developers new to E2B, although understanding Python imports, environment variables and asynchronous execution is useful.
The native path suits applications that already decide which operations to execute. The plugin suits agents that need to choose operations during a conversation. A reader seeking a ready-to-use application would still need to build and configure the surrounding agent.
Capabilities
The native E2BEnvironment exposes execute, read_file and write_file through ADK's environment API. The application explicitly initializes and closes that environment.
The plugin exposes six tools: run_code, run_command, write_file, read_file, list_files and start_background_command. Code runs in a stateful kernel, so variables persist between code calls. The background-command tool can optionally return a preview URL for a port. All six tools share the plugin's sandbox.
Using it
Requirements
For the native route, the documented installation is pip install "google-adk[e2b]>=2.3.0". The page labels E2BEnvironment experimental and says no additional integration package is required.
For the plugin route, pip install e2b-adk brings in Google ADK and the E2B Code Interpreter SDK. The demonstrated Gemini setup requires E2B_API_KEY and GOOGLE_API_KEY. The examples use gemini-2.5-flash; support for other models is not assessed here.
The page does not specify a minimum Python version, pin an e2b-adk release or provide a complete compatibility matrix. The data-analysis example uses pandas, but the page does not establish its availability across sandbox templates.
How it works
E2B provides an isolated remote workspace instead of running the documented operations on the application's host. With the plugin, the first tool call creates one sandbox, later calls reuse it, and the documented runner lifecycle closes it.
Every tool call renews the sandbox's timeout window. The page states that E2B's default is 300 seconds and that an idle gap beyond the timeout expires the sandbox under the default lifecycle. It shows lifecycle configuration with an on_timeout action of pause and auto_resume set to True for resuming across idle gaps.
Tool results distinguish failure to run an operation from failure inside that operation. A code exception or nonzero command exit can still produce success: True, with details in error or exit_code. Consumers must inspect those fields before treating the operation as successful.
Setup
For the native path, install the documented ADK extra, construct E2BEnvironment and await initialize(). Perform file and command operations, then await close() in a finally block so cleanup is attempted even if application work fails.
For the plugin path, install e2b-adk and configure the two API keys used by the example. Create E2BPlugin, pass plugin.get_tools() to Agent, and register that same plugin on App. The example runs the App inside an async with InMemoryRunner block.
Optional plugin settings include an API key, sandbox template, metadata, sandbox environment variables, timeout and lifecycle. The page says other AsyncSandbox.create() options are forwarded and unset options retain the E2B SDK defaults.
Examples
The data-analysis example supplies eight CSV rows containing monthly marketing spend and revenue for North and South. It instructs the agent to save sales.csv, use pandas through run_code and report computed figures. The displayed answer reports approximately $4 of revenue per $1 of spend for North and $2.5 for South. These are documentation examples, not independently observed results.
The question also asks which month performed best, while the displayed answer identifies the North region's April revenue. A real application should define whether best means highest revenue, best revenue-to-spend ratio or a result aggregated across regions.
The code-generation example asks for group_by(items, key) and instructs the agent to write tests, execute them, fix failures and return the final function. The page supplies the orchestration code, but no execution trace or resulting test report.
Assessment & evidence
Limitations
The native environment is explicitly experimental. The plugin depends on a remote sandbox service, and its shared workspace can expire during idle gaps under the documented default lifecycle. Cleanup is documented for the illustrated runner pattern; behavior after an application crash is not established.
Instructions to compute answers or test generated code express intended agent behavior. They do not establish that the model always follows those steps, that its tests cover the requested behavior or that its final explanation accurately reflects execution results.
The page describes isolation but provides no threat model, security evaluation, performance measurements, resource limits or workload benchmarks. Those properties were not assessed, and no code was executed.
Why the distinction matters
Choose based on where execution decisions belong. The native environment exposes operations your application invokes directly. The plugin supplies those operations as model-callable tools and adds shared sandbox lifecycle management.
For data analysis and generated code, an execution result gives an agent evidence it can use to revise its answer. The benefit still depends on inspecting errors, choosing suitable tests and interpreting the output correctly. The documented success flag makes that distinction especially important.
Alternatives
The two evidence-supported alternatives are the native E2BEnvironment and e2b-adk plugin described on this page. The native route offers direct application control and requires explicit initialization and cleanup. The plugin offers agent-callable tools and manages the sandbox lifecycle in the demonstrated runner setup.
The page does not compare other sandbox providers, local execution approaches or agent frameworks. Their relative costs, compatibility and security cannot be judged from this source.
Evidence
The evidence is the complete selected documentation page at [https://docs.e2b.dev/agents/google-adk.md]. It includes installation commands, embedded Python examples, sample output, tool descriptions, configuration details and links to further material.
The installation, lifecycle and API behavior described here are documentation claims. No commands or examples were executed. The linked Google documentation, GitHub files, PyPI listing, E2B reference pages and documentation index are outside this report's evidence.
Access & freshness
Costs
Cost is unknown. The page requires E2B credentials and, for its demonstrated model configuration, Gemini credentials, but gives no sandbox rates, model prices, free allowances or billing terms.
Timeout renewal and optional pause/resume behavior affect how the sandbox remains available, but the page does not explain their billing implications. It provides no measured cost for either example.
Rights
The supplied page contains no licence text or explicit redistribution permission for the documentation, embedded examples or e2b-adk package. Their reuse and redistribution terms are unknown from this evidence.
The page links to a package listing and source repository, but those destinations are outside the available evidence. E2B and model-service terms are also not established here.
Freshness
The supplied page was captured on 14 November 2026 at 20:33:16.182 UTC. It does not provide a publication or last-updated date, so the capture time does not establish when the instructions were written.
The native installation specifies google-adk[e2b]>=2.3.0, while the plugin installation is unpinned. The examples name gemini-2.5-flash. Current release compatibility, model availability and subsequent changes are unknown.
Practical next steps
Decide whether application code or the agent should control execution, then follow the corresponding setup. Before relying on the integration, confirm current dependency requirements, credentials, service prices and applicable licence terms.
For the plugin, check error and exit_code as well as success. Verify state persistence, runner cleanup and the timeout behavior your workload needs. For data analysis, define the requested metric; for generated code, use tests that represent the intended behavior.
Confirm the sandbox template contains the necessary libraries and configure pause/resume if work must survive idle gaps. The supplied page does not establish the outcomes of these checks.
