How to Use Novita AI with Roo Code: A Complete Setup Guide

Roo Code is a powerful open-source AI coding assistant that brings autonomous development capabilities directly into your VSCode editor. With over 1.3 million installs and a thriving community of developers, Roo Code stands out for its flexibility, multi-model support, and role-specific modes that keep AI agents focused and productive.

In this guide, we’ll show you how to integrate Novita AI’s LLM API with Roo Code, giving you access to cutting-edge models like Moonshot AI’s Kimi and DeepSeek at competitive prices—all within your familiar VSCode environment.

Why Roo Code + Novita AI?

Roo Code: Your AI Dev Team in VSCode

Roo Code goes beyond simple autocomplete. It’s an agentic coding assistant that can:

  • Generate code from natural language descriptions
  • Refactor and debug existing codebases across multiple files
  • Write documentation and answer questions about your code
  • Execute commands and run tests (with your approval)
  • Adapt to your workflow with specialized Modes (Architect, Code, Debug, Ask, Test)

Unlike proprietary tools like Cursor or Windsurf, Roo Code is:

✅ Fully open-source (Apache 2.0 license)

✅ Model-agnostic (works with 10+ providers including OpenAI, Anthropic, Google, and Novita AI)

✅ Privacy-first (your code never leaves your machine unless you send it to an external API)

✅ Community-driven (22.5k+ GitHub stars, active Discord community)

Novita AI: Cost-Effective LLM Access

Novita AI provides developer-friendly access to state-of-the-art language models with:

  • Competitive pricing with transparent pay-as-you-go rates
  • Wide model selection (100+ models including DeepSeek, Moonshot AI, Qwen, and more)
  • OpenAI-compatible API (drop-in replacement for existing code)
  • High reliability with low-latency serving

Prerequisites

Before you begin, make sure you have:

VSCode Installed

Download the latest version of Visual Studio Code from the official website.

Novita AI Account & API Key

  1. Visit Novita AI and sign up for a free account.
  2. Navigate to the Key Management page.
  3. Generate a new API key and copy it (you’ll need it in Step 2).
how to get api key

Integration Steps

Step 1: Install Roo Code Extension

  1. Open VSCode and navigate to the Extensions panel.
  2. Search for “Roo Code” in the marketplace.
  3. Click Install on the extension by Roo Veterinary Inc (ID: RooVeterinaryInc.roo-cline).
  4. After installation, the Roo Code icon (a kangaroo) will appear in your VSCode sidebar.
how to install roo code

Step 2: Configure 3rd-Party Provider (Novita AI)

Once the extension is installed, you’ll need to connect it to Novita AI’s API:

  1. Click the Roo Code icon in the sidebar to open the panel.
  2. In the setup screen, you’ll see two options:
    1. Roo Code Router (requires a Roo Code account)
    2. 3rd-party Provider (use your own API keys)
  3. Select 3rd-party Provider.
  4. Fill in the configuration fields:
    1. API Provider: Choose OpenAI Compatible
    2. Base URL: https://api.novita.ai/openai
    3. API Key: Paste your Novita AI API key (from Prerequisites Step 2)
    4. Model: Enter your desired model name (e.g., moonshotai/kimi-k2.5)
  5. 🎉Note: You can find the full list of available models on the Novita AI Models page.
how to use 3rd-party provider and configure in Roo Code

Step 3: Test the Integration

Let’s verify that Roo Code can communicate with Novita AI:

  1. Open an existing project or create a new file in VSCode.
  2. Open the Roo Code panel (click the kangaroo icon).
  3. Type a simple request in the chat interface
  4. Wait for the AI to respond. You should see:
    1. A “Thinking” indicator (API request in progress)
    2. A response from the model (e.g., “Hello! I’m in Architect mode, ready to help you plan…”)

Understanding Roo Code Modes

One of Roo Code’s most powerful features is its Mode system. Modes keep the AI focused on specific tasks and limit tool access to relevant capabilities—reducing hallucinations and preventing unwanted changes.

Available Modes

ModePurposeWhen to Use
ArchitectPlanning & design (no code changes)Starting a new feature, designing system architecture, breaking down complex tasks
CodeImplementation & refactoringWriting new code, refactoring existing files, making multi-file edits
AskQ&A & explanations (read-only)Understanding how code works, getting quick answers, generating documentation
DebugDiagnostics & fixesTracing errors, adding logs, isolating root causes
OrchestratorCoordinate tasks across multiple modesWhen the work spans multiple stages or roles—for example: first plan, then implement, then debug; handling large/complex requests; splitting a big feature into parallel subtasks; or when you want Roo to manage handoffs between Architect / Code / Debug automatically

Troubleshooting

Error: “Invalid API key”

Solution:

  1. Double-check that you copied the API key correctly from Novita AI.
  2. Ensure there are no extra spaces before/after the key.
  3. Verify that the key has not expired (regenerate if needed).

Roo Code is slow or unresponsive

Solution:

  1. Check your internet connection.
  2. Reduce the number of files in context (use .rooignore to exclude large directories).

Conclusion

You’ve successfully integrated Novita AI with Roo Code in VSCode! This powerful combination gives you flexible AI model access, cost-effective development, and full privacy control—all without vendor lock-in.

Ready to start building? Try asking Roo Code to refactor a complex function, generate unit tests, or debug a tricky error. For more tutorials and community support, visit the Roo Code documentation and join the Discord community.

Happy coding! 🦘

Novita AI is an AI cloud platform that offers developers an easy way to deploy AI models using our simple API, while also providing affordable and reliable GPU cloud for building and scaling.

Frequently Asked Questions

What is Roo Code?

Roo Code is an open-source AI coding assistant for VSCode that brings autonomous development capabilities to your editor. It can generate code, refactor across multiple files, write documentation, debug issues, and execute commands—all through natural language interaction. Unlike autocomplete tools, Roo Code acts as an agentic assistant with role-specific modes (Architect, Code, Debug, Ask, Test) that keep the AI focused on specific tasks.

Is Roo Code free?

Yes, Roo Code itself is free and open-source. You can use it with:
– Your own API keys from providers like Novita AI (pay-as-you-go)
– Roo Code Router (Roo Code’s service)
– Ollama for local models (free, runs on your machine)

Is Roo Code better than Cursor?

Roo Code and Cursor serve similar purposes but have different strengths. Roo Code is fully open-source and model-agnostic, meaning you can use any AI provider (OpenAI, Anthropic, Novita AI, etc.) and aren’t locked into a single vendor. Cursor offers a more polished, integrated experience but requires their subscription and limits your model choices. If flexibility, cost control, and open-source values matter to you, Roo Code is the better choice.


Discover more from Novita

Subscribe to get the latest posts sent to your email.

Leave a Comment

Scroll to Top

Discover more from Novita

Subscribe now to keep reading and get access to the full archive.

Continue reading