---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://elaichi.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# OpenRouter MCP connector

The OpenRouter connector lets Claude, ChatGPT and other AI assistants manage OpenRouter API keys, budget policies, guardrails and batches and review model spend, with every request following your organization's restrictions and recorded in an audit log.

Source: https://elaichi.ai/connectors/openrouter/

## Facts

| | |
| --- | --- |
| Application | OpenRouter |
| Category | Artificial Intelligence |
| AI tools | 166 |
| Authentication | Connects with an API key |
| Bring your own OAuth app | No |
| MCP endpoint | https://api.elaichi.ai/mcp |
| Works with | Claude, ChatGPT, Perplexity, Grok, Cursor, Microsoft Copilot, any MCP client, and the Elaichi Agent |
| Tools advertised by name | No. Connected tools are never listed one by one, however few there are. The endpoint advertises `search_tools` and `execute_tool` instead |

## What you can ask once OpenRouter is connected

- Which API keys spent the most this week?
- Set a monthly budget policy for the support team.
- Show batches started since Monday and their status.

## Connect OpenRouter in Elaichi

This happens once for the organization, before any client is involved.

1. Open Connections, choose Add connection, and pick OpenRouter.
2. Optionally set Share with, then press Connect.
3. Paste an OpenRouter API key. One person generates a token in OpenRouter and pastes it once. Everyone else works through Share with, and never sees it.

Credentials are vaulted and nobody, including the AI, reads them back. The connection becomes a toolbox immediately, so you can curate which OpenRouter tools are exposed, rename them, or freeze arguments before anyone points a client at it.

## OpenRouter MCP connector for Claude

Endpoint: https://api.elaichi.ai/mcp

1. Open Customize, then Connectors.
2. Press Add.
3. Name it, paste the MCP server URL, then Continue.
4. Sign in and approve.

On Team and Enterprise, an Owner adds it once. Everyone else turns it on for themselves.

## OpenRouter MCP connector for Claude Code

Endpoint: https://api.elaichi.ai/mcp

1. Copy the `claude mcp add` command and run it in a terminal.
2. Start Claude Code and run `/mcp`.
3. Pick elaichi, then sign in and approve in the browser.

```bash
claude mcp add --transport http elaichi --scope user https://api.elaichi.ai/mcp
```

Use `--scope project` instead to share it with the repository through `.mcp.json`.

## OpenRouter MCP connector for ChatGPT

Endpoint: https://api.elaichi.ai/mcp

1. Open Plugins, then press the + button.
2. Name it and paste the endpoint into Server URL.
3. Leave Authentication on OAuth, then tick the risk acknowledgement.
4. Press Create, then sign in and approve.

Works on the web. The plugin directory lives at chatgpt.com/plugins.

## OpenRouter MCP connector for Perplexity

Endpoint: https://api.elaichi.ai/mcp

1. In the left sidebar, click Plugins, then Add custom, then Add MCP connector, then Remote.
2. Name it Elaichi.
3. Paste the endpoint as the MCP server URL.
4. Open Advanced. Pick OAuth, so you can sign in, and Streamable HTTP, which is how Elaichi talks. Leave the client ID and secret empty.
5. Tick the box about custom connectors, then click Add.
6. Click the Elaichi card. Sign in to Elaichi and approve.

Needs a paid Perplexity plan. In an organization, an admin may first need to allow custom connectors.

[Setup guide for Perplexity](/blog/connect-elaichi-to-perplexity/)

## OpenRouter MCP connector for Grok

Endpoint: https://api.elaichi.ai/mcp

On grok.com:

1. Go to grok.com/connectors and click New Connector.
2. Choose Custom.
3. Paste the endpoint as the MCP server URL.
4. Sign in to Elaichi and approve.

In Grok Bot:

1. Open Connect apps and click Add a custom connector.
2. Name it Elaichi.
3. Set the type to Remote HTTPS.
4. Paste the endpoint as the Server URL.
5. Leave Client ID empty.
6. Click Add plugin. Then click Authorize, sign in to Elaichi and approve.

On Grok Business and Enterprise, a team admin adds the connector in console.x.ai first.

[Setup guide for Grok](/blog/connect-elaichi-to-grok/)

## OpenRouter MCP connector for Cursor

Endpoint: https://api.elaichi.ai/mcp

1. Open `~/.cursor/mcp.json`.
2. Add the endpoint under `mcpServers`.
3. Reload Cursor, then sign in and approve.

Set up per machine, so repeat it on each computer you work from.

## OpenRouter MCP connector for Microsoft Copilot

Endpoint: https://api.elaichi.ai/mcp

