Skip to main content
Use E2B through Corsair: one client, typed API calls. Platform operations use the project API key in the X-API-Key header. Sandbox envd and unary filesystem/process operations target the shared sandbox host and require e2bSandboxId, e2bSandboxPort (49983 for envd), and an e2bAccessToken where the official OpenAPI security scheme requires it. envd.health is keyless. The documented file upload/download routes are not included because they require raw file bodies or binary responses. Four cursor-paginated collection-list operations return { items, nextToken? }; pass the returned token as query.nextToken to fetch the next page. templates.get returns its build cursor beside the template data. Sandbox listing also returns totalRunning when E2B supplies it. Secret values are write-only and are redacted from errors and never included in event logs. What you get:
  • 62 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

Read the environment of a sandbox
Create a directory inside a sandbox
See the full list on the API page.

What’s next

API reference

Every e2b.api.* operation with input and output types.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.