$LLMAI Docs

Roo Code

Connect Roo Code, the autonomous VS Code agent, to LLMAI for intelligent coding assistance.

What This Does

Roo Code is an autonomous AI coding agent for VS Code. It can analyze codebases, write and modify files, run terminal commands, and iterate on complex development tasks. By connecting Roo Code to LLMAI, you get powerful model options with unified billing through your LLMAI account.


Setup

Step 1: Install Roo Code

  1. Open VS Code
  2. Go to the Extensions marketplace (Cmd+Shift+X or Ctrl+Shift+X)
  3. Search for Roo Code
  4. Click Install

Step 2: Open Roo Code Settings

  1. Click the Roo Code icon in the VS Code sidebar
  2. Click the settings icon (gear) or the configuration button
  3. Navigate to Providers or API Configuration

Step 3: Configure LLMAI

In the provider configuration:

FieldValue
API ProviderOpenAI Compatible
Base URLhttps://api.llmai.dev/v1
API KeyYour LLMAI API key
Model IDgpt-5.4 or gpt-5.3-codex

Get your API key from console.llmai.dev/keys.

Step 4: Save and Test

  1. Save your configuration
  2. Start a new Roo Code session
  3. Enter a simple prompt to verify connectivity

Example prompt:

Analyze the structure of this project and summarize the main components.

TaskModelWhy
Autonomous developmentgpt-5.4Best for complex reasoning and planning
Code generationgpt-5.3-codexOptimized for programming tasks
Large codebase analysisgemini-3.1-proExtended context for big projects
Quick iterationsglm-5-turboFast responses, cost-effective

Troubleshooting

"Invalid API key" error

"Model not found" error

  • Ensure you selected OpenAI Compatible as the provider
  • Use exact model slugs: gpt-5.4, gpt-5.3-codex, gemini-3.1-pro

Connection failures

  • Verify Base URL is https://api.llmai.dev/v1 without trailing slash
  • Check your network allows HTTPS connections to api.llmai.dev

Slow responses

Roo Code can't modify files

  • Check file permissions in your project directory
  • Ensure Roo Code has the necessary VS Code permissions

Notes

  • Roo Code can execute terminal commands — review actions before approving
  • For long autonomous sessions, consider using gpt-5.3-codex for optimal code generation
  • Token usage is per-interaction at the active model's rate
  • All usage appears in your LLMAI dashboard in real-time
  • Roo Code may create checkpoints — useful for reverting unwanted changes

On this page