Execute a command in a sandboxed container
POST/run
Pulls the image if not cached, constructs a hardened OCI bundle, and runs the command inside a gVisor sandbox.
Files listed in files must be uploaded first via POST /files; each is bind-mounted read-only at /{path} inside the container (e.g. workspace/script.py → /workspace/script.py).
Output files written to /output/ inside the container are captured and retrievable via GET /files?path=output/{exec_id}/{filename} only when persist=true is set; they are deleted by default.
Request
Responses
- 200
- 400
- 408
- 500
- 507
Command completed (any exit code is valid - check exit_code)
Invalid request body or file not found
Wall-clock timeout exceeded
Internal error (image pull failed, runsc error)
stdout or stderr exceeded the configured output limit