deepagents-sbx (Python)
Docker Sandboxes (sbx) microVM sandbox backend for
Deep Agents.
This package implements
BaseSandbox
on top of a Docker Sandboxes microVM — its own kernel plus a private Docker
daemon — so agents run arbitrary code behind a hard isolation boundary.
Install
pip install deepagents-sbx # backend only
pip install "deepagents-sbx[code]" # + Deep Agents Code provider
Requires Python 3.12+ and the free
sbx CLI installed and logged in
(sbx login). Local sandboxes always need the CLI; for Docker Cloud Sandboxes
you can skip it with the opt-in API transport.
Use
from deepagents import create_deep_agent
from deepagents_sbx import SbxSandbox
with SbxSandbox(memory="4g") as backend: # creates + auto-removes
agent = create_deep_agent(model="anthropic:...", backend=backend)
agent.invoke({"messages": [{"role": "user", "content": "Run the test suite"}]})
Bind-mount a host project (mounted at the same absolute path inside the VM):
with SbxSandbox(workspace="/path/to/project") as backend:
...
Cloud via the API (optional)
Cloud normally uses the same CLI with --cloud. To drive Docker Cloud Sandboxes
over Docker's experimental
Sandboxes API with no sbx
process, swap in ApiSbxTransport (standard library only, no new dependency):
from deepagents_sbx import ApiSbxTransport, SbxSandbox
transport = ApiSbxTransport(docker_id="you", personal_access_token="dckr_pat_…")
with SbxSandbox(cloud=True, transport=transport, ttl="10m") as backend:
backend.execute("echo hello")
Auth is independent of sbx login (OAuth or a PAT with the sandbox:use
permission). The API is experimental and cloud-only.
Deep Agents Code
Installing the code extra registers the sbx provider:
dcode --sandbox sbx
See the repository README for the full architecture, API mapping, and testing strategy.
License
MIT
Metadata
Release files for deepagents-sbx 0.2.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 | |
|---|---|---|---|
| deepagents_sbx-0.2.0.tar.gz | 41.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deepagents_sbx-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.4 kB
Release files / deepagents_sbx-0.2.0.tar.gz
| Download URL | deepagents_sbx-0.2.0.tar.gz |
|---|---|
| Size | 41.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9cd7c085af8d100b8a9e406b9241845ab8c90b7c746e048fa22bda95e6422c8
|
|
BLAKE2b-256 checksum How to use checksums |
fb4234a3a492b7c7b2b7c2b82921d9d0794647305d8f93d48386868a36b5043b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / deepagents_sbx-0.2.0-py3-none-any.whl
| Download URL | deepagents_sbx-0.2.0-py3-none-any.whl |
|---|---|
| Size | 29.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29a1209e4b4f6a5aaffae72e9a9a4afe6abf49af7eab97c244e3343b3988c5d5
|
|
BLAKE2b-256 checksum How to use checksums |
3efc908e3ccda0ea504dcbbadb5f762cbb223e56e405e02690fae9f543a72853
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|