Roo Code
Use TensorX models as your AI coding agent in VS Code with Roo Code — featuring multiple specialized modes, custom instructions, and multi-agent orchestration.
Overview
Roo Code is an open-source AI coding agent for VS Code. It provides a full dev team of AI agents in your editor with specialized modes for coding, debugging, architecture, and more. Roo Code supports OpenAI-compatible API providers, making it easy to connect to TensorX.
Why Roo Code + TensorX?
🧠 Multiple modes — Code, Architect, Debug, Ask, and Orchestrator built in
🔄 Boomerang orchestration — Coordinate multi-step tasks across modes
📁 Full codebase access — Read, edit, run commands, and browse the web
🎯 Custom modes — Create specialized personas with file restrictions
💰 Cost-effective — Use powerful open-source models at a fraction of the cost
Prerequisites
VS Code (latest version recommended)
A TensorX API key (sign up here)
Setup
Step 1: Install Roo Code
Open VS Code
Go to the Extensions panel (
Ctrl+Shift+X/Cmd+Shift+X)Search for "Roo Code"
Click Install
Step 2: Configure TensorX
Open the Roo Code panel (click the Roo Code icon in the sidebar)
Click the gear icon to open settings
Configure the following:
API Provider
OpenAI Compatible
Base URL
https://api.tensorx.ai/v1
API Key
Your TensorX API key
Model
z-ai/glm-5.1
Step 3: Configure Model Settings (Optional)
Under Model Configuration, you can customize:
Context Window
See model specs on tensorx.ai/models
Max Output Tokens
16384
Using Modes
Roo Code includes five built-in modes, each with different capabilities:
Code (default)
/code
Writing code, implementing features, debugging
Architect
/architect
System design, planning, architecture decisions
Debug
/debug
Tracking bugs, diagnosing errors
Ask
/ask
Code explanation, learning, technical questions
Orchestrator
/orchestrator
Multi-step projects, coordinating across modes
Switch modes using:
The dropdown menu (left of chat input)
Slash commands:
/code,/architect,/debug,/ask,/orchestratorKeyboard shortcut:
Cmd+.(macOS) orCtrl+.(Windows/Linux)
Recommended Models
Coding ⭐
z-ai/glm-5.1
Top coding performance, strong reasoning
Reasoning
minimax/minimax-m2.5
Complex analysis, function calling
Architecture
deepseek/deepseek-r1-0528
Deep reasoning for design decisions
Vision
moonshotai/kimi-k2.5
Image understanding, long context
General chat
deepseek/deepseek-chat-v3.1
Balanced performance and cost
Fast tasks
minimax/minimax-m2
Quick responses, cost-sensitive
Tip: Use API Configuration Profiles to set different models for different modes — e.g., GLM-5.1 for Code mode, DeepSeek R1 for Architect mode.
API Configuration Profiles
Roo Code supports per-mode API profiles, so you can use different models for different tasks:
Open Roo Code settings (gear icon)
Navigate to API Configuration Profiles
Create profiles for each mode with different TensorX models
Example setup:
Coding
OpenAI Compatible
z-ai/glm-5.1
Code mode
Reasoning
OpenAI Compatible
deepseek/deepseek-r1-0528
Architect mode
Fast
OpenAI Compatible
minimax/minimax-m2
Ask mode
All profiles use the same Base URL (https://api.tensorx.ai/v1) and API key.
Custom Modes
Create specialized modes by adding a .roomodes file to your project root:
Troubleshooting
Model Not Responding
Verify your API key is correct in Roo Code settings
Ensure the Base URL is exactly
https://api.tensorx.ai/v1Check your TensorX credit balance at app.tensorx.ai
Context Window Errors
Update the Context Window in Model Configuration to match your chosen model. Check tensorx.ai/models for current specs.
Slow Responses
Try switching to a faster model like minimax/minimax-m2 for simple tasks, or reduce the Max Output Tokens setting.
See Also
Cline Integration — Similar VS Code extension
Kilo Code Integration — Another VS Code coding agent
Last updated
Was this helpful?

