All guides / Coding assistants
Use XHuoAPI in Roo Code
Roo Code keeps Cline's provider model: pick OpenAI Compatible in settings and fill in base URL, API key and model ID.
Before you start
- Sign up in the console and create an API token. Registration needs an email address only, no phone number.
- You pick a tier when creating the token; new accounts default to Standard. The tier sets price and stability and also which models are available — see the pricing page.
Verify first
Before touching the tool, confirm the key and model work with curl. This rules out half of the 'I configured it and nothing happens' cases.
curl https://api.xhuoapi.ai/v1/chat/completions \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-v3.2","messages":[{"role":"user","content":"ping"}]}'
Steps
Open the Roo Code sidebar and click the gear icon to open API Configuration.
Set API Provider to OpenAI Compatible and fill in:
Base URL: https://api.xhuoapi.ai/v1 API Key: sk-... Model ID: claude-sonnet-5
Click Save. Roo Code lets each mode (Code / Architect / Ask …) use its own configuration profile, so Architect can run a stronger reasoning model while Code uses a cheaper one.
Notes
Commonly used models
These are common choices for this kind of tool; click a model to see its price in each tier. The full list is on the pricing page.
Steps follow the tool's current official documentation; the UI may change after updates. Tell us if something no longer matches.