docs/customize/model-providers/top-level/tetrate_agent_router_service.mdx
The Tetrate Agent Router Service provides a unified Gateway for accessing various AI models with fast inference capabilities.
This gateway acts as an intelligent router that can distribute requests across multiple model providers, offering enterprise-grade reliability and performance optimization.
<Tip> Want to get started quickly? Sign up for the [Tetrate Agent Router Service](https://router.tetrate.ai/) to get an API key, then use [Tetrate on Continue Mission Control](https://continue.dev/tetrate) to get started fast. </Tip>Fastest way: use preconfigured models from Tetrate on Continue Mission Control
<Steps> <Step title="Browse models"> Open [Tetrate on Continue Mission Control](https://continue.dev/tetrate) and pick a model (e.g., [Claude Sonnet 4](https://continue.dev/tetrate/claude-sonnet-4)) </Step> <Step title="Use or remix"> Click "Use Model", or "Remix" to change the model ID if needed </Step> <Step title="Add your API key"> Add your API key to Continue. See [adding secrets in Continue Mission Control](/mission-control/secrets/secret-types) and [managing local secrets in the FAQ](/faqs#managing-local-secrets-and-environment-variables) <Tip> Add it as a Continue Mission Control secret named `TETRATE_API_KEY` to reuse across projects. </Tip> </Step> </Steps> <Info> If a model is missing, remix a similar one and set the `model` field to the target ID. </Info>When to use: Simple local setups (like using the VS Code extension) when you don't need shared or published blocks.
Use a Tetrate model block from the Hub in your local agent configuration:
name: Local Agent
version: 1.0.0
schema: v1
models:
- uses: tetrate/claude-sonnet-4
with:
TETRATE_API_KEY: ${{ secrets.TETRATE_API_KEY }}
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
Or define the model directly:
name: Local Agent
version: 1.0.0
schema: v1
models:
- name: Claude Sonnet 4
provider: tars
model: claude-4-sonnet-20250514
apiKey: ${{ secrets.TETRATE_API_KEY }}
roles:
- chat
- edit
- apply
capabilities:
- tool_use
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
The Model Block:
name: Claude Sonnet 4
version: 1.0.14
schema: v1
models:
- name: Claude Sonnet 4 - Tetrate
provider: tars
model: claude-4-sonnet-20250514
apiKey: ${{ inputs.TETRATE_API_KEY }}
roles:
- chat
- edit
- apply
capabilities:
- tool_use
View the model block tetrate/claude-sonnet-4 on the Continue Mission Control.
Reference it in your Agent configuration:
name: My Agent
version: 1.0.0
schema: v1
models:
- uses: tetrate/claude-sonnet-4
with:
TETRATE_API_KEY: ${{ secrets.TETRATE_API_KEY }}
context:
- uses: continuedev/diff-context
- uses: continuedev/terminal-context
- uses: continuedev/file-context
The Local Model Block:
<Info>
Name the file my-claude-4-model.yaml so you can reference it in the Agent.
</Info>
name: Claude Sonnet 4
version: 1.0.1
schema: v1
models:
- name: Claude Sonnet 4
provider: tars
model: claude-4-sonnet-20250514
apiKey: ${{ inputs.TETRATE_API_KEY }}
roles:
- chat
- edit
- apply
capabilities:
- tool_use
Reference it as my-claude-4-model in your Agent configuration:
name: Simple Agent
version: 1.0.0
schema: v1
models:
- uses: my-claude-4-model
with:
TETRATE_API_KEY: ${{ secrets.TETRATE_API_KEY }}
context:
- uses: continuedev/diff-context
- uses: continuedev/terminal-context
- uses: continuedev/file-context
Connect with Tetrate and other builders for help and discussion.
<CardGroup cols={1}> <Card title="Join the Tetrate Community" icon="slack" href="https://join.slack.com/t/tetrate-agent-router/shared_invite/zt-399tv7hjm-6YMXztGywTOQrMIolvEBNg"> Get answers, insights, and best practices for secure, scalable infrastructure </Card> </CardGroup>