---
title: Connect Your Coding Agent or AI Assistant
description: Give your coding agent RouterHub's exact model IDs, API paths, local tool configuration and a read-only MCP endpoint. Works with Codex, OpenCode, Claude Code, Continue and Cline.
canonical: https://routerhub.si/agents
---

# Connect your coding agent

  Use RouterHub's 26 models in Codex, OpenCode, Claude Code, Continue, Cline and other agents. Paste one prompt and the agent configures itself with the exact model IDs and API paths.

## Paste this into your agent
The agent reads RouterHub's setup file, picks compatible models and edits its own config. Approve the change when it asks.

- [Create an account](https://routerhub.si/register)
- [Add credits](https://routerhub.si/dashboard/billing)
- [Create an API key](https://routerhub.si/dashboard/keys)

  Prompt

```
Set up RouterHub as the model provider for this tool.
Read https://routerhub.si/agents.md and follow it. Use only exact model IDs from https://routerhub.si/models.json.
Read my key from the ROUTERHUB_API_KEY environment variable and never write it into files.
Ask me before sending any request that costs credits.
```

  Save your key as `ROUTERHUB_API_KEY` in your environment first. The agent reads it from there and never writes it into files.

## Or set it up by hand
Step-by-step guides with the config to copy.

- [OpenCode 26 compatible models](https://routerhub.si/guides/opencode)
- [Claude Code 4 compatible models](https://routerhub.si/guides/claude-code)
- [Codex CLI 3 compatible models](https://routerhub.si/guides/codex)
- [Continue 26 compatible models](https://routerhub.si/guides/vscode-continue)
- [Cline 23 compatible models](https://routerhub.si/guides/vscode-cline)
- [Claude Desktop 4 compatible models](https://routerhub.si/docs/tools/claude-desktop)
- [Hermes Agent 19 compatible models](https://routerhub.si/docs/tools/hermes-agent)
- [Another tool Any OpenAI or Anthropic client](https://routerhub.si/docs#quickstart)

## MCP server
A read-only Streamable HTTP endpoint that lets an agent look up models and setup guides. It needs no API key, so never send one to it.

Codex

```
codex mcp add routerhub --url https://routerhub.si/mcp
```

- Endpoint: `https://routerhub.si/mcp`
- Tools: `list_models`, `get_setup_guide`

## Files for agents

- [agents.md Setup instructions](https://routerhub.si/agents.md)
- [models.json Model IDs, APIs and prices](https://routerhub.si/models.json)
- [openapi.json API reference](https://routerhub.si/openapi.json)
- [llms.txt Site index](https://routerhub.si/llms.txt)
- [Codex context Tool-specific setup](https://routerhub.si/agent-setup.md?tool=codex)
- [OpenCode context Tool-specific setup](https://routerhub.si/agent-setup.md?tool=opencode)

## Provider guides

- [DeepSeek API](https://routerhub.si/guides/deepseek)
- [GLM API](https://routerhub.si/guides/glm)
- [Grok API](https://routerhub.si/guides/grok)
- [Kimi API](https://routerhub.si/guides/kimi)
