@musistudio/claude-code-router weekly downloads statistics
By musistudio · npm · Claude Code
Local Claude Code Router gateway with CLI and web management UI.
@musistudio/claude-code-router has 20,527 recorded weekly downloads on npm, a decrease of 71.7% over the past 30 days, ranking #746 of 2,314 tracked listings.
About @musistudio/claude-code-router
Claude Code Router CLI
中文 · Documentation · GitHub
@musistudio/claude-code-router is the Node.js distribution of Claude Code Router. It provides the ccr command, the browser-based management UI, the local model gateway, and profile launch commands without requiring Electron.
Use the CLI on developer machines and headless hosts. If you want the tray, desktop notifications, automatic app updates, or desktop-only browser integrations, install the desktop application instead.
Requirements And Installation
- Node.js 22 or newer
- A supported upstream model provider, or a locally logged-in agent account that CCR can import
- A locally installed agent executable when using profile launch commands
Install globally:
npm install -g @musistudio/claude-code-router
ccr --help
Upgrade or remove it with npm:
npm install -g @musistudio/claude-code-router@latest
npm uninstall -g @musistudio/claude-code-router
Removing the package does not delete CCR's local configuration or databases.
Quick Start
Start the background service and open the management UI:
ccr ui
Then:
- Add an upstream provider and at least one model.
- Create a CCR client key under API Keys.
- Configure routing if the default provider/model is not sufficient.
- Confirm that the gateway is running under Server.
- Point your client at the gateway URL shown in the UI. The default gateway is
http://127.0.0.1:3456; the management UI defaults tohttp://127.0.0.1:3458.
The management token and CCR client API keys are different credentials. The management token protects the browser UI and RPC API. CCR client keys authenticate model requests sent to the gateway.
Service Commands
| Command | Behavior |
|---|---|
ccr start | Starts a detached background management service and gateway, then prints its authenticated management URL. |
ccr ui | Reuses or starts the background service and opens the management UI. |
ccr stop | Stops the detached service started by ccr start or ccr ui. |
ccr serve | Runs the management service and gateway in the foreground. ccr web is an alias. |
ccr <profile> | Opens an enabled Agent Profiles profile by name or ID. |
ccr start
ccr start [--host <host>] [--port <port>] [--open|--no-open] [--gateway|--no-gateway]
--host <host>: management listener, default127.0.0.1.--port <port>: preferred management port, default3458.--open/--no-open: enable or disable opening a browser.--gateway: explicitly request gateway startup; this is the default.--no-gateway: start only the management service.
ccr ui
ccr ui [--host <host>] [--port <port>] [--open|--no-open] [--gateway|--no-gateway]
ui opens the browser by default. Use --no-open on SSH or other headless sessions.
ccr serve
ccr serve [--host <host>] [--port <port>] [--open|--no-open] [--gateway|--no-gateway]
serve stays attached to the current terminal and handles SIGINT/SIGTERM. It is the appropriate mode for a process supervisor. ccr stop only manages the detached service; stop a foreground server through its terminal or supervisor.
If the preferred management port is occupied, CCR tries the next available ports and prints the actual URL. When start or ui reuses an existing service, new host, port, and --no-gateway choices do not reconfigure that process. Run ccr stop first when those settings must change.
Agent Profiles
Create and enable profiles in Agent Profiles, then launch one by name or ID:
ccr "Codex - Work"
ccr "Codex - Work" app
ccr "Claude - Review" cli -- --model sonnet
ccr profile-id -- --help
The syntax is:
ccr <profile-name-or-id> [cli|app] [-- <agent arguments>]
--cliand--appare accepted alternatives to the positional surface.- Put agent-specific arguments after
--so they cannot be confused with CCR options. - If the surface is omitted, CCR uses the first surface allowed by the profile: CLI for Claude Code, Codex, Grok CLI, Kimi CLI, and Pi; App for ZCode.
- Grok CLI, Kimi CLI, and Pi support CLI only. ZCode supports App only. Claude App and ZCode App do not accept trailing agent arguments.
- Desktop App launches require that app to be installed and a graphical session to be available.
- Start the CCR service before opening most profiles. Grok CLI, Kimi CLI, and Pi profiles can start a temporary shared service automatically and stop it after the last managed session exits.
The desktop application installs a related command named ccr-app. Commands copied from desktop Agent Profiles cards use ccr-app; the npm package documented here installs ccr.
Configuration And Runtime Files
| Platform | Config directory |
|---|---|
| macOS / Linux | ~/.claude-code-router |
| Windows | %APPDATA%\claude-code-router |
Important files include:
config.sqlite: current application configuration.app-data/: API key, usage, request-log, certificate, and other runtime databases/files.service.json: state and private token for a detached CLI service.gateway.config.json: generated gateway runtime configuration.profiles/andbin/: isolated profile configuration and launch wrappers.
Do not edit or copy live SQLite files while CCR is writing to them. Use the UI export feature, or stop CCR before taking a filesystem backup.
Environment And Security
| Variable | Description |
|---|---|
CCR_WEB_HOST | Default management listener when --host is omitted. |
CCR_WEB_PORT | Default management port when --port is omitted. |
CCR_WEB_AUTH_TOKEN | Fixes the management UI/RPC token instead of generating a random token for the process. |
Description from the npm listing.
- claude-code
- codex
- llm
- gateway
- router
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm Claude Code plugins
All 20 @musistudio/claude-code-router alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@musistudio/claude-code-router. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.