Skip to content
Back to skills

Route Claude Code Requests Across Models And Providers With Claude Code Router

ASecurity

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.

  • 36 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 2, 2026
ai-agentsgonodedockergitapici/cdsecuritydocumentation

Works with

  • claude code
  • terminal
  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 2, 2026

npx -y skills add agentskillexchange/skills --skill route-claude-code-requests-across-models-and-providers-with-claude-code-router --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Route Claude Code Requests Across Models And Providers With Claude Code Router?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Route Claude Code Requests Across Models And Providers With Claude Code Router
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-route-claude-code-requests-across-models-and-provi/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-route-claude-code-requests-across-models-and-provi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Route Claude Code requests across models and providers with Claude Code Router"
slug: "route-claude-code-requests-across-models-and-providers-with-claude-code-router"
description: "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."
github_stars: 33863
verification: "security_reviewed"
source: "https://github.com/musistudio/claude-code-router"
author: "musistudio"
publisher_type: "open_source"
category: "Developer Tools"
framework: "Claude Code"
tool_ecosystem:
  github_repo: "musistudio/claude-code-router"
  github_stars: 33863
  npm_package: "@musistudio/claude-code-router"
  npm_weekly_downloads: 211046
---

# 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/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…