OpenRouter (any model)
Use OpenRouter in your coding tools
Step-by-step setup for OpenRouter in 10 coding tools: Aider, Claude Code, Cline, Codex CLI, Continue, Cursor, Goose, OpenCode, Roo Code and Zed. Every step comes from official docs, read on .
OpenRouter setup guides
- Documented by AiderUse OpenRouter in AiderAider supports OpenRouter natively: set OPENROUTER_API_KEY and run aider --model openrouter/<provider>/<model>. Provider routing is set in .aider.model.settings.yml.4 steps
- Documented by OpenRouterUse OpenRouter in Claude CodeOpenRouter publishes an official Claude Code guide: point ANTHROPIC_BASE_URL at OpenRouter's Anthropic-compatible endpoint (https://openrouter.ai/api), pass the OpenRouter key as ANTHROPIC_AUTH_TOKEN and blank out ANTHROPIC_API_KEY. You can override each model class with OpenRouter slugs.openrouter.ai10 steps
- Documented by ClineUse OpenRouter in ClineCline has OpenRouter in its API Provider dropdown. Paste an OpenRouter API key and pick a model from the dropdown. A custom base URL is optional.6 steps
- Documented by OpenRouterUse OpenRouter in Codex CLIOpenRouter's official Codex CLI guide adds an openrouter model_provider to ~/.codex/config.toml with base_url https://openrouter.ai/api/v1. The key comes from a command-based auth block, which also makes Codex fetch the OpenRouter model catalog.openrouter.ai7 steps
- Documented by ContinueUse OpenRouter in ContinueContinue has a first-class openrouter provider. Add a model entry with provider: openrouter, apiBase https://openrouter.ai/api/v1 and your key in config.yaml. Concrete current model ids come from OpenRouter's docs.openrouter.ai4 steps
- Documented by OpenRouterUse OpenRouter in CursorOpenRouter's official Cursor guide (beta) uses Cursor's Override OpenAI Base URL setting with a dedicated endpoint, https://openrouter.ai/api/v1/cursor. You then add OpenRouter model ids as custom models.openrouter.ai6 steps
- Documented by GooseUse OpenRouter in Goosegoose has OpenRouter as a built-in provider. The desktop app offers one-click Automatic setup with OpenRouter (browser auth). The CLI runs goose configure and asks for OPENROUTER_API_KEY. Optional OPENROUTER_HOST and OPENROUTER_PARAMETERS are supported.5 steps
- Documented by OpenRouterUse OpenRouter in OpenCodeOpenCode has OpenRouter as a built-in provider. You connect it with /connect in the TUI or under Settings > Providers in the desktop app, and can add any OpenRouter slug under provider.openrouter.models in opencode.json. OpenRouter publishes an official guide for this setup.9 steps
- Documented by Roo CodeUse OpenRouter in Roo CodeRoo Code has OpenRouter as a built-in API Provider and fetches the full OpenRouter model list automatically. Paste your key and pick a model.6 steps
- Documented by ZedUse OpenRouter in ZedZed has OpenRouter as a built-in LLM provider for the Zed Agent and other Zed AI features. Enter the key in Settings > AI > LLM Providers (or set OPENROUTER_API_KEY), select an OpenRouter model in agent.default_model, and add custom models under language_models.open_router.openrouter.ai5 steps
No verified OpenRouter guide yet for GitHub Copilot and Kilo Code. We only publish a pairing once official docs cover it.
Newsletter
New models, set up the day they ship
One email per week. New model releases, the coding tools that support them and how to wire them up.