Roo Code
Configure Roo Code in VS Code to use the TensorX API.
Overview
Roo Code is an open-source coding agent for VS Code with support for OpenAI-compatible API providers.
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
An ID returned by GET /v1/models
Step 3: Configure Model Settings (Optional)
Under Model Configuration, you can customize:
Context Window
model_info.max_input_tokens from GET /v1/model/info
Max Output Tokens
Leave unset unless the profile needs an explicit application limit
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)
Model selection
Call GET /v1/models with your TensorX API key and use one of the returned IDs. If the integration depends on a capability or token limit, query GET /v1/model/info before selecting the model. See Models for examples.
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
All profiles use the same Base URL (https://api.tensorx.ai/v1) and API key. Select each profile's model from the current API response.
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
Check network connectivity and the request latency in the TensorX usage dashboard. If the profile sets an explicit Max Output Tokens value, confirm that it is intentional.
See Also
Cline Integration — Similar VS Code extension
Kilo Code Integration — Another VS Code coding agent
Last updated
Was this helpful?

