Skip to main content
corsair-cloud is a small Python client for a hosted Corsair Cloud project. It has no dependencies and works on Python 3.10+. Give it your API key, and every plugin your runtime has is callable over HTTP.

1. Install

2. Add your API key

Copy your project’s API key (ck_cloud_…) from the dashboard Overview page. It’s a server secret; keep it in an environment variable, not in source. The client derives its own URL from the key, so it’s the only value you pass:

3. Make a call

Pick a user (a “tenant”), then call any operation on any plugin your runtime has:
with_tenant("acme") runs the call as your user “acme”, using that user’s connected account. call(plugin, op, args) returns the operation’s result directly. The three arguments map onto one request: POST /acme/notion/call/pages.searchPage with body {"args": {"query": "roadmap"}}.

4. Connect a user’s account

A tenant can only call Notion after they have connected their Notion account. Create a connect link and send the user to it:
After they authorize, check who is connected:

Manage tenants and connections

Handle errors

Any non-2xx response raises CorsairError:
The fields you will use most: