Roo Code
VS Code AI coding plugin. Connect to BeansAI as a custom Anthropic provider in minutes.
Overview
Roo Code is an AI coding assistant that runs inside VS Code (and VS Code forks like Cursor). It supports plugging in any Anthropic-compatible API endpoint via its graphical settings UI — no config files to edit.
Installation
- Open VS Code. Press
Ctrl+Shift+Xto open the Extensions panel. - Search for
Roo Codeand click Install. - Once installed, the Roo Code icon appears in the sidebar.
Configuration
- Click the Roo Code icon in the sidebar to open its configuration panel.
- Under
API Provider, selectAnthropic. - Paste your BeansAI key (starts with
sk-beans-) intoAPI Key. - Check
Use custom base URLand enter the BeansAI endpoint. - Select your model (e.g.
claude-opus-4-7) and save.
Roo Code settings reference
API Provider: Anthropic
API Key: sk-beans-...
Use custom base URL: ✅ (check)
Base URL: https://api.beansai.dev
Model: claude-opus-4-7
⚠ Do NOT check:
"Send Anthropic API key as Anthropic header"
"Enable 1M context"⚠ Important: Do not check Send Anthropic API key as Anthropic header or Enable 1M context. Either option breaks request compatibility with BeansAI.
Basic usage
Open any file in VS Code, then click the Roo Code icon. Type your request in the chat box. Roo Code automatically includes the current file as context — select a code block first to scope the change to that snippet.
Tips
- Select code before typing your prompt — Roo Code will scope the edit to that selection and produce more precise diffs.
- Roo Code supports multi-file edits in a single conversation. Describe the change in one message and let it touch all relevant files.
- If a response isn't quite right, click
Retrywith an amended prompt rather than starting a new conversation — context is preserved. - Switch models mid-conversation by changing the model selector in the panel. Useful for drafting with a cheaper model, then refining with Opus.