Roo Code supports OpenAI-compatible API profiles. Use ModRouter’s OpenAI-compatible endpoint.

Endpoint

Set MODROUTER_BASE_URL to the ModRouter root URL reachable by Roo Code.

Setup

  1. Open Roo Code settings.
  2. Create or edit an OpenAI-compatible API profile.
  3. Set Base URL to your ModRouter /openai/v1 endpoint.
  4. Set API Key to a ModRouter virtual key, or a placeholder value if auth is disabled.
  5. Set Model to a ModRouter model ID.
Examples:

MCP

Roo Code can also connect to MCP servers. To expose ModRouter-managed tools, add:
Use the same auth headers configured for your ModRouter MCP gateway.