Skip to main content
Use Daytona through Corsair: one client, typed API calls, and incoming webhooks. The account stores one Daytona API key (app.daytona.io/dashboard/keys), sent as Authorization: Bearer. Its permissions decide which operations work. Set apiUrl for a self-hosted Daytona, and organizationId when a key reaches more than one organization.
  • Three APIs, one key. The main API manages sandboxes, snapshots, volumes, registries, secrets and organizations. toolbox.* operations run inside one sandbox (files, processes and sessions, git, LSP, the code interpreter, computer use): the plugin asks the API for the sandbox’s toolbox proxy URL and calls <proxy>/<sandbox id>. analytics.* reads telemetry and usage from the Analytics API that GET /config names.
  • Money. Sandboxes are billed per second for the vCPU, memory and disk they reserve (a stopped one for its disk). Creating, starting, forking, resizing or recovering one, running commands or code in it, snapshots, volumes and warm pools are destructive, as are git pushes, key and credential rotation and every delete.
  • Organization routes take the key’s own organization id (apiKeys.getCurrent returns it as organizationId); another id answers 403 Invalid authentication context.
  • Daytona Cloud gaps (checked live on v0.235.0): runners.list, runners.create, organizations.createRegion and the warmPools.* routes answer 404 there and work only on a self-hosted Daytona that has them; apiKeys.list and apiKeys.delete answer 403 until the organization allows managing keys with an API key; the main API’s sandbox telemetry (sandboxes.getLogs, getMetrics, getTraces, getTraceSpans) answers 403 because Cloud serves it from analytics.telemetry.*.
  • Webhooks go out through Svix. Open the endpoint portal with webhooks.getAppPortalAccess, add an endpoint, and store its whsec_ signing secret as the webhook secret; the plugin checks the Svix signature of every delivery.
  • Rate limits depend on the organization’s tier. A 429 carries Retry-After and core retries it three times; a 5xx is retried for reads only.
  • Not wrapped: routes that answer 401 to every API key and take only the dashboard’s user sign-in (listing, creating and deleting organizations, invitations, roles, identity providers and SSO, member access changes, the users/me routes), routes Daytona’s own runners, proxy, SSH gateway, OTEL collector and dashboard call, the PTY WebSocket, the code interpreter’s WebSocket execute (toolbox.process.codeRun runs code over HTTP), bulk file upload and download (multipart batches; upload and download one file at a time), the toolbox daemon’s own setup routes, and deprecated routes.
What you get:
  • 212 typed API operations
  • 7 incoming webhook event types

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

List sandboxes
Run a command in a sandbox
See the full list on the API page.

Webhooks

This plugin registers 7 webhook event types. Configure the provider to POST to your Corsair HTTP handler, then use webhookHooks on the plugin factory. See Webhooks for every event path and payload shape, and Webhooks concept for routing.

What’s next

API reference

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

Webhooks

Event paths, payloads, and webhookHooks examples.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.