Connecting Your First LLM Provider
Roo Code needs an inference provider to access the LLM models that make it work.
A great model to start is Claude Sonnet 4.5, which offers a lot of power at a reasonable price point. To get it going, choose a provider:
-
Roo Code Cloud Provider (Recommended): the easiest way to access multiple providers tested with Roo Code. No API needed. To get started, just choose Roo Code Cloud as a provider and follow instructions. Learn more about it.
-
OpenRouter: Provides access to multiple AI models from different labs through a single API key. Great for flexibility and getting started reasonably fast. To get an API key, follow these instructions
-
Anthropic: Direct access to the Claude family of models. Requires API access approval and may have rate limits depending on your tier. To get an API key, follow these instructions
Roo Code is compatible with other providers which offer Claude, and with a wide range of different models you can try.
We recommend Claude Sonnet 4.5 because it "just works" out of the box for most tasks. We use it internally a lot.
You can choose other models, but that introduces complexity. Different models vary in how they follow tool instructions, parse formats, and maintain context through multi-step operations, so it may be better to try them later. If you do experiment with other models, choose ones specifically designed for structured reasoning and tool use.
Configuring the provider in VS Code
- Open the Roo Code panel by clicking the Roo Code icon () in the VS Code Activity Bar
- In the welcome screen, choose your LLM provider.
- If you choose the Roo Code Cloud provider, just connect your account and choose
anthropic/claude-sonnet-4-5from the dropdown. You're set. - If you chose another provider, paste the API key you copied from it into the right field and continue
- Select your model (it should be called
claude-sonnet-4-5oranthropic/claude-sonnet-4-5) and complete the process.
Now you can start coding!