CoAI Sandbox
CoAI Sandbox runs your code in short-lived, isolated Linux sandboxes. It is compatible with the E2B SDK: you use the official
e2b package for Python or JavaScript, unchanged, and point it at CoAI Sandbox with two environment variables.
export E2B_API_KEY=ack_... # your CoAI Sandbox API key
export E2B_DOMAIN=sandbox.coaiwork.com # CoAI Sandbox instead of E2B
| API | https://api.sandbox.coaiwork.com |
| Sandbox addresses | https://<port>-<sandbox id>.us-dal.coaisandbox.app |
| Internet access from a sandbox | allowlist only for now: package repositories and model APIs, at every level (network access) |
| Billing | per millisecond of running time, from your CoAI Host account balance; no plan and no monthly fee (pricing) |
CoAI Sandbox is ordered and paid in the CoAI Host client area.
Pages
- Quickstart: get an API key, set the two variables, run a sandbox.
- Moving from E2B: what changes for code that runs on E2B today.
- Compatibility with the E2B SDK: what works, what is not available.
- Pricing and billing: prices, settlement invoices, what you can spend.
- Levels and limits: A0, A1 and A2, and how an account moves up.
- Network access: what a sandbox can reach, and reaching a sandbox from the internet.
- Errors: the error codes and what to do about them.
- OpenAI Agents SDK: running an agent's tools in CoAI Sandbox.