Skip to main content
RooCode is a powerful standalone AI coding assistant application with an interactive chat interface, code review capabilities, and multi-file editing. Configure it to use MegaLLM for access to multiple AI models.

Quick Configuration

Step-by-Step Setup

1

Open RooCode Settings

  • Launch RooCode application
  • Click the gear icon ⚙️ (bottom-left corner)
  • Navigate to: Settings → API Configuration
2

Select Provider Type

  • Provider Type: Select OpenAI Compatible
  • This enables custom base URL configuration
  • Allows MegaLLM integration
3

Configure API Endpoint

  • Base URL: https://ai.megallm.io/v1
  • API Key: sk-mega-your-api-key-here
  • Organization: Leave empty (not required)
  • Click Save
4

Choose Default Model

  • Default Model: gpt-5
  • Fallback Model: gpt-4o (optional)
  • Temperature: 0.7 (balanced creativity)
  • Max Tokens: 4096
5

Enable Features

  • Code Completion
  • Chat Interface
  • Code Review
  • Refactoring Assistant
  • Multi-File Edit

Scenario Examples

Scenario 1: First-Time Installation

Complete setup from downloading to first use:
1

Download and Install RooCode

  1. Visit RooCode.io (example URL)
  2. Download for your OS (Windows/macOS/Linux)
  3. Install the application
  4. Launch RooCode
2

Get MegaLLM API Key

  1. Visit MegaLLM Dashboard
  2. Sign up or log in
  3. Navigate to API Keys section
  4. Click Create New Key
  5. Copy the key (starts with sk-mega-)
3

Configure API Provider

In RooCode:
  1. Click ⚙️ Settings icon
  2. Go to API Configuration
  3. Select Provider: OpenAI Compatible
  4. Enter Base URL: https://ai.megallm.io/v1
  5. Paste API Key: sk-mega-your-key
  6. Click Test Connection (should show ✓ Success)
  7. Click Save
4

Choose Your First Model

  1. In Settings → Model Selection
  2. Select: gpt-5 (recommended for general use)
  3. Or browse available models
  4. Set Temperature: 0.7 (balanced)
  5. Save settings
5

Test Configuration

  1. Open a new chat in RooCode
  2. Type: Hello! What model are you using?
  3. Should respond with model information
  4. Try: Write a hello world function in Python
Expected Response:

Scenario 2: Team Setup with Shared Configuration

Set up RooCode for an entire development team: Scenario: Development team of 10 people need consistent RooCode configuration Step 1: Team Lead Creates Base Config team-roocode-config.json:
Step 2: Create Setup Instructions ROOCODE_SETUP.md:
Step 3: Distribute to Team
Result: Entire team uses consistent:
  • Same AI model (gpt-5)
  • Same temperature and settings
  • Same custom prompts
  • Same coding standards
  • Personal API keys (not shared)

Scenario 3: Project-Specific Configurations

Use different RooCode configurations for different project types: Python Data Science Project: roocode-datascience.json:
React Web Application: roocode-webapp.json:
Systems Programming (Rust): roocode-systems.json:
Switching Between Projects:

Scenario 4: Migration from Cursor/Other AI Tools

Switching from another AI coding tool to RooCode with MegaLLM: Current Setup: Using Cursor with OpenAI Why Switch to RooCode + MegaLLM:
  • Access to multiple models (GPT, Claude, Gemini) with one key
  • Standalone app (not tied to specific editor)
  • Better pricing and no seat limits
  • More customization options
Migration Steps:
1

Export Current Preferences

From Cursor (if possible):
  • Note your preferred models
  • Save any custom prompts
  • Document keyboard shortcuts you use
2

Install RooCode

Download and install RooCode for your OS
3

Configure MegaLLM

4

Recreate Custom Prompts

Add your frequently used prompts:
5

Test Functionality

Compare side-by-side:
  1. Open same code in both tools
  2. Ask same questions
  3. Compare code generation quality
  4. Evaluate response speed
Comparison Table:

Scenario 5: Multi-Model Workflow

