Roo Code Access

Roo Code officially provides OpenAI Compatible provider. Its Agent only uses OpenAI native tool calls and does not support XML tool call downgrade, so the model must really support native tool calls.

If not yet installed, follow Roo Code installation guide to install the extension. An agent is an assistant that can read and write files and carry out tasks. Native tool calling means the model returns a tool name and parameters in a dedicated structure; merely writing instructions in ordinary text is insufficient.

Configuration Steps

  1. Install Roo Code in the VS Code extension market.
  2. Open Roo Code settings and click on the provider settings portal.
  3. API Provider Select OpenAI Compatible.
  4. Fill in:
Field Fill in content
Base URL https://shanghaido.com/v1
API Key Your site token, such as YOUR_API_KEY
Model qwen3.8-flash
  1. After saving, send a normal question first, then let Roo Code read a small file, and finally try to modify a line of code.

The context length, maximum output, image support and Computer Use in the model configuration are filled in according to the actual capabilities of the model. Don’t automatically turn on images or other advanced capabilities just because the model name contains “inference” or “code.”

Tool call restriction

Roo Code will send the tool definition according to OpenAI’s native tools structure and wait for native tool events. If a tool calling error occurs:

  1. Confirm that the model name comes from GET /v1/models.
  2. Confirmed that the protocol was not switched to Responses or Anthropic Messages.
  3. Temporarily turns off forced tool selection and uses automatic selection.
  4. There is no problem in requesting confirmation of address and token in normal text.

The model must support the tool calling format required by the client; if you encounter compatibility issues, please contact the site customer service.

official information

encountered a problem

If you encounter problems with calling or configuration, please contact the site customer service and provide the model name, error time and error information to facilitate troubleshooting.