CoAI Sandbox gives your programs short-lived, isolated Linux virtual machines ("sandboxes") through an API. A typical use is running code that an AI model or an agent wrote: create a sandbox, run the code in it, read the result, and the sandbox is deleted when you are done. CoAI Sandbox is compatible with the E2B SDK, so you use the official SDK for Python or JavaScript and only point it at CoAI Sandbox.
At a glance
| What you get | Sandboxes created on demand, each with its own Linux system, files and network |
| How you use it | The official E2B SDK (Python e2b, JavaScript e2b) with two environment variables |
| How you pay | By usage, from your CoAI Host account balance, on settlement invoices ("Paying for CoAI Sandbox") |
| Welcome credit | $10 for 30 days for eligible accounts, when you verify your account with a card ("Order CoAI Sandbox and verify your account") |
| Where it runs | Dallas, Texas, United States |
| Limits | Set by your account's level ("CoAI Sandbox levels, limits and spending caps") |
Start in four steps
- Order the CoAI Sandbox product in the client area. Ordering is free; one CoAI Sandbox account per CoAI Host account.
- Verify your account by saving a card under Payment Methods (nothing is charged). If your account is eligible, you then get the welcome credit.
- Create an API key in the CoAI Sandbox console: open the CoAI Sandbox service in the client area and follow the link to the console. The key starts with
ack_and is shown only once. - Run your first sandbox with the official SDK. Set the two environment variables:
and create a sandbox as in the SDK's documentation; the developer documentation has a complete example.export E2B_API_KEY=ack_... # your CoAI Sandbox API key export E2B_DOMAIN=sandbox.coaiwork.com # CoAI Sandbox instead of E2B pip install e2b # or: npm install e2b
What is not offered
- Pausing and resuming sandboxes is not available yet; a sandbox always ends when its timeout passes or when you kill it.
- Building your own templates is not available yet: use the templates listed in the developer documentation.
- Some SDK features are not supported; the developer documentation lists them.
- Internet access is allowlist only at every level: a sandbox reaches only the allowed destinations listed in the developer documentation. Open internet access for A1 and A2 is planned.
Sandboxes are temporary: when a sandbox ends, everything in it is deleted and there are no backups. Copy anything you need out of a sandbox before it ends.