Skip to main content
← Back to changelog

🧑‍💻 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, and codeapi-file-server, all versioned together at tag 1.
  • 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 redis service, 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 upstream build-packages.sh before the Run Code feature works — an empty tree yields runtime is unknown.
  • Auto-provisioned secrets: INTERNAL_SERVICE_TOKEN, EGRESS_GRANT_SECRET, the JWT_* signing pair, and the MANIFEST_* pair.

See Code Interpreter for the full reference.