Skip to main content
Use StackAI through Corsair: one client, typed API calls. Use a StackAI personal API key or supported user token. The hosted origin is https://api.stack-ai.com; configure baseURL for a private deployment. The key needs projects.read, projects.run, and analytics.read as appropriate. Replace example_input with a node ID from your project’s I/O schema. Start, cancel, and resume return the JSON body and the actual Location header; a successful response does not mean the run has completed. The plugin prevents Corsair retries from resending writes, though custom root handlers may delay and reprocess the failure. Reconcile ambiguous write failures before manually retrying. Never attach credentials to an untrusted Location URL. What you get:
  • 6 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

List runs
Start a project run
See the full list on the API page.

What’s next

API reference

Every stackai.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.