Connect Openrouter to AI agents

Connect Openrouter to Claude, Codex, Cursor, or other AI agents for your entire team. Metorial security, governance, observability, and gives your team a unified Magic MCP url to connect.

Supported Tools

get_model

Get Model

Retrieve detailed information about a specific AI model on OpenRouter, including its pricing, context window, architecture, supported parameters, and top provider details.

list_models

List Models

List all available AI models on OpenRouter with their metadata, pricing, and capabilities. Use to discover models, compare pricing, or find models that support specific features like tool calling.

list_guardrails

List Guardrails

List OpenRouter guardrails for the authenticated account, including spending limits, model/provider allowlists and denylists, ZDR enforcement, workspace, and pagination metadata. Requires a Management API key.

create_guardrail

Create Guardrail

Create an OpenRouter guardrail to control spending, provider/model routing, content filters, workspace scope, and zero-data-retention requirements. Requires a Management API key.

list_api_keys

List API Keys

List API keys for the authenticated OpenRouter account, including usage, limits, BYOK usage, workspace, disabled state, and expiration metadata. Requires a Management API key.

send_chat_completion

Send Chat Completion

Send messages to any of 400+ AI models through OpenRouter's unified API. Supports text, images, and PDFs as input. Configurable parameters include temperature, max tokens, tool calling, structured outputs, and provider routing. Use model variants like `:nitro` for speed, `:floor` for cost, or `:free` for free access.

get_key_info

Get Key Info

Retrieve information about the currently authenticated API key, including its label, usage, spending limit, and rate limit configuration.

create_api_key

Create API Key

Create a new OpenRouter API key. Optionally set an expiration, spending limit, limit reset interval, BYOK-limit behavior, and workspace. Requires a Management API key.

create_embedding

Create Embedding

Generate vector embeddings for text input using OpenRouter's embedding models. Supports single texts or batches. Embeddings capture semantic meaning and can be used for similarity search, clustering, and classification tasks.

update_guardrail

Update Guardrail

Update an OpenRouter guardrail's name, description, spending limit, provider/model restrictions, content filters, or ZDR settings. Requires a Management API key.

delete_api_key

Delete API Key

Delete an OpenRouter API key by hash. This is irreversible and the key immediately stops working. Requires a Management API key.

get_credits

Get Credits

Check your OpenRouter account credits balance and total usage. Credits are deposits used for LLM inference — request costs are deducted from your balance.

get_generation_stats

Get Generation Stats

Retrieve detailed statistics for a specific generation by its ID, including token counts, cost, latency, and provider information. Useful for auditing usage, tracking costs, and debugging individual requests.

delete_guardrail

Delete Guardrail

Delete an OpenRouter guardrail by ID. This is irreversible and removes its restrictions immediately. Requires a Management API key.

list_providers

List Providers

List OpenRouter upstream model providers and metadata useful for provider routing, privacy review, status checks, and guardrail/provider allowlists.

create_response

Create Response

Create a response using OpenRouter's OpenResponses-compatible API. Use this for current Responses API workflows with text or multimodal inputs, tools, reasoning settings, provider routing, metadata, and session stickiness.

list_embedding_models

List Embedding Models

List OpenRouter models available through the embeddings router, including pricing, context length, architecture, and supported metadata.

list_model_endpoints

List Model Endpoints

List the upstream provider endpoints available for a specific OpenRouter model. Use this to compare provider routing options, pricing, context limits, and availability for a model.

update_api_key

Update API Key

Update an OpenRouter API key name, spending limit, limit reset interval, disabled state, or BYOK-limit behavior. Requires a Management API key.

get_api_key

Get API Key

Retrieve metadata for a single OpenRouter API key by hash. Requires a Management API key.

get_guardrail

Get Guardrail

Retrieve a single OpenRouter guardrail by ID. Requires a Management API key.

More integrations teams use with Openrouter

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Subscribe to webhooks for list and library change notifications. Retrieve site properties and search for sites across Microsoft 365.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Subscribe to real-time change events via Change Data Capture and Platform Events. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Bitbucket

Manage Git repositories, pull requests, and CI/CD pipelines on Bitbucket Cloud. Create, fork, and configure repositories within workspaces and projects. Create, review, approve, merge, and decline pull requests with inline code comments. Browse source code, list commits, and manage branches and tags. Track issues with the built-in issue tracker. Trigger, monitor, and manage Bitbucket Pipelines. List workspace members, configure repository default reviewers and branch restrictions, create and manage repository webhooks, and search code across repositories.

Heroku

Deploy, manage, and scale applications on Heroku's cloud platform. Create and configure apps, scale dynos, provision add-ons (databases, caching, etc.), manage configuration variables, build and release code, add custom domains and SSL certificates, manage collaborators and team permissions, configure pipelines for continuous delivery, set up log drains, and sync data with Salesforce via Heroku Connect. Subscribe to webhooks for real-time notifications on app changes, builds, releases, dyno lifecycle events, and more.

Technical notes for Openrouter

Access 400+ AI models from dozens of providers through a single unified API. Send chat completions and Responses API requests with text, images, and PDFs using OpenAI-compatible schemas. Generate structured JSON outputs, perform tool calling, create text embeddings, and route requests with provider preferences, fallbacks, and model variants for speed, cost, or quality. Discover models, embedding models, upstream model endpoints, and providers with pricing and capability metadata. Track generation usage, check credits and key metadata, manage API keys, and configure guardrails for spending limits, model access, provider access, and data privacy policies.

Connect Openrouter to production AI agents

See how Metorial gives Openrouter access the governance, tracing, and security controls teams need.

Frequently asked questions

Common questions about connecting Openrouter to AI agents with Metorial.

  1. Can Metorial connect Openrouter to AI agents?
    Yes. Metorial connects AI agents to Openrouter through a governed integration layer, so teams can use the provider while keeping access controlled and observable.
  2. Metorial is MCP compatible and lets teams expose approved provider tools to MCP-capable agents and clients through a controlled access layer.
  3. Metorial applies policies across users, groups, providers, agents, and individual tools, then records the context around every agent interaction.
  4. Yes. Metorial records provider activity so teams can inspect tool calls, troubleshoot integrations, and give security teams the visibility they need.