Skip to content
Skip to article
View as Markdown

DodoRouter documentation

DodoRouter gives your application one endpoint for a chain of models. Choose the providers and models on a router, then point your client at its URL. You can change that chain without changing the application.

Start with one request. Create a router, connect one provider, check your credentials without using model tokens, then send a message and inspect the response. Follow the quickstart.

Jump in

I want to… Start here
Send requests from an application Python and Node.js SDK examples · API formats and base URLs
Route traffic from Claude Code, Codex CLI, OpenCode, or Forge Connect a coding agent
Understand a failed request or a fallback Find the request and inspect its trace
See which customer or session used the tokens Tag usage by application user · Group requests into sessions
Find out whether a cheaper model handles my workload Compare models on real requests
Let an agent inspect traffic and run evaluations Connect to MCP with OAuth
Run my own instance Self-host DodoRouter

How a request flows

  1. Your client sends a Chat Completions, Messages, or Responses request with the router API key.
  2. DodoRouter calls the first configured model using the provider key attached to that step. If a provider rate-limits the call and another step is available, DodoRouter tries the next step.
  3. Your client receives a response in the format it requested. The request's Trace shows the attempts and which model answered. Routing and fallback.

Read the docs as Markdown

Use View as Markdown on any guide to get its source, including code examples. For programmatic readers, the documentation index lists the guides and the full Markdown documentation combines them in one file.