Roo Code
Configure Roo Code with AICredits through the OpenAI-compatible provider for VS Code coding agents.
Use this page with an AI assistant
Opens a new chat with this docs URL and the correct AICredits base URLs.
Roo Code is a VS Code coding-agent extension for planning, editing, reviewing, and running tool-backed workflows. Use the OpenAI-compatible provider to send model calls through AICredits.
Provider Settings
In Roo Code provider settings, choose OpenAI Compatible and configure:
| Setting | Value |
|---|---|
| Base URL | https://api.aicredits.in/v1 |
| API key | sk-your-aicredits-key |
| Model | Pick from Models |
Recommended model IDs:
anthropic/claude-sonnet-4.5
openai/gpt-4o-mini
google/gemini-2.5-flashMode Recommendations
| Roo Code use case | Model |
|---|---|
| Ask and explain | openai/gpt-4o-mini |
| Edit mode | anthropic/claude-sonnet-4.5 |
| Architecture planning | google/gemini-2.5-flash |
Use a separate AICredits key for Roo Code. Coding agents can spend quickly when they inspect files, run tools, and revise patches.
Verify
Ask Roo Code:
Reply with "AICredits via Roo Code" and do not edit files.Then check Dashboard -> Usage.
Troubleshooting
Provider test fails - Confirm the base URL includes /v1.
Model is not shown - Enter the AICredits model ID manually if the UI allows custom names.
Too many requests - Lower the default model cost and use budget-capped API keys.