SETUP GUIDE

Use AIGateway models in Roo Code

Set AIGateway as the OpenAI-compatible endpoint in Roo Code. Top up your balance and create an API key first.

Values to enter

Enter these three values in Roo Code.

Base URL
https://api.ai.portomo.com/v1
Model ID
deepseek-v4.1-flash

Create your API key on the API keys page. Create an API key →

Setup steps

  1. Open Roo Code in VS Code and open its settings (the gear icon).
  2. For API Provider, choose "OpenAI Compatible".
  3. Enter the base URL above in Base URL and your AIGateway key in API Key.
  4. Enter the model ID above in Model ID and save.
  5. Send a short message and confirm that a reply comes back. For tasks such as editing files, choose a model that supports tool calls.

Setting names and locations may differ between versions of Roo Code. Roo Code documentation ↗

AIGateway API usage is deducted from your balance. See Models & pricing for the price of each model. View all pricing →

Troubleshooting

For 401 or 403, check your API key and balance. For 404, check the endpoint and API path. Use the model ID shown in Models & pricing. Never embed your API key in browser JavaScript.