Claude Router banner
vinhnguyenthanhdn vinhnguyenthanhdn

Claude Router

Development community

Description

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

Installation

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

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