OpenRouter
13 operations0 webhooks
Unified LLM router API for accessing many AI models through one endpoint.
Supported operations
- CreateWrite
Generate an AI response via OpenRouter with automatic multi-provider routing, retries, and fallbacks; supports tool calling, structured output, reasoning, and provider/route overrides
FAQ
Install corsair and @corsair-dev/openrouter, add the OpenRouter plugin, and connect with an API key. Then call methods like corsair.openrouter.api.chatCompletions.create() from your app. Corsair syncs data per tenant.
Yes. OpenRouter requires an API key from your OpenRouter account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit OpenRouter, GitHub, Notion, Stripe, and the rest. Trigger OpenRouter from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for unified llm router api for accessing many ai models through one endpoint. Common builds include sync jobs, admin tooling, and agents that call OpenRouter APIs from your backend. Local DB entities let you query synced OpenRouter records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per OpenRouter API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/openrouter in the open repo. When OpenRouter ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your OpenRouter data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store OpenRouter data on your behalf.