|
| 1 | +--- |
| 2 | +description: Configure Tetrate Agent Router Service (TARS) in Roo Code to access LLMs from multiple providers with configurable fallback and built-in observability. |
| 3 | +keywords: |
| 4 | + - roo code |
| 5 | + - tetrate agent router service |
| 6 | + - tetrate |
| 7 | + - tars |
| 8 | + - ai provider |
| 9 | + - language models |
| 10 | + - model configuration |
| 11 | + - cost visibility |
| 12 | + - usage tracking |
| 13 | +sidebar_label: Tetrate Agent Router Service |
| 14 | +image: /img/social-share.jpg |
| 15 | +--- |
| 16 | + |
| 17 | +# Using Tetrate Agent Router Service (TARS) With Roo Code |
| 18 | + |
| 19 | +Roo Code supports accessing models through the [Tetrate Agent Router Service (TARS)](https://tetrate.io/products/tetrate-agent-router-service), a managed LLM routing service that provides configurable fallback and traffic shifting, and cost visibility without infrastructure overhead. |
| 20 | + |
| 21 | +**Website:** [https://router.tetrate.ai](https://router.tetrate.ai) |
| 22 | +**API Endpoint:** `https://api.router.tetrate.ai/v1` |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +## Getting an API Key |
| 27 | + |
| 28 | +1. **Sign Up/Sign In:** Go to the [TARS website](https://router.tetrate.ai) and create an account using Google or GitHub OAuth. |
| 29 | +2. **Get API Key:** Generate your API key from the TARS dashboard after signing in. |
| 30 | +3. **Free Credit:** New signups with business email addresses receive a $5 free credit to get started. |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +## Supported Models |
| 35 | + |
| 36 | +TARS provides access to models from multiple providers through a unified API. Roo Code will automatically fetch the latest list of available models. TARS supports configurable fallback and traffic shifting between models based on availability, cost, or performance preferences. |
| 37 | + |
| 38 | +--- |
| 39 | + |
| 40 | +## Configuration in Roo Code |
| 41 | + |
| 42 | +1. **Open Roo Code Settings:** Click the gear icon (<Codicon name="gear" />) in the Roo Code panel. |
| 43 | +2. **Select Provider:** Choose "Tetrate Agent Router Service" from the "API Provider" dropdown. |
| 44 | +3. **Enter API Key:** Paste your TARS API key into the "TARS API Key" field. |
| 45 | +4. **Select Model:** Choose your desired model from the "Model" dropdown. |
| 46 | + |
| 47 | +--- |
| 48 | + |
| 49 | +## Tips and Notes |
| 50 | + |
| 51 | +- **Unified Entry Point:** Single endpoint simplifies code and key management across multiple providers. |
| 52 | +- **Cost Visibility:** Pay-as-you-go pricing with comprehensive cost tracking and optimization strategies. |
| 53 | +- **Observability:** Detailed dashboards for monitoring usage, costs, response times, and model performance. |
| 54 | +- **Automatic Fallback:** Built-in resiliency with automatic model switching when providers are unavailable. |
| 55 | +- **A/B Testing:** Compare model performance side-by-side in the integrated playground. |
| 56 | + |
| 57 | +--- |
| 58 | + |
| 59 | +## Relevant Resources |
| 60 | + |
| 61 | +- [TARS Product Page](https://tetrate.io/products/tetrate-agent-router-service) |
| 62 | +- [TARS Slack Community](https://join.slack.com/t/tetrate-agent-router/shared_invite/zt-399tv7hjm-6YMXztGywTOQrMIolvEBNg) |
0 commit comments