Skip to main content
Roo Code is a VS Code AI coding extension. Connecting to BetterToken requires selecting the OpenAI Compatible provider in the settings UI.

Prerequisites

Install Roo Code

Search for Roo Code in the VS Code Extensions marketplace, click Install, and restart VS Code.

Setup

1

Clear conflicting environment variables

unset ANTHROPIC_AUTH_TOKEN
unset ANTHROPIC_BASE_URL
2

Open Roo Code settings

Click the Settings button in the Roo Code sidebar.
3

Configure the API provider

Fill in the following:
  • API ProviderOpenAI Compatible
  • Base URLhttps://www.bettertoken.com/v1
  • API Key → your BetterToken API Key
  • Modelclaude-sonnet-4-5 (or another supported model)
4

Save

Click Save then Done.

Supported models

ModelDescription
claude-sonnet-4-5Balanced — recommended
claude-opus-4-5Most capable — complex tasks
claude-haiku-4-5Fastest — simple completions
gpt-4oOpenAI flagship
gpt-4o-miniLightweight, faster