# Route Claude Code requests across models and providers with Claude Code Router

> Run Claude Code through Claude Code Router to route coding-agent requests by task, provider, or model while preserving terminal workflows and adding provider-specific transformations.

- Skill: `agentskillexchange/route-claude-code-requests-across-models-and-providers-with-` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/route-claude-code-requests-across-models-and-providers-with-`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/route-claude-code-requests-across-models-and-providers-with-/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/route-claude-code-requests-across-models-and-providers-with-

---


# Route Claude Code requests across models and providers with Claude Code Router

Run Claude Code through Claude Code Router to route coding-agent requests by task, provider, or model while preserving terminal workflows and adding provider-specific transformations.

## Prerequisites

Claude Code; Node.js/npm; one or more model provider API keys or local provider endpoints

## Installation

Use the upstream install or setup path that matches your environment:
- npm install -g @anthropic-ai/claude-code
- npm install -g @musistudio/claude-code-router

Requirements and caveats from upstream:
- **APIKEY** (optional): You can set a secret key to authenticate requests. When set, clients must provide this key in the Authorization header (e.g., Bearer your-secret-key) or the x-api-key header. Example: "APIKEY":...
- **NON_INTERACTIVE_MODE** (optional): When set to true, enables compatibility with non-interactive environments like GitHub Actions, Docker containers, or other CI/CD systems. This sets appropriate environment variable...
- The Providers array is where you define the different model providers you want to use. Each provider object requires:

Basic usage or getting-started notes:
- ## 🚀 Getting Started
- Create and configure your ~/.claude-code-router/config.json file. For more details, you can refer to config.example.json.
- **PROXY_URL** (optional): You can set a proxy for API requests, for example: "PROXY_URL": "http://127.0.0.1:7890".

- Source: https://github.com/musistudio/claude-code-router
- Extracted from upstream docs: https://raw.githubusercontent.com/musistudio/claude-code-router/HEAD/README.md

## Documentation

- https://github.com/musistudio/claude-code-router

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/route-claude-code-requests-across-models-and-providers-with-claude-code-router/)

