Openrouter logo

Integrate Openrouter with your AI CRM

OpenRouter is a platform that provides a unified API for accessing various large language models (LLMs) from different providers, allowing developers to integrate multiple AI models seamlessly.

Explore Triggers and Actions

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-level rate limits and moderation policies differ per model.

ActionTry it

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.

ActionTry it

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.

ActionTry it

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 model generations to fail. Avoid polling this endpoint; call only as needed.

ActionTry it

Get Current Key

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

ActionTry it

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.

ActionTry it

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.

ActionTry it

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 IDs may break when the catalog changes. Use exact author and slug values from this response as inputs to OPENROUTER_LIST_MODEL_ENDPOINTS. Models have varying capabilities (e.g., tools, reasoning); verify individual model capabilities before downstream use. Pricing and latency metadata may be null or approximate — handle missing values in routing logic.

ActionTry it

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.

ActionTry it

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.

ActionTry it

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 approximate; handle missing values in routing logic.

ActionTry it

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 — switching providers affects these constraints. Newly added providers may not appear immediately due to catalog propagation delays.

ActionTry it

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.

ActionTry it

How the Openrouter integration works

The Openrouter integration connects your Dench AI CRM directly to Openrouter, so agents can read and act on your Openrouter data as part of everyday work — answering questions in chat, keeping your CRM in sync, and running automations without anyone copying data between tools.

13 actions are available for agents to invoke on your behalf. Every call runs through Openrouter's own authorization, scoped to the account you connect.

Set up Openrouter in Dench

  1. 1

    Sign in to your Dench workspace and open Integrations.

  2. 2

    Find Openrouter and click Connect — you'll authorize access through Openrouter's own sign-in flow. No API keys or code required.

  3. 3

    Ask an agent to use Openrouter in chat, or call it from an automation.

  4. 4

    Manage or disconnect the connection any time from workspace settings.

Frequently asked questions

How does the Openrouter integration work with Dench?

The Dench Openrouter integration connects your AI CRM to Openrouter, so AI agents can work with your Openrouter data as part of chats, automations, and CRM workflows. You connect your account once, and every agent in your workspace can use it — governed by your workspace permissions.

What actions can AI agents perform with Openrouter via Dench?

The Openrouter integration currently exposes 13 actions, including Create Chat Completion, Create Coinbase Charge, Create Message (Anthropic Format), Get Credits, Get Current Key, and Get Generation. Agents invoke them on your behalf from chat or from automations.

Do I need to write code to connect Openrouter to Dench?

No. You connect Openrouter from your Dench workspace using Openrouter's own sign-in and authorization flow — no API keys to copy, no glue code to maintain.

Is the Openrouter integration secure?

Connections are authorized through Openrouter's own authentication flow, and Dench stores only the authorization needed to act on your behalf. You can review and disconnect the Openrouter connection from your workspace settings at any time.