> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://respan.ai/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://respan.ai/docs/_mcp/server.

# Roo Code (gateway)

> Set up Roo Code with the Respan gateway.

Route [Roo Code](https://roocode.com)'s LLM calls through the Respan gateway for automatic logging, caching, and model switching. Roo Code has a built-in OpenAI Compatible provider, so only your `RESPAN_API_KEY` is needed.

## Setup

#### Install Roo Code

Install the **Roo Code** extension from the VS Code Marketplace, then open it from the sidebar.

#### Configure the OpenAI Compatible provider

1. Click the gear icon to open Roo Code **Settings**.
2. Under **API Provider**, choose **OpenAI Compatible**.
3. Fill in the fields:
   * **Base URL**: `https://api.respan.ai/api`
   * **API Key**: `YOUR_RESPAN_API_KEY`
   * **Model**: `gpt-4o`
4. Save.

No separate provider key needed. The Respan gateway handles provider authentication.

#### Start coding

Open the Roo Code chat panel and send a message. All LLM calls now route through Respan.

## Switch models

Change the **Model** field to use any of the 1000+ models available through the gateway.

```text
gpt-4o
claude-sonnet-4-5-20250929
gemini/gemini-3.5-flash
```

See the [full model list](https://platform.respan.ai/platform/models).