sbx-agents
Build with Codex, OpenCode, Claude Code, or your favorite AI coding agent from Python.
sbx-agents runs coding agents in isolated sandboxes and gives your app structured access to output, logs, diffs, files, and events.
Install
With uv:
uv add sbx-agents
With pip:
pip install sbx-agents
Install the sbxa CLI as a standalone uv tool:
uv tool install sbx-agents
sbxa --help
For local development:
uv tool install -e .
sbxa --help
Basic Example
from pathlib import Path
from sbx_agents import Agent, Runner
from sbx_agents.backends import Codex
from sbx_agents.sandboxes import DockerSbxSandbox
agent = Agent(
name="fix-tests",
backend=Codex(model="gpt-5-codex"),
instructions="Fix failing tests with the smallest safe diff.",
)
result = Runner.run_sync(
agent,
sandbox=DockerSbxSandbox(
workspace=Path("."),
branch="agent/fix-tests",
),
prompt="Fix the failing pytest suite.",
)
print(result.output)
print(result.diff)
Define a reusable runner and launch it later with sbxa:
runner = Runner(
agent,
sandbox=DockerSbxSandbox(workspace=Path("."), branch="agent/fix-tests"),
default_prompt="Fix the failing pytest suite.",
)
sbxa run main:runner
Backends
Agent backends:
CodexOpenCodeShell- custom backends
Sandbox backends:
DockerSbxSandboxDockerSandbox- custom backends
Docs
Full docs, examples, API reference:
Metadata
Release files for sbx-agents 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 | |
|---|---|---|---|---|
| sbx_agents-0.1.0.tar.gz | 112.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sbx_agents-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 142.0 kB
Release files / sbx_agents-0.1.0.tar.gz
| Download URL | sbx_agents-0.1.0.tar.gz |
|---|---|
| Size | 112.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39ddf0946f61b9ee90887ca6daa20ab1f0c2db1485fd3b63326c04a6fe9dc643
|
|
BLAKE2b-256 checksum How to use checksums |
2a01d9a605b2f77f6708021da979513d1be237357e0169db52483cac63bc7ded
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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 / sbx_agents-0.1.0-py3-none-any.whl
| Download URL | sbx_agents-0.1.0-py3-none-any.whl |
|---|---|
| Size | 29.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd07e30432ee30ee52427601f60f263ea8c79af7c9808ddd4451544883241db9
|
|
BLAKE2b-256 checksum How to use checksums |
59da62eba96175a130dfd9e6a282f7a403349a7f6e4fe11fbc59be0447d85329
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}
|
Security for sbx-agents 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.