google-adk-withruntime
Runtime sandboxes for Google ADK. Each sandbox is a Firecracker microVM with its own Linux kernel. There are two ways to use one:
pip install google-adk-withruntime
npx withruntime login # or set RUNTIME_API_KEY
from google.adk.agents import Agent
from google_adk_withruntime import RuntimeCodeExecutor, RuntimeToolset
# The model writes Python blocks; ADK runs them in the sandbox.
analyst = Agent(model="gemini-flash-latest", name="analyst", code_executor=RuntimeCodeExecutor())
# The model calls shell and file tools in the sandbox.
coder = Agent(model="gemini-flash-latest", name="coder", tools=[RuntimeToolset()])
RuntimeCodeExecutoris an ADK code executor, likeContainerCodeExecutororGkeCodeExecutor, with no Docker daemon or cluster to run. Every block of one executor runs in the same sandbox, each in a newpython3process in/workspace, so files carry over. A block pasttimeout_seconds(300 by default) is killed and reports exit code 124.create={...}sets the sandbox (vcpu,memory_mib,image,network), andsandbox_id=runs in one you own.RuntimeToolsetgives the modelruntime_exec,runtime_read_file,runtime_write_fileandruntime_list_files. It starts its sandbox on first use and stops it when the runner closes it. Pass anAsyncSandboxto use one you own instead; it is never stopped for you.
Both give their own sandbox a 30-minute lease that ends in a stop, so a crashed process leaves nothing running. The executor keeps that lease extended while it is open.
Tests
tests/ runs both against fake clients;
uv run --resolution lowest-direct --group test pytest runs them at the lowest
versions pyproject.toml allows. scripts/e2e.py runs both through
ADK's own Runner, driven by a scripted model, against the real API with
RUNTIME_API_KEY set. It passed on 25 September 2026 with google-adk 2.10.0:
ADK ran the model's block in a sandbox, runtime_exec ran through function
calling, and both sandboxes were stopped.
Metadata
Release files for google-adk-withruntime 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| google_adk_withruntime-0.1.0.tar.gz | 12.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| google_adk_withruntime-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.3 kB
Release files / google_adk_withruntime-0.1.0.tar.gz
| Download URL | google_adk_withruntime-0.1.0.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0efdc51d4451dd717df9a1990a5aca3170a32734c7f41be3bf600abb2d610ed3
|
|
BLAKE2b-256 checksum How to use checksums |
b12dc833877814183129645bf26f2a35c5a8e0c20372d6188908aaf397a5ed04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logRelease files / google_adk_withruntime-0.1.0-py3-none-any.whl
| Download URL | google_adk_withruntime-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
644be9111a51936adba3302fb926c15e878d913f85f783abcb8fe245fcba3833
|
|
BLAKE2b-256 checksum How to use checksums |
9b3b547d279b876e74e42b52c2d736f899282029f46b4f6d6e14f647e0b0a204
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logSecurity for google-adk-withruntime 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for google_adk_withruntime-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.