vinhnguyenthanhdn

Claude Router — Development skill for Claude Code

Development community

Switch Claude Code between Anthropic and any 9Router provider, in the terminal or the VSCode panel, on Windows, macOS and Linux.

How to install Claude Router

This entry records only its repository, not the path inside it, so there is no exact command to give. Open vinhnguyenthanhdn/claude-router and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Router does

Switch Claude Code between Anthropic and any 9Router provider, in the terminal or the VSCode panel, on Windows, macOS and Linux.

Alternatives in Development

  • Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★
  • Claude Code Zh Cn — Claude Code CLI 简体中文本地化 / 汉化插件;支持 macOS、Linux、WSL、Windows 与新版 native,一行安装,更新后自动修复 721 ★
  • SSH Skill — 面向 Codex 和 Claude Code 的跨平台 SSH 工作流 Skill,支持 Windows、macOS、Linux 488 ★

README

Claude Router Switcher — run Claude Code through any 9Router provider, on Windows, macOS and Linux

Use GPT, Gemini, DeepSeek, Grok, Anthropic, local models, or any other model exposed by 9Router inside Claude Code—without permanently changing your Claude configuration.

A small, config-driven toolkit for switching Claude Code between its default Anthropic connection and a local [9Router](https://github.com/decolua/9router)-compatible endpoint.

[![Test](https://github.com/vinhnguyenthanhdn/claude-router/actions/workflows/test.yml/badge.svg)](https://github.com/vinhnguyenthanhdn/claude-router/actions/workflows/test.yml) ![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-0078D4) ![PowerShell](https://img.shields.io/badge/PowerShell-5.1%2B-5391FE) ![License](https://img.shields.io/badge/license-MIT-green)

What it does

Capability Windows macOS and Linux Effect
Route the Claude Code CLI through 9Router claude-9router ./scripts/claude-9router Only that child process is routed; claude in the same window still uses the default Anthropic connection
Check which endpoint and model would be used, without starting Claude claude-9router -DryRun ./scripts/claude-9router --dry-run Prints the base URL and model, then exits
Route the native Claude Code panel/sidebar in VSCode vscode-switch.ps1 on ./scripts/vscode-switch on Writes claudeCode.environmentVariables in user settings (machine scope), keeps unrelated entries, and backs the file up first
Show the current VSCode mode vscode-switch.ps1 status ./scripts/vscode-switch status Prints the base URL and model; the token is reported as configured and never printed
Return VSCode to the default Anthropic connection vscode-switch.ps1 off ./scripts/vscode-switch off Removes only the variables this toolkit manages
Remove the toolkit uninstall.ps1 — Disables VSCode routing first, then rem