Set it up
You need a Nerdly key (it starts with sk-nerd-): sign in on the API page to get one, and add credit in Billing.
- Open the Roo Code panel in VS Code and click the gear icon at the top of it; in the Providers tab, click + next to the profile selector and name the profile, for example Nerdly Code.
- Set the four fields; the Model field is preset to an OpenAI id, so replace it.text1
API Provider OpenAI Compatible2Base URL https://api.nerdly.us/v13API Key sk-nerd-…4Model deepseek-v4-flash-0731 - Fill Model Configuration for the model from its row on /models: Context Window Size, Max Output Tokens, Input Price and Output Price (USD per million tokens, plain digits) and Image Support.
- Leave the checkboxes at their defaults and Custom Headers empty.text1
Enable streaming on2Include max output tokens on3Use Azure off4Enable R1 model parameters off5Prompt Caching off6Enable Reasoning Effort off - Close the settings and send a message in Code mode; the API Configuration dropdown under the chat input shows the profile, and /code, /ask, /architect and /debug switch modes.
The examples use deepseek-v4-flash-0731, the most used coding model on Nerdly today; put any id from the models page in its place.
Which model to pick
- Qwen4 35B A3B Uncensored (
qwen4-35b-a3b-uncensored): $0.48 in, $2.40 out per million tokens, 1M context, about 1.4¢ an agent step. - Ergo Uncensored (
ergo-uncensored): $4.40 in, $13.32 out per million tokens, 1M context, about $0.11 an agent step. - GLM-5.3 Abliterated (
glm-5.3-abliterated): $2.33 in, $4.66 out per million tokens, 131K context, about 5.6¢ an agent step. - DeepSeek V4 Flash 0731 (
deepseek-v4-flash-0731): $0.08 in, $0.12 out per million tokens, 1M context, about 0.19¢ an agent step. - DeepSeek V4.1 Flash 1017 (
deepseek-v4.1-flash-1017): $0.25 in, $1.20 out per million tokens, 1M context, about 0.74¢ an agent step. - Claude Opus 5.5 (
claude-opus-5-5): $2.80 in, $10 out per million tokens, 1M context, about 7.6¢ an agent step.
What a session costs
40 agent steps (20,000 tokens in and 2,000 out each) on DeepSeek V4 Flash 0731 cost about 7.4¢, paid from your balance. Every request Roo Code sends is priced by its tokens at the model’s rate; a cheaper model costs less, a larger one more.
Things that trip people up
- Base URL ends in /v1 and nothing after it: Roo Code appends /chat/completions and /models itself, and Use Azure stays off.
- The agent loop runs on native tool calling only, with no XML fallback, so the model has to take tool calls or Roo Code answers in prose instead of editing.
- A Max Output Tokens value above what the model allows gives a 400 on every request while Include max output tokens is on; -1 lets the server set it.
- Context Window Size decides when Roo Code condenses the task; a wrong number trims too early or too late.
- The Model picker stays empty until Base URL and API Key are saved; reopen the settings after saving.
- Export writes roo-code-settings.json with the key in plaintext; keep that file out of the repository.
- Each mode remembers the profile last used in it, Orchestrator subtasks inherit the parent task’s profile, and a task resumed from history keeps the profile it started with.
Roo Code’s own documentation: roocodeinc.github.io/Roo-Code/providers/openai-compatible.
More guides
Questions.
Something else? Email hello@nerdly.us
Run Roo Code on any model.
Get a key, add credit from $10, and point the tool at Nerdly.
Get a key