1. Install Roo Code
Install the Roo Code Extension for VS Code.
2. Configure Provider
- Open the Settings menu.
- Go to Providers
- Click + to create a new profile
- Name the profile something appropriate, e.g. ‘CBorg Coder’ (can be changed later)
- For API Provider select LiteLLM
- Set Base URL to https://api.cborg.lbl.gov
- Add your CBORG_API_KEY to LiteLLM API Key
- Click Refresh Models
- Select the desired model
For more information please consult the RooCode documentation: Using LiteLLM with RooCode
Troubleshooting Tips
Gemini Models
- The cache setting in RooCode is not supported. These models automatically apply caching discounts.
Preventing Common Errors
If you have issues with API errors, add the following to your global rules: ~/.roo/rules/rules.md.
## Chat compatibility
Make sure to always return an assistant message in your responses.
## Diff-based Editing
When targeting text for a diff, copy the exact lines from the source file. The diff tool requires a 100% string match to apply the edit. Do not strip out newlines (\n) or combine multiple lines into a single continuous string."