For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. Open VS Code

  2. Go to the Extensions panel (Ctrl+Shift+X / Cmd+Shift+X)

  3. Search for "Roo Code"

  4. Click Install

Step 2: Configure TensorX

  1. Open the Roo Code panel (click the Roo Code icon in the sidebar)

  2. Click the gear icon to open settings

  3. Configure the following:

Setting
Value

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:

Setting
Value source

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:

Mode
Slash Command
Best For

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, /orchestrator

  • Keyboard shortcut: Cmd+. (macOS) or Ctrl+. (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:

  1. Open Roo Code settings (gear icon)

  2. Navigate to API Configuration Profiles

  3. 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

  1. Verify your API key is correct in Roo Code settings

  2. Ensure the Base URL is exactly https://api.tensorx.ai/v1

  3. Check 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

Last updated

Was this helpful?