Use different models for different types of tasks: Configuration with Model Profiles:
Workflow Example:
Switching Profiles in RooCode:
  1. Click model dropdown (top bar)
  2. Select profile: Fast / Balanced / Quality / Creative / Analysis
  3. Profile applied to current session

Scenario 6: CI/CD Integration

Use RooCode API for automated code reviews in CI/CD: GitHub Actions Example: .github/workflows/roocode-review.yml:

Configuration Options

Complete Reference

Model Selection Guide

Verification

Test 1: Chat Functionality

  1. Open RooCode
  2. Click New Chat
  3. Type: Write a function to sort an array of objects by a property
  4. Should receive working code
Expected Response:

Test 2: Code Review

  1. Paste this code:
  1. Click Review Code button
  2. Should identify: Missing zero division check

Test 3: Multi-File Edit

  1. Open multi-file view
  2. Request: “Add error handling to all API calls”
  3. Should show changes across multiple files
  4. Review and apply changes

Test 4: Connection Status

Check status indicator (top-right):
  • 🟢 Green = Connected to MegaLLM
  • 🟡 Yellow = Connecting…
  • 🔴 Red = Connection failed
Click status to see:
  • Model: gpt-5
  • Endpoint: https://ai.megallm.io/v1
  • Token usage: Current session stats

Troubleshooting

Symptoms:
  • “Failed to connect to API”
  • Requests timeout after 30s
  • Chat messages don’t send
Solutions:
  1. Verify base URL is correct:
  2. Test connectivity:
  3. Check firewall:
    • Allow RooCode through firewall
    • Check corporate proxy settings
    • Verify no VPN blocking
  4. Increase timeout:
  5. Test API key manually:
Symptoms:
  • “Invalid API key” error
  • 401 Unauthorized
  • Authentication failed
Solutions:
  1. Verify key format:
    • Must start with sk-mega-
    • Should be 60+ characters
    • No extra spaces or line breaks
    • No quotes in config file around the actual key
  2. Check key is active:
    • Login to Dashboard
    • Go to API Keys
    • Verify key shows as “Active”
    • Check it’s not revoked or expired
  3. Re-enter the key:
    • Copy key from dashboard
    • Delete old key from RooCode settings
    • Paste new key
    • Save and restart RooCode
  4. Test key directly:
Symptoms:
  • Irrelevant code suggestions
  • Wrong programming language
  • Incomplete responses
Solutions:
  1. Provide better context:
    • Set project language in settings
    • Add framework information
    • Use custom prompts
  2. Adjust temperature:
  3. Try different model:
  4. Increase max tokens:
  5. Use specific prompts:
Symptoms:
  • Settings revert after restart
  • Changes don’t apply
  • Using default configuration
Solutions:
  1. Check config file location:
  2. Validate JSON syntax:
  3. Check file permissions:
  4. Reset to defaults:
    • Backup current config
    • Delete config.json
    • Restart RooCode (creates new config)
    • Reapply settings via UI
Symptoms:
  • RooCode crashes on startup
  • Freezes during long responses
  • Unresponsive UI
Solutions:
  1. Check system resources:
    • Close other applications
    • Ensure 4GB+ RAM available
    • Check CPU usage
  2. Reduce max tokens:
  3. Disable streaming:
  4. Clear cache:
  5. Reinstall RooCode:
    • Backup config.json
    • Uninstall RooCode
    • Download latest version
    • Install and restore config

Best Practices

Project Configurations

Create separate configs for different project types

Model Profiles

Set up profiles for different tasks: fast, quality, creative

Custom Prompts

Define reusable prompts for common tasks

Monitor Usage

Check Dashboard regularly for token usage

Backup Configs

Keep backups of working configurations

Security

Use environment variables for API keys in shared configs

Advanced Tips

Environment Variables

RooCode supports environment variable substitution:
Set variables:

Context Management

Improve responses with better context:

Response Caching

Save API costs with intelligent caching:

Next Steps

Kilocode Setup

Configure Kilocode VSCode extension

Cline Setup

Configure Cline VSCode extension

Models Catalog

Browse all available models

Other Agents

View all CLI and GUI agents

API Reference

Explore the API docs

Discord Community

Join for support