$Cheapa API Docs

Roo Code

Connect Roo Code, the autonomous VS Code agent, to Cheapa API 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 Cheapa API, you get powerful model options with unified billing through your Cheapa API 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 Cheapa API

In the provider configuration:

FieldValue
API ProviderOpenAI Compatible
Base URLhttps://api.cheapaapi.com/v1
API KeyYour Cheapa API API key
Model IDkimi-k2.7-code or deepseek-v4-pro

Get your API key from cheapaapi.com/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
Code generation & refactoringkimi-k2.7-codeMoonshot's code-tuned K2.7 — best for code generation and refactoring
Autonomous developmentkimi-k2.6Best for complex reasoning and planning
Code generationdeepseek-v4-proOptimized for programming tasks
Large codebase analysisminimax-m3Extended context for big projects
Quick iterationsglm-5.1Fast responses, cost-effective

Troubleshooting

"Invalid API key" error

  • Verify the key is correct at cheapaapi.com/keys
  • Re-paste the key ensuring no extra spaces

"Model not found" error

  • Ensure you selected OpenAI Compatible as the provider
  • Use exact model slugs: kimi-k2.7-code, deepseek-v4-pro, minimax-m3

Connection failures

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

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 deepseek-v4-pro for optimal code generation
  • Token usage is per-interaction at the active model's rate
  • All usage appears in your Cheapa API dashboard in real-time
  • Roo Code may create checkpoints — useful for reverting unwanted changes

On this page