RouterHubDocs Back to RouterHub Get an API key

Connect your coding agent

Use RouterHub's 26 models in Codex, OpenCode, Claude Code, Continue, Cline and other agents. Paste one prompt and the agent configures itself with the exact model IDs and API paths.

Paste this into your agent

The agent reads RouterHub's setup file, picks compatible models and edits its own config. Approve the change when it asks.

  1. Create an account
  2. Add credits
  3. Create an API key
Prompt
Set up RouterHub as the model provider for this tool.
Read https://routerhub.si/agents.md and follow it. Use only exact model IDs from https://routerhub.si/models.json.
Read my key from the ROUTERHUB_API_KEY environment variable and never write it into files.
Ask me before sending any request that costs credits.

Save your key as ROUTERHUB_API_KEY in your environment first. The agent reads it from there and never writes it into files.

Or set it up by hand

Step-by-step guides with the config to copy.

MCP server

A read-only Streamable HTTP endpoint that lets an agent look up models and setup guides. It needs no API key, so never send one to it.

Codex
codex mcp add routerhub --url https://routerhub.si/mcp
Endpoint
https://routerhub.si/mcp
Tools
list_models, get_setup_guide

Files for agents

Provider guides