# Roo Code

Roo Code allows you to configure providers via the UI and can be set up to use AI Bridge.

## Configuration

Roo Code allows you to configure providers via the UI.

<div class="tabs">

### OpenAI Compatible

1. Open Roo Code in VS Code.
1. Go to **Settings**.
1. **Provider**: Select **OpenAI**.
1. **Base URL**: Enter `https://coder.example.com/api/v2/aibridge/openai/v1`.
1. **API Key**: Enter your **[Coder Session Token](/docs/@v2.32.6/admin/users/sessions-tokens/#generate-a-long-lived-api-token-on-behalf-of-yourself)**.
1. **Model ID**: Enter the model you wish to use (e.g., `gpt-5.2-codex`).
![Roo Code OpenAI Settings](/docs/@v2.32.6/images/aibridge/clients/roo-code-openai.png)

### Anthropic

1. Open Roo Code in VS Code.
1. Go to **Settings**.
1. **Provider**: Select **Anthropic**.
1. **Base URL**: Enter `https://coder.example.com/api/v2/aibridge/anthropic`.
1. **API Key**: Enter your **Coder Session Token**.
1. **Model ID**: Select your desired Claude model.

![Roo Code Anthropic Settings](/docs/@v2.32.6/images/aibridge/clients/roo-code-anthropic.png)

</div>

### Notes

* If you encounter issues with the **OpenAI** provider type, use **OpenAI Compatible** to ensure correct endpoint routing.
* Ensure your Coder deployment URL is reachable from your VS Code environment.

**References:** [Roo Code Configuration Profiles](https://docs.roocode.com/features/api-configuration-profiles#creating-and-managing-profiles)
