Connecting Your First AI Provider
To get started, you'll need to connect Roo Code to an AI model provider. We recommend starting with one of these options, which all offer access to Anthropic's powerful Claude 3.5 Sonnet model:
-
OpenRouter (Recommended): A platform that provides access to multiple AI models, including Claude 3.5 Sonnet. This is often the easiest option for getting started.
-
Anthropic: Direct access to Claude models from Anthropic. Requires applying for API access, and may be rate limited depending on your tier.
Choose one of these options and follow the instructions below to obtain an API key.
Getting Your API Key
Option 1: OpenRouter
- Go to the OpenRouter website: https://openrouter.ai/
- Sign in with your Google or GitHub account.
- Get an API Key: Go to the keys page and create a key. Copy the key.
Option 2: Anthropic
- Go to the Anthropic Console: https://console.anthropic.com/
- Sign up for an account or log in.
- Create an API Key: Go to the API keys page (you may need to navigate through the dashboard) and create a new key. Important: Copy the key immediately, as you won't be able to see it again.
Configuring Roo Code in VS Code
-
Open the Roo Code Sidebar: Click the Roo Code icon () in the VS Code Activity Bar. You should see the welcome screen.
-
Select your API Provider: In the "API Provider" dropdown, choose your API provider.
-
Enter your API Key: Paste your API key into the "API Key" field.
-
Select your Model:
- If you're using OpenRouter, select
anthropic/claude-3.5-sonnet:beta
. - If you're using Anthropic, select
claude-3-5-sonnet-20241022
.
- If you're using OpenRouter, select
-
Click "Let's go!": Roo Code will save your settings, and you'll be ready to start coding!