🧑💻 Code Interpreter (codeapi)
Initial release of the multi-service code interpreter — hardened sandboxes, signed-JWT auth and a bundled Redis, all versioned together at tag 1.
1
Initial release
The code interpreter ships as codeapi, a multi-service architecture that runs
the Run Code feature in hardened sandboxes. All services are versioned together
at tag 1.
🏞️ Highlights
- Six specialized services —
codeapi-api,codeapi-service-worker,codeapi-sandbox-runner,codeapi-egress-gateway,codeapi-tool-call-server, andcodeapi-file-server, all versioned together at tag1. - Signed-JWT auth — the app calls the API directly with a short-lived Ed25519 JWT, verified against a shared public key.
- Hardened sandbox — the runner executes untrusted code privileged behind an allow-listed egress gateway, with signed execution manifests. Requires host cgroup v2.
- Bundled Redis — the code interpreter ships its own
redisservice, so it is self-contained.
⚠️ Operator notes
- The sandbox loads language runtimes from a prebuilt package tree bind-mounted at
${STORAGE_ROOT}/code-interpreter-packages. Build it with the upstreambuild-packages.shbefore the Run Code feature works — an empty tree yieldsruntime is unknown. - Auto-provisioned secrets:
INTERNAL_SERVICE_TOKEN,EGRESS_GRANT_SECRET, theJWT_*signing pair, and theMANIFEST_*pair.
See Code Interpreter for the full reference.