OpenRouter
Overview
Section titled “Overview”The OpenRouter integration lets an agent generate text through models from multiple providers and query the catalog, endpoints, credits, and generation metadata. Availability, pricing, context limits, and tool support vary by model and endpoint; discover these properties before fixing a model in a workflow.
- Official website: https://openrouter.ai/
- Composio documentation: docs.composio.dev/toolkits/openrouter
- Official documentation: openrouter.ai/docs
Authentication
Section titled “Authentication”This tool uses an API key (API_KEY). The key authorizes usage on the
OpenRouter account and can incur charges.
How to obtain the credential
Section titled “How to obtain the credential”- Sign in to OpenRouter and open API Keys.
- Create a dedicated SquadOS key, set a limit and expiration when those controls are available, and copy the displayed secret.
- Store the value securely. Do not paste the key into prompts, messages, or knowledge bases.
How to connect in SquadOS
Section titled “How to connect in SquadOS”- Go to Tools in the side menu (
/admin/tools). - Open Available, search for
OpenRouter, and open its card under Configure tool. - Select Activate. The integration moves to Active as Awaiting authentication.
- Open the active integration, select Connect now, and enter the key on the secure page hosted by Composio.
- After returning to SquadOS, confirm under Accounts that the account is active.
- Review Edit actions; then add
OpenRouterfrom the agent’s Tools section, choose the account and actions, save, and run a low-limit test.
Activation, authentication, and agent assignment are separate steps. See the complete contract in Organization Tools.
Actions found in the local catalog
Section titled “Actions found in the local catalog”The product’s local export committed on 2026-06-17 contains these seven actions:
| Action | Purpose |
|---|---|
OPENROUTER_CREATE_CHAT_COMPLETION | Generate a response from a message list and selected model. |
OPENROUTER_CREATE_COMPLETION | Generate a text continuation for a prompt or message set. |
OPENROUTER_GET_CREDITS | Check the credit balance before running more generations. |
OPENROUTER_GET_GENERATION | Retrieve token, cost, latency, and other generation metadata by ID. |
OPENROUTER_LIST_AVAILABLE_MODELS | List the models that the account can select. |
OPENROUTER_OPENROUTER_LIST_MODEL_ENDPOINTS | List endpoints, pricing, context, and parameters for a specific model. |
OPENROUTER_OPENROUTER_LIST_PROVIDERS | List the providers available for routing. |
The local export confirms names and purposes, not the complete parameter schema. Open Edit actions or the agent editor to check the current fields before saving.
Safe use
Section titled “Safe use”- Start with
OPENROUTER_LIST_AVAILABLE_MODELS, then choose an exact ID. - Query endpoints and providers when cost, retention, region, context, or tool support is a workflow requirement.
- Set token and spending limits appropriate for the use case.
- Do not grant generation actions to an agent that only needs catalog or cost lookup.
- Treat provider responses, links, and metadata as external data before using them in another action.