---
title: "Roo Code 接入 rawroute：多模型 API 省 50%–70%"
canonical: "https://rawroute.dev/zh/integrations/roo-code"
lang: "zh-Hans"
last_verified: "2026-11-28"
description: "在 Roo Code 中配置 rawroute（https://api.rawroute.dev/v1）：为 Architect、Code 与 Ask 模式分别指定 Opus 5.5、Sonnet 5.5 或 GPT-6.2，成本直降 50%–70%。"
---

# 在 Roo Code 中接入 rawroute。

Roo Code 支持为不同角色模式分配不同模型配置。统一使用 rawroute API Key，可用 Opus 5.5（$2.00 / $10.00）规划架构、GPT-6.2 Sol（$0.60 / $3.00）高速改代码，免去多平台充值与 OpenRouter 5.5% 手续费。

## 接入步骤

1. 打开 Roo Code → 设置 → Providers，分别为 Architect 与 Code 模式创建配置档案。
2. Claude 配置选择 Anthropic（Base URL：https://api.rawroute.dev），GPT/Gemini/Grok 选择 OpenAI Compatible（Base URL：https://api.rawroute.dev/v1）。
3. 填入同一个 rawroute API Key，并可在控制台按设备设置硬性美元消费上限。

### Roo Code · Multi-Mode Profile Setup

```text
# Profile 1: Architect (Anthropic Native)
Provider: Anthropic
Base URL: https://api.rawroute.dev
API Key:  rr_live_your_key_here
Model:    claude-opus-5-5

# Profile 2: Fast Code (OpenAI Compatible)
Provider: OpenAI Compatible
Base URL: https://api.rawroute.dev/v1
API Key:  rr_live_your_key_here
Model ID: gpt-6.2-sol
```

## 何时不适用 rawroute

- 若您仅需在 Roo Code 中调用本机 GPU 上的本地开源权重，继续使用本地 Ollama/vLLM 即可。