1. In Copilot Studio, open your agent, then Tools, Add a tool, New tool and Model Context Protocol.
2. Paste the endpoint into Server URL, choose OAuth 2.0, then Dynamic discovery, and press Create.
3. Create a new connection, sign in and approve, then press Add to agent.
4. Under Channels, open Teams and Microsoft Copilot and make the agent available in Microsoft Copilot.

Microsoft Copilot was called Microsoft 365 Copilot. Keep the tool on end-user credentials, so each person signs in as themselves.

## Connect OpenRouter to any MCP client

Endpoint: https://api.elaichi.ai/mcp

1. Add the endpoint as a remote MCP server.
2. Sign in and approve.

The Elaichi Agent already has these tools, with nothing to set up.

## What the consent screen decides

Every scope the client asks for starts ticked except "Delete things", which you tick yourself. Calling a OpenRouter tool needs "Use your connected apps". Over MCP there is no trusted place to confirm a write in the moment, so the consent screen is the standing approval rather than a formality. Think hard before granting Use your connected apps, which can also delete in connected apps and cannot be undone.

## What teams do with OpenRouter through Elaichi

### Issue a key for a new project

Engineering. Ask for a fresh OpenRouter API key named for the project, so nobody has to dig through the dashboard. Change its name or settings later just by asking.

### Put a spending cap on a team

Finance. Create a budget policy in OpenRouter so one group's model usage stays inside the amount you agreed. Review the existing budget policies before you add another.

### Check which guardrails cover which keys

Security. Pull up every guardrail assignment across OpenRouter API keys and members to see what is protected and what is not. Spot a key with no guardrail before it becomes a problem.

### Follow up on a batch job

Engineering. Ask for the status of an OpenRouter batch, list recent batches, or start a new one. Clear out batches you no longer need.

### Summarize last week's model spend

Finance. Ask what OpenRouter activity looked like over a period and get it broken down from live analytics. Use it for the monthly cost review instead of exporting spreadsheets.

### Compare models before choosing one

Product. Look at OpenRouter benchmarks and app rankings side by side when deciding which model to build on. Get a short answer instead of reading leaderboards.

## Elaichi vs Zapier MCP vs Composio for OpenRouter

All three can connect OpenRouter to an AI assistant, and all three have admin controls. They differ in where access lives and how you pay.

| What to check | Elaichi | Zapier MCP | Composio |
| --- | --- | --- | --- |
| Where the AI connects | One address for the whole organization. Endpoint: https://api.elaichi.ai/mcp | A server per member, created at sign-in. | An MCP endpoint per team, or an SDK. |
| Control over OpenRouter tools | Allow or restrict single OpenRouter tools, per role or user. | App and action restrictions on the account. | Role permissions, down to the action. |
| Record of calls | One audit entry per OpenRouter call. | A History tab of tool calls. | A log of every tool call. |
| Single sign-on | SAML or OIDC, plus SCIM, on Gold. | SAML on Enterprise. | SAML and OIDC on Enterprise. |
| Price | Free for one person; $15 per user per month on Gold. | 2 tasks per successful call. | Billed per tool call. |

