brynja-agents — Sub-Millisecond Linux Process Sandbox for AI Agents
Zero-daemon, zero-root Linux process sandbox provider for the Mistral Agents SDK (CustomSandbox) and autonomous AI workflows, powered by a bundled ~88 KB #![no_std] zero-libc Rust binary using Linux Landlock LSM, Seccomp BPF, unprivileged network namespaces, and cgroups v2.
Install
pip install brynja-agents
Pre-built Linux platform wheels bundle the static brynja binary automatically — no Docker daemon, no Rust toolchain, and no sudo required.
Quick Start
from brynja_agents import BrynjaSandbox, Network
with BrynjaSandbox(network=Network.none(), memory_limit_mb=256) as sb:
sb.write_file("hello.py", "print(1 + 1)")
res = sb.execute("python3 hello.py")
print(res.stdout) # "2\n"
# Sub-5ms Copy-on-Write RL trajectory branching
branch = sb.fork()
branch.execute("echo 'isolated mutation' > test.txt")
branch.close()
Loopback Credential Proxy (Zero Secrets in Sandbox)
sb = BrynjaSandbox(
network=Network.allow(),
header_bindings={"api.mistral.ai": {"Authorization": "Bearer YOUR_KEY"}},
)
Secrets are injected transparently on the host loopback proxy — never exposed in sandbox environment variables or filesystem.
Benchmarks (Linux x86_64)
| Metric | Docker | brynja-agents |
|---|---|---|
| Cold Start | ~2,500 ms | 1.2 ms (>2,000x faster) |
| Memory RSS | ~150 MB | 192 KB |
CoW fork() Branch |
Seconds | 2.26 ms |
| Bundled Binary | Daemon + Image | ~88 KB static ELF |
See https://brynja.dev and AndybSe/brynja-core for full documentation.
Metadata
Release files for brynja-agents 1.6.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brynja_agents-1.6.4-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for brynja_agents-1.6.4-py3-none-manylinux_2_28_x86_64.whl |
Release files / brynja_agents-1.6.4-py3-none-manylinux_2_28_x86_64.whl
| Download URL | brynja_agents-1.6.4-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 193.7 kB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
4ff9930cb40c429ef9118221ff8a01f9308ca0fd1c0f15f2bc2554f03c7e1e06
|
|
BLAKE2b-256 checksum How to use checksums |
fe0771c3da6b502c061880000cfc2c0f63f41cbb61bf5de17e67ef19ccd9fad8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 25, 2026.
Transparency logSecurity for brynja-agents 1.6.4
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
1 file in this release has been uploaded with provenance metadata.
Attestation for brynja_agents-1.6.4-py3-none-manylinux_2_28_x86_64.whl
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 Nov 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.