Skip to main content
OpenRouter is a unified API that routes to dozens of LLM providers. It gives you access to models that Polpo doesn’t have direct integrations for — including DeepSeek, Cohere, AI21, and many others.

Setup

Get your API key from OpenRouter.
export OPENROUTER_API_KEY=sk-or-...

Config

{
  "providers": {
    "openrouter": "${OPENROUTER_API_KEY}"
  }
}

Use it

{
  "agents": [
    { "name": "coder", "model": "openrouter:deepseek/deepseek-chat-v3-0324" }
  ]
}
Polpo auto-infers openrouter from the deepseek- prefix.
ModelProviderBest for
deepseek/deepseek-chat-v3-0324DeepSeekStrong coding, very cheap
deepseek/deepseek-reasonerDeepSeekReasoning tasks
meta-llama/llama-3.3-70b-instructMetaOpen-source general purpose
cohere/command-aCohereEnterprise RAG and search
Use OpenRouter’s model ID format (with /) after the openrouter: prefix.

Features

FeatureSupported
StreamingYes
Tool useYes (model-dependent)
Vision (images)Yes (model-dependent)

Provider Details

Provider IDopenrouter
Env variableOPENROUTER_API_KEY
API typeOpenAI-compatible
Auto-infer prefixdeepseek-

When to Use OpenRouter

  • You want access to DeepSeek models (not available as a direct Polpo provider).
  • You want to try models from providers that Polpo doesn’t integrate with directly.
  • You want a single API key for multiple providers.
  • You want automatic fallback routing that OpenRouter provides.

Notes

  • OpenRouter adds a small markup to the underlying provider’s pricing.
  • Model availability and pricing on OpenRouter changes frequently. Check openrouter.ai/models for the latest.
  • Some models on OpenRouter have usage limits or require credits. Check your account’s rate limits.