HUB
Sign inSign up
code-executor logo

futureagi/code-executor

By futureagi

•Updated 1 day ago

Future AGI nsjail sandbox for running untrusted code evals.

Buildkit cacheImage
0

10K+

futureagi/code-executor repository overview

Future AGI

⁠futureagi/code-executor

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⁠

⁠What it is

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.

⁠At a glance

SetupsStandalone (COMPOSE_PROFILES=sandbox), Distributed, Helm; needs privileged
Port8060
Architecturesamd64, arm64
Userroot
Health checkGET /health on :8060

⁠Run Future AGI

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

⁠Tags

TagPoints atUse it for
vX.Y.ZOne releaseProduction: pin it, or its digest
vX.YThe newest patch of that minor releaseAutomatic patch upgrades
latestThe newest releaseTrying 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.

⁠Verify an 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⁠.

⁠License

The core is Apache 2.0⁠. Code in directories named ee/ is under the Future AGI Enterprise License⁠.

⁠Help

GitHub Discussions⁠ · Discord⁠ · Report a bug⁠ · Security: see SECURITY.md⁠

Tag summary
Recent tags
Content type
Image
Digest
sha256:3fcd30545…
Size
172.2 MB
Last updated
1 day ago
docker pull futureagi/code-executor:latest