Skip to main content

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).

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:
    ...

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

Release files for deepagents-sbx 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepagents-sbx 0.1.0
File Size Uploaded
deepagents_sbx-0.1.0.tar.gz 27.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepagents-sbx 0.1.0
File Interpreter ABI Platform
deepagents_sbx-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.5 kB

Release files / deepagents_sbx-0.1.0.tar.gz

Download URL deepagents_sbx-0.1.0.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7f7bad4b5ac6a7a5d37c15a5a46c720e4464fd275abfb1e03fc0a1c1582b197a
BLAKE2b-256 checksum
How to use checksums
8bc3c3e3fcd6d3eb9132fc215f54a48c6abe4ed7275b10fcf363996c0f013199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / deepagents_sbx-0.1.0-py3-none-any.whl

Download URL deepagents_sbx-0.1.0-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23743c6b919027db0be87937f8b2d386cfb1d86b3aa964429d967a9da039bd39
BLAKE2b-256 checksum
How to use checksums
5bae7f0bdbde7632399c292a4d6c8a34fbc7770c52b43afd245f367b1d9d4c29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page