Operator
← All integrations
Openrouter logo

Connect Openrouter to OpenClaw on Operator.io

OpenRouter is a unified API platform for accessing language models from various providers. It lets you easily integrate and switch between multiple LLMs with a single API.

Automate Openrouter with AI

Operator runs your personal agent on OpenClaw, the open source agent framework, and points it straight at Openrouter. You message the agent on Telegram or Discord, tell it what you need in plain language, and it operates Openrouter on its own, running actions like create chat completion, create coinbase charge, create message (anthropic format).

Your agent reaches Openrouter directly or through connectors like Composio MCP and Pipedream MCP, which handle the sign in and token refresh for you, so there is nothing to wire up and no API keys to paste.

What your agent can do with Openrouter

Your agent can call any of these Openrouter actions by name as part of a larger task. Ask for the outcome you want and it picks the right ones.

Create Chat Completion

Tool to generate a chat-style completion. Use after assembling messages and selecting a model. Supports streaming and function calls. Response format varies across models; use explicit prompt instructions to standardize output. Provider-...

Create Coinbase Charge

Tool to create a Coinbase charge for crypto payment to add credits to your OpenRouter account. Use when you need to purchase credits using cryptocurrency. Returns calldata needed to fulfill the transaction on the specified blockchain.

Create Message (Anthropic Format)

Tool to create a message using Anthropic Messages API format via OpenRouter. Use when you need Claude-compatible chat completion with support for text, images, PDFs, tools, and extended thinking.

Get Credits

Tool to get the current API credit balance for the authenticated user. Use before large or batch jobs to verify sufficient balance. A successful response may return total_credits=0, which confirms authentication but will cause all paid m...

Get Current Key

Tool to get information about the currently authenticated API key. Use to check usage limits, spending, and key metadata.

Get Generation

Tool to retrieve a generation result by its unique ID. Use after a generation completes to fetch metadata like token counts, cost, and latency.

Get Models Count

Tool to get the total count of available models on OpenRouter. Use when you need to know how many models are available without fetching the full list.

List Available Models

Tool to list available models via OpenRouter API. Use after confirming authentication to fetch the model catalog. Use exact model IDs returned here in OPENROUTER_CREATE_CHAT_COMPLETION or OPENROUTER_CREATE_COMPLETION calls — hard-coded I...

List Embedding Models

Tool to list all available embeddings models via OpenRouter API. Returns a list of embeddings models with their properties including architecture, pricing, and capabilities.

OpenRouter List Model Endpoints

Tool to list endpoints for a specific model. Use after specifying model author and slug to get endpoint details including pricing, context length, and supported parameters. Some metadata fields (e.g., latency, pricing) may be null or app...

OpenRouter List Providers

Tool to list all AI model providers available through the OpenRouter API. Use after authentication to retrieve available provider options for routing configuration. Providers differ in latency, context window sizes, and rate limits — swi...

List User Models

Tool to list models filtered by user provider preferences, privacy settings, and guardrails. Use after authenticating to get models tailored to the user's configuration.

OpenRouter List ZDR Endpoints

Tool to preview the impact of Zero Data Retention (ZDR) on the available endpoints. Use to see which model endpoints remain accessible when ZDR is enabled.

How to connect Openrouter

You authorize Openrouter once from your dashboard. Operator holds the connection and refreshes the access tokens on its own, so your agent keeps working with Openrouter without you signing in again. The same setup unlocks every other app your agent can reach, so you only do it once.

When you are ready, the get started guide walks through standing up your OpenClaw agent.

Common questions about Openrouter

How do I connect Openrouter to Operator?
You authorize Openrouter once from your Operator dashboard. Operator holds the connection and refreshes the access token for you, so your agent keeps working with Openrouter without you signing in again.
Can my agent run Openrouter as part of a larger task?
Yes. It can call Openrouter mid task, hand it the input, and use what comes back in the next step. So a job that involves generating, classifying, or analyzing something can route through Openrouter without you stitching the calls together yourself.
Do I need to write code or manage Openrouter API keys?
No code and no API keys. You authorize Openrouter through a normal sign in and Operator handles the connection, so there is nothing to wire up or host.
Can my agent use Openrouter together with my other apps?
Yes. The same agent reaches every app you connect, so it can move between Openrouter and tools like Datarobot, Chatbotkit, Griptape in one job, reading from one and acting in another without you wiring anything between them.

More apps to automate

Apps your agent runs alongside Openrouter, or browse all integrations.

Put your agent on Openrouter

Sign in, connect Openrouter, and hand your agent the work. Your first week is free.

Try for free