vital-agentbox
Secure sandboxed code execution for AI agents. Runs Python and shell commands inside a Chromium + Pyodide (WASM) sandbox with two independent security boundaries — no host filesystem or network access from agent code.
Features
- Dual-layer isolation — Chromium renderer sandbox + WASM linear memory
- Virtual shell — tree-sitter-bash parser with 30+ builtins on in-memory FS
- Python execution — Pyodide (CPython 3.11 compiled to WASM)
- Git operations — isomorphic-git on Emscripten MemFS with S3/MinIO storage
- AI-friendly editing —
editbuiltin with fuzzy + AST-aware matching - LangChain & Deep Agents — toolkit, tools, and sandbox backend integrations
- Scalable — orchestrator + worker architecture with Redis routing
Box types
| Type | Description |
|---|---|
| MemBox | Ephemeral in-memory sandbox (default) |
| GitBox | MemBox + isomorphic-git + pluggable storage (S3/MinIO/local) |
| FileSystemBox | Local dev only, backed by host directory |
Install
# Lightweight client (for LangGraph / Deep Agent apps)
pip install vital-agentbox[client]
# Sandbox worker (runs Chromium + Pyodide)
pip install vital-agentbox[worker]
playwright install chromium
# Orchestrator (routes requests to workers, no Chromium)
pip install vital-agentbox[orchestrator]
# LangChain integration
pip install vital-agentbox[langchain]
Quick start
from agentbox.client import AgentBoxClient
client = AgentBoxClient("http://localhost:8090")
# Create a sandbox
sandbox = client.create_sandbox_sync(box_type="mem")
# Run Python
result = sandbox.execute_sync("print(2 + 2)")
print(result.stdout) # "4\n"
# Run shell commands
result = sandbox.execute_sync('echo "hello" > /file.txt && cat /file.txt', language="shell")
print(result.stdout) # "hello\n"
# AI-friendly file editing
result = sandbox.execute_sync(
"edit /file.txt --old 'hello' --new 'world'",
language="shell",
)
# Cleanup
sandbox.destroy_sync()
LangChain integration
from agentbox.langchain import AgentBoxToolkit
toolkit = AgentBoxToolkit(base_url="http://localhost:8090")
tools = toolkit.get_tools()
# → [CodeExecutionTool, ShellExecutionTool, FileWriteTool, FileReadTool]
Docker
# Full stack (orchestrator + 2 workers + MinIO)
docker compose up
# Single worker
docker run -p 8090:8000 --shm-size=2g agentbox-worker
Documentation
Full documentation is in the docs/ directory:
- Getting started
- Sandbox overview
- Shell builtins reference
- Client SDK reference
- REST API reference
- Deployment guide
System requirements
- Python ≥ 3.11
- Chromium (via
playwright install chromium) — worker only - Redis — orchestrator only
- For PDF generation: pandoc + LaTeX
License
Apache 2.0
Metadata
Release files for vital-agentbox 0.1.10
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 | Actions |
|---|---|---|---|---|
| vital_agentbox-0.1.10.tar.gz | 180.7 kB | Without provenance | Details for vital_agentbox-0.1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vital_agentbox-0.1.10-py3-none-any.whl | Python 3 | none | any | Details for vital_agentbox-0.1.10-py3-none-any.whl |
Total release size: 410.4 kB
Release files / vital_agentbox-0.1.10.tar.gz
| Download URL | vital_agentbox-0.1.10.tar.gz |
|---|---|
| Size | 180.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42abc9e0b791950b5aee64d9e82d1032031ea7ccea9786b84f8ed4e9df33d3ab
|
|
BLAKE2b-256 checksum How to use checksums |
eabfb8e998d18abf6202fa786f0753556411b98c9a74459e86bffadb4ef81329
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / vital_agentbox-0.1.10-py3-none-any.whl
| Download URL | vital_agentbox-0.1.10-py3-none-any.whl |
|---|---|
| Size | 229.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82f53c637c7fd60f06e0ed2ffc56cb5c0b9909eee1967b6f190f9c40a4d46b81
|
|
BLAKE2b-256 checksum How to use checksums |
b4904498c5a64d0f02fc13b6bb62c561e5ce2f6381631ded545fe0510d230e20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for vital-agentbox 0.1.10
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.