Skip to content

Roo Code Integration

Roo Code is an AI-powered coding assistant for VS Code that helps you write, debug, and understand code. This guide shows you how to connect Roo Code to LLMCloud.

  1. Open VS Code and click the Roo Code icon in the sidebar
  2. Click the settings icon (⚙️) in the top-right corner
  3. Configure the following settings:
SettingValue
API ProviderOpenRouter
Base URLhttps://llmcloud.studio/v1
API KeyYour LLMCloud API key
Model IDanthropic/claude-sonnet-4.5 (or your preferred model)

Important: Enable Use legacy OpenAI API format to prevent write_file errors.

Roo Code OpenAI Configuration

ModelModel ID
Claude Opus 4.6anthropic/claude-opus-4.6
Claude Opus 4.5 Thinkinganthropic/claude-opus-4.5-thinking
Claude Sonnet 4.6anthropic/claude-sonnet-4.6
Claude Sonnet 4.5anthropic/claude-sonnet-4.5
Claude Sonnet 4.5 Thinkinganthropic/claude-sonnet-4.5-thinking
Claude Haiku 4.5anthropic/claude-haiku-4.5
Gemini 3 Flash Previewgoogle/gemini-3-flash-preview
Gemini 3 Pro Previewgoogle/gemini-3-pro-preview
  1. Click Done to save

After configuration, Roo Code is ready to use. Open the Roo Code panel and start chatting to:

  • Generate new code
  • Refactor existing code
  • Debug issues
  • Explain complex code

Roo Code Usage

Problem: “API Key invalid or unauthorized” error

Solutions:

  • Verify your API key is correct
  • Check your account has sufficient balance at LLMCloud Dashboard

Problem: Errors when Roo Code tries to write files

Solution: Enable Use legacy OpenAI API format in settings (for OpenAI Compatible mode)

Problem: Unable to connect to API

Solutions:

  • For OpenAI Compatible: Base URL must be https://llmcloud.studio/v1
  • For Anthropic: Base URL must be https://llmcloud.studio
  • Check your internet connection
  • Test with curl:
    Terminal window
    curl https://llmcloud.studio/v1/models \
    -H "Authorization: Bearer YOUR_API_KEY"

Problem: “Model not found” or “Invalid model” error

Solutions:

  • Use the exact model ID format (e.g., anthropic/claude-sonnet-4.5)
  • Verify the model is available in your subscription