> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Roo Code | AI Gateway

> Route Roo Code through the Orq.ai AI Gateway to access the full model catalog, including Claude, with a single API key.

[**Roo Code**](https://marketplace.visualstudio.com/items?itemName=RooVeterinaryInc.roo-cline) is a VS Code extension for AI-assisted coding. Configure it with an OpenAI Compatible provider pointing to the **AI Gateway** to access every model in the catalog, including Anthropic Claude models.

## Prerequisites

* **Roo Code** extension installed in VS Code (`RooVeterinaryInc.roo-cline`)
* Active **Orq.ai** account
* [**Orq.ai** API key](/docs/ai-studio/organization/api-keys)

## Setup

Open the **Roo Code** panel → <Icon icon="gear" /> **Settings** → **API Configuration**.

Fill the fields:

| Field            | Value                          |
| ---------------- | ------------------------------ |
| **API Provider** | `OpenAI Compatible`            |
| **Base URL**     | `https://api.orq.ai/v3/router` |
| **API Key**      | `<ORQ_API_KEY>`                |
| **Model ID**     | `anthropic/claude-sonnet-4-6`  |

Click **Save**.

<Warning>
  Always use the `provider/model_id` format for model IDs (e.g. `anthropic/claude-sonnet-4-6`, not `claude-sonnet-4-6`). Bare IDs return a `400 invalid model format` error.
</Warning>

## Troubleshooting

<AccordionGroup>
  <Accordion title="400 invalid model format">
    The model ID is missing the provider prefix. Change `claude-sonnet-4-6` to `anthropic/claude-sonnet-4-6`, `gpt-4o` to `openai/gpt-4o`, and so on.
  </Accordion>

  <Accordion title="Requests not appearing in Orq.ai Traces">
    Verify the **Base URL** is set to `https://api.orq.ai/v3/router`. Requests sent to a provider's own endpoint bypass the **AI Gateway** and produce no **Traces**.
  </Accordion>
</AccordionGroup>

## Verification

Send a message in the **Roo Code** panel. The response appears in the chat and the request appears in [**Orq.ai** Traces](/docs/ai-studio/observability/traces) with the model identifier `anthropic/claude-sonnet-4-6` (or whichever model was selected).
