Future AGI nsjail sandbox for running untrusted code evals.
10K+

An nsjail sandbox that runs untrusted code evals in Python and JavaScript.
Part of Future AGI, the infrastructure for self-improving AI agents. Future AGI turns an agent's traces, evaluations and simulations into improvements to the agent, and is open source and self-hostable.
GitHub · Docs · Self-hosting guide · Image reference · Discord
Runs the code you write in code evals inside nsjail, away from the rest of the install. It is what runs JavaScript code evals; the app's built-in sandbox runs Python only. It needs a privileged container.
In Standalone, turn it on with COMPOSE_PROFILES=sandbox in .env.
| Setups | Standalone (COMPOSE_PROFILES=sandbox), Distributed, Helm; needs privileged |
| Port | 8060 |
| Architectures | amd64, arm64 |
| User | root |
| Health check | GET /health on :8060 |
The installer picks the right images, writes this install's secrets and waits until everything is up:
git clone https://github.com/future-agi/future-agi.git
cd future-agi
./bin/install # Standalone: one app container, Postgres and ClickHouse
./bin/install --distributed # Distributed: one container per service
Then open http://localhost:3000. On Kubernetes, use the Helm chart.
| Tag | Points at | Use it for |
|---|---|---|
vX.Y.Z | One release | Production: pin it, or its digest |
vX.Y | The newest patch of that minor release | Automatic patch upgrades |
latest | The newest release | Trying things out; the installers' default |
A release builds every architecture, checks it, and only then moves all tags of an image to one multi-architecture manifest, so a tag never names a half-published image.
Pin the digest (docker buildx imagetools inspect futureagi/code-executor:vX.Y.Z), and trace it to the source: the org.opencontainers.image.revision label is the commit it was built from. The images are not signed yet; the Helm chart is signed and pins each image by digest. See Verifying an image.
The core is Apache 2.0. Code in directories named ee/ is under the Future AGI Enterprise License.
GitHub Discussions · Discord · Report a bug · Security: see SECURITY.md
docker pull futureagi/code-executor:latest