Sources: Zapier MCP [docs](https://docs.zapier.com/mcp/get-started/quickstart), [security](https://docs.zapier.com/mcp/manage/security), [usage](https://docs.zapier.com/mcp/features/usage); Composio [docs](https://docs.composio.dev/docs/composio-connect), [gateway](https://composio.dev/mcp-gateway), [enterprise](https://composio.dev/enterprise), [pricing](https://composio.dev/pricing). Checked September 2026.

Longer take: [Zapier MCP alternative](/blog/zapier-mcp-alternative/) and [when you don't need an MCP gateway](/blog/when-you-dont-need-an-mcp-gateway/).

## Frequently asked questions

### How do I connect OpenRouter to Claude?

First connect OpenRouter in Elaichi by pasting an OpenRouter API key, which is the only sign-in step OpenRouter needs. Then paste https://api.elaichi.ai/mcp into Claude under Customize, then Connectors, then Add, and sign in to Elaichi as yourself. There is no OAuth application to register and no client ID or secret to generate.

### Does OpenRouter work with ChatGPT, Perplexity, Grok and Cursor as well as Claude?

Yes. Once OpenRouter is connected in Elaichi, Claude, ChatGPT, Perplexity, Grok, Cursor, Microsoft Copilot and any other MCP client all use the same endpoint, https://api.elaichi.ai/mcp. You connect OpenRouter once and every client can reach it.

### What can an AI agent actually do with my OpenRouter account?

An AI agent connected to OpenRouter through Elaichi can create, rename and retire API keys, set up budget policies and account policies, check guardrail assignments, start and track batches, and summarize activity and spend from analytics. It can also look up benchmarks and app rankings. Short, concrete asks such as "list keys created this month" tend to work better than long sentences.

### Does connecting OpenRouter give the AI access to everything in my account?

No. An OpenRouter connection in Elaichi can only do what the connected OpenRouter API key itself is allowed to do. Elaichi can narrow that further with restrictions on a role or one person, but it can never widen it beyond what the key permits.

### Can my team share one OpenRouter connection?

Yes. One person connects OpenRouter in Elaichi and shares the connection with a team, so nobody else ever handles the OpenRouter API key. Each teammate still signs in to Elaichi as themselves, so the audit log names exactly who did what in OpenRouter.

### Can I stop an agent from deleting or changing things in OpenRouter?

Yes. In Elaichi you can restrict individual OpenRouter actions, such as deleting API keys or changing budget policies, on a role or on one person. A restricted action still appears in Elaichi's tool search, flagged as restricted, but no client can run it, whatever the prompt says.

### What happens to an OpenRouter connection when someone leaves?

Offboarding a person in Elaichi ends their access to OpenRouter at once. A shared OpenRouter connection keeps working for everyone else on the team. If you disconnect OpenRouter once in Elaichi, it is removed from every client at the same time.

### Does the OpenRouter MCP connector work with Gemini, Codex, Claude Code or other MCP clients?

Yes. OpenRouter is reached over the same MCP endpoint every client uses, so anything that speaks MCP can call it — Gemini, Codex, Claude Code, Windsurf, Cline, Zed and OpenCode among them — alongside Claude, ChatGPT, Perplexity, Grok, Cursor, Microsoft Copilot, and the Elaichi Agent. The tools on offer and the access behind them are identical whichever client asks. Only the setup screen differs.

### Is Elaichi an alternative to Zapier MCP for OpenRouter?

Yes. Both let Claude, ChatGPT or Cursor use OpenRouter. Zapier MCP fits a team that already automates in Zapier, since each person signs in and acts as themselves in that account. Elaichi fits when IT wants one address for the whole company, per-tool rules by role, and a record of every OpenRouter call.

### How is Elaichi different from Composio for OpenRouter?

Composio gives AI agents tools and sign-in handling across 1,000+ apps, for developers building agents or people using an assistant, billed per tool call. Elaichi gives a company's own people governed access to OpenRouter: one address, restrictions per role or user, and $15 per user per month. Both have role permissions and a log of every call.

## All 166 OpenRouter tools

Every tool below is callable through https://api.elaichi.ai/mcp once OpenRouter is connected, subject to the toolbox it is in and the restrictions on the caller.

- **List all OpenRouter account policies** (List). List workspace-wide policies. List the workspace-wide policies that apply across workspaces in the account. Management key required. The connector pages it (limit = page size).
- **Create a OpenRouter account policy** (Create). Create a workspace-wide policy. Create a workspace-wide budget, moderation, or model availability policy. Management key required. Required: config, name, policy_type.
- **Delete a OpenRouter account policy by ID** (Delete). Delete a workspace-wide policy. Delete a workspace-wide policy. Management key required. Required: id.
- **Update a OpenRouter account policy by ID** (Update). Update a workspace-wide policy. Replace a workspace-wide policy and its workspace coverage. Management key required. Required: id, config, name, policy_type.
- **List all OpenRouter activities** (List). Get user activity grouped by endpoint. Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass workspace_id to scope the response to a single workspace. Pass group_by=workspace to split each row per workspace and include workspace_id on every item; by default rows are aggregated across workspaces and workspace_id is not returned. Needs a Management API key.
- **List all OpenRouter all guardrail key assignments** (List). List all key assignments. List all API key guardrail assignments for the authenticated user. A workspace-scoped management key lists only its own workspace, which workspace_id defaults to; naming another workspace returns 403. Management key required. The connector pages it (limit = page size).
- **List all OpenRouter all guardrail member assignments** (List). List all member assignments. List all organization member guardrail assignments for the authenticated user. A workspace-scoped management key lists only its own workspace, which workspace_id defaults to; naming another workspace returns 403. Management key required. The connector pages it (limit = page size).
- **List all OpenRouter analytics metadata** (List). Get available analytics metrics and dimensions. Returns the available metrics, dimensions, filter operators, and granularities for the analytics query endpoint. Custom access requires an organization-scoped key with analytics:view. Workspace-scoped keys with base Read Only or Read Write access are also accepted. Management key required.
- **Create a OpenRouter analytics query** (Create). Query analytics data. Execute an analytics query with specified metrics, dimensions, filters, and time range. Custom access requires an organization-scoped key with analytics:view; grouping or filtering by api_key_id or api_key_tag also requires api_keys:view_all, and by user requires org_members:view. Key hash filters resolve only non-deleted ordinary keys. Needs a Management API key. Required: metrics.
- **Get single OpenRouter API key policy assignment by ID** (Get). Get an API key policy assignment. Get the policies of one type that apply to an API key in a workspace. Requires a management key with write access. Management key required. Needs a read/write management key: reading an assignment creates it if it doesn't exist yet. Required: id, policy_type.
- **Update a OpenRouter API key policy assignment by ID** (Update). Change an API key policy assignment. Assign or unassign one policy for an API key. Fails with 409 when expected_assignment no longer matches the stored state. Management key required. Required: id, assigned, expected_assignment, policy_id, policy_type.
- **List all OpenRouter API keys** (List). List API keys. List all API keys for the authenticated user. Management key required. Pages of 100 keys. The connector pages it (limit = page size).
- **Create a OpenRouter API key** (Create). Create a new API key. Create a new API key for the authenticated user. The plaintext key is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. Authenticate with a management key. The optional external object associates the key with a partner-defined user and lookup key. Required: name.
- **Delete a OpenRouter API key by ID** (Delete). Delete an API key. Delete an existing API key. Authenticate with a management key. Required: id.
- **Get single OpenRouter API key by ID** (Get). Get a single API key. Get a single API key by hash. Management key required. Required: id.
- **Update a OpenRouter API key by ID** (Update). Update an API key. Update an existing API key. Authenticate with a management key. Set workspace_id to move the key to another workspace. The request body accepts only the fields listed below, and unrecognized fields are ignored. If the body contains none of the accepted fields, the request fails with 400 and the message No update fields provided. Required: id.
- **List all OpenRouter app rankings** (List). Top apps by token usage. Returns the top public apps on OpenRouter ranked by token usage inside the requested date window, matching the public apps marketplace on openrouter.ai/apps. Token totals are prompt_tokens + completion_tokens; hidden and private apps are excluded and traffic from related app aliases is merged into the canonical visible app. sort=popular (default) ranks by total token volume inside the window. The connector pages it (limit = page size).
- **List all OpenRouter batches** (List). List batches. Lists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page's last_id as after. List items omit results. Use GET /batches/{id} to get them. See the Batch API Quickstart. The connector pages it (limit = page size).
- **Create a OpenRouter batch** (Create). Create a batch. Creates a batch of requests that run asynchronously against a single endpoint (/v1/chat/completions, /v1/responses, /v1/messages, /v1/embeddings, /v1/audio/speech). Returns 202 with status: "validating". Poll GET /batches/{id} for progress and results. See the Batch API Quickstart. Required: endpoint, model.
- **Delete a OpenRouter batch by ID** (Delete). Delete a batch. Deletes a batch in a terminal status (completed, failed, expired, or cancelled) and its stored requests and results. Batches still in progress return 409. Billing and usage records are kept. See the Batch API Quickstart. Required: id.
- **Get single OpenRouter batch by ID** (Get). Get a batch. Returns a batch with its status and request counts. Batches in a terminal status include results. Failed batches report the reason in error.message. See the Batch API Quickstart. Required: id.
- **List all OpenRouter benchmarks** (List). List Benchmarks. Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads.
- **List all OpenRouter budget policies** (List). List budget policies. List the budget policies in a workspace. Management key required. The connector pages it (limit = page size).
- **Create a OpenRouter budget policy** (Create). Create a budget policy. Create a budget policy in a workspace. Management key required. Required: config, name, policy_type.
- **Delete a OpenRouter budget policy by ID** (Delete). Delete a budget policy. Delete a budget policy. Management key required. Required: id.
- **Get single OpenRouter budget policy by ID** (Get). Get a budget policy. Get a budget policy with its member and API key assignments. Management key required. Required: id.
- **Update a OpenRouter budget policy by ID** (Update). Update a budget policy. Replace a budget policy's name and config, and optionally its assignments. Management key required. Required: id, config, name.
- **List all OpenRouter byok credentials** (List). List BYOK provider credentials. List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace, or a workspace-scoped management key's own workspace. Use the workspace_id query parameter to scope the result to a different workspace, or the provider query parameter to filter by upstream provider. A workspace-scoped management key can only list its own workspace; any other workspace_id returns 403. The connector pages it (limit = page size).
- **Create a OpenRouter byok credential** (Create). Create a BYOK provider credential. Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When workspace_id is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass workspace_id explicitly. Needs a Management API key. Required: key, provider.
- **Delete a OpenRouter byok credential by ID** (Delete). Delete a BYOK provider credential. Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its id. The encrypted key material is wiped and the record is marked as deleted. A workspace-scoped management key only reaches credentials in its own workspace; any other id returns 404. Management key required. Required: id.
- **Get single OpenRouter byok credential by ID** (Get). Get a BYOK provider credential. Get a single bring-your-own-key (BYOK) provider credential by its id. A workspace-scoped management key only reaches credentials in its own workspace; any other id returns 404. Management key required. Required: id.
- **Update a OpenRouter byok credential by ID** (Update). Update a BYOK provider credential. Update an existing bring-your-own-key (BYOK) provider credential by its id. Include the key field to rotate the raw provider API key in-place (the previous key material is overwritten). Use allowed_api_key_hashes to restrict the credential to specific OpenRouter API keys (null clears the restriction). A workspace-scoped management key only reaches credentials in its own workspace; any other id returns 404. Required: id.
- **Create a OpenRouter chat completion preset** (Create). Create a preset from a chat-completions request body. Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. messages, stream, prompt) are silently ignored. Requires a read-write management key; inference API keys are rejected. Required: slug, messages.
- **Create a OpenRouter chat completion** (Create). Create a chat completion. Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes. The connector returns the whole reply (no streaming; a `stream` value is dropped). If generation fails after OpenRouter has answered 200 (a choice with finish_reason error, or a body holding only an error), the connector returns that error with its own code. Required: messages.
- **Get single OpenRouter container file content by ID** (Get). Download container file content. Streams the raw bytes of a file in a container. Returns the file's raw bytes (application/octet-stream). Required: id, container_id.
- **List all OpenRouter container files** (List). List container files. Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with limit and after (pass the previous page’s last_id); has_more: true always means the next page is fetchable that way. Required: container_id. The connector pages it (limit = page size).
- **Get single OpenRouter container file by ID** (Get). Retrieve a container file. Returns the metadata of a single file in a container. Required: id, container_id.
- **OpenRouter container files clone** (Action). Promote a container file into workspace documents. Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota. Unlike a direct upload, promoted files are downloadable. Promotes the container file into the workspace's durable document storage (a copy that outlives the container). Required: container_id, file_id.
- **List all OpenRouter credits** (List). Get remaining credits. Get total credits purchased and used for the authenticated user. Management key required.
- **List all OpenRouter current keys** (List). Get current API key. Get information on the API key associated with the current authentication session.
- **List all OpenRouter daily rankings** (List). Daily token totals for top 50 models. Returns the top 50 public models per day by total token usage on OpenRouter, plus a single aggregated other row per day that sums every model outside that top 50. Token totals are prompt_tokens + completion_tokens, matching the public rankings chart on openrouter.ai/rankings. Each row is a distinct (date, model_permaslug) pair.
- **Create a OpenRouter decision** (Create). Submit a Decisions request. Asks a Decisions model typed questions (noul, choice, score, box) about the content in state and returns one typed answer per question with its probabilities. Images, audio and video go in state as image_url, input_audio and video_url parts; PNG and JPEG images can instead go once in assets and be referenced by key. Alpha: the shape may change. Required: model, questions, state.
- **List all OpenRouter embedding models** (List). List all embeddings models. Returns a list of all available embeddings models and their properties. The connector pages it (limit = page size).
- **Create a OpenRouter embedding** (Create). Submit an embedding request. Submits an embedding request to the embeddings router. The connector returns the whole reply (a `stream` value is dropped). Required: input, model.
- **List all OpenRouter external users** (List). List registered external users. List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. Management key required. The connector pages it (limit = page size).
- **Create a OpenRouter external user** (Create). Register an external user. Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. Management key required. Required: user.
- **Delete a OpenRouter external user by ID** (Delete). Deactivate a registered external user. Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. Management key required. Required: id.
- **Get single OpenRouter external user by ID** (Get). Get a registered external user. Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. Management key required. Required: id.
- **Update a OpenRouter external user by ID** (Update). Update a registered external user. Update registration state without changing identity. State changes do not enforce inference access. Management key required. Required: id, is_active.
- **Create a OpenRouter extraction** (Create). Submit an Extractions request. Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable. Alpha: the shape may change. Required: fields, model.
- ...and 116 more tools. Call `tools/list` via the MCP endpoint, or see the full catalog via the API, for the complete set.
