{"id":51234788,"url":"https://github.com/krishnakanthb13/claude-code-switch","last_synced_at":"2026-06-28T19:04:10.089Z","repository":{"id":365856031,"uuid":"1274070479","full_name":"krishnakanthb13/claude-code-switch","owner":"krishnakanthb13","description":"Lightweight Windows tool to switch Claude Code between multiple API providers (OpenRouter, LongCat, direct Anthropic) via right-click context menu or terminal command.","archived":false,"fork":false,"pushed_at":"2026-06-19T06:55:49.000Z","size":660,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-19T08:28:32.814Z","etag":null,"topics":["anthropic","batch","claude","claude-code","cli","developer-tools","longcat","openrouter","profile-switcher","windows"],"latest_commit_sha":null,"homepage":null,"language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krishnakanthb13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-19T06:38:01.000Z","updated_at":"2026-06-19T06:55:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/krishnakanthb13/claude-code-switch","commit_stats":null,"previous_names":["krishnakanthb13/claude-code-switch"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/krishnakanthb13/claude-code-switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishnakanthb13%2Fclaude-code-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishnakanthb13%2Fclaude-code-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishnakanthb13%2Fclaude-code-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishnakanthb13%2Fclaude-code-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krishnakanthb13","download_url":"https://codeload.github.com/krishnakanthb13/claude-code-switch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishnakanthb13%2Fclaude-code-switch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34900410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anthropic","batch","claude","claude-code","cli","developer-tools","longcat","openrouter","profile-switcher","windows"],"created_at":"2026-06-28T19:04:09.430Z","updated_at":"2026-06-28T19:04:10.081Z","avatar_url":"https://github.com/krishnakanthb13.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Code Profile Switcher\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\nA lightweight Windows setup to switch Claude Code between multiple API providers (OpenRouter, Longcat, Zenmux, DeepSeek, Codestral, direct Anthropic) via a right-click context menu or terminal command.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/release_v0.0.1.png\" alt=\"Claude Code Profile Switcher Banner\" width=\"800\"\u003e\n\u003c/p\u003e\n\n---\n\n## What It Does\n\n- Adds an **\"Open with Claude Code\"** option to the Windows right-click menu on any folder\n- Opens a terminal picker listing all profiles in the `profiles/` folder\n- Copies the selected profile as `settings.json` and launches Claude Code in that directory\n- Also supports a quick terminal command `ccswitch \u003cprofilename\u003e` without launching Claude Code\n- Adding new profiles requires no changes to any other file\n\n---\n\n## Folder Structure\n\n```\n.claude/\n├── profiles/\n│   ├── codestral (depreciated).json\n│   ├── deepseek.json\n│   ├── glm.json\n│   ├── longcat.json\n│   ├── openrouter.json\n│   └── zenmux.json\n├── ccpick.bat\n├── ccswitch.bat\n├── install-context-menu.reg\n├── uninstall-context-menu.reg\n├── claude_v2.ico\n└── README.md\n```\n\n---\n\n## First-Time Setup\n\n### 1. Copy files to `.claude`\n\nCopy everything from this repo into `C:\\Users\\ADMIN\\.claude\\`\n\nMake sure `profiles\\` folder and both `.json` files are in place.\n\n### 2. Install the right-click menu entry\n\n- Right-click `install-context-menu.reg` → **Run as administrator**\n- Click Yes on the UAC prompt\n\n### 3. Restart Explorer\n\n- Press `Ctrl + Shift + Esc` → Task Manager\n- Find **Windows Explorer** → right-click → **Restart**\n\nThe \"Open with Claude Code\" option should now appear when you right-click any folder.\n\n---\n\n## Usage\n\n### Method 1 — Right-click menu (ccpick.bat)\n\n1. Right-click any project folder\n2. Click **Open with Claude Code**\n3. A terminal opens showing the profile menu:\n\n```\n  ==============================\n    Claude Code Profile Picker\n  ==============================\n\n  [1] codestral (depreciated)\n  [2] deepseek\n  [3] glm\n  [4] longcat\n  [5] openrouter\n  [6] zenmux\n  [0] default (direct Anthropic)\n\n  Pick a profile:\n```\n\n4. Type the number and press Enter\n5. Claude Code launches in that folder with the selected profile\n\n---\n\n### Method 2 — Terminal command (ccswitch.bat)\n\nUse this when you want to switch the active profile without launching Claude Code, or from an already open terminal.\n\n```cmd\nccswitch \"codestral (depreciated)\"\nccswitch deepseek\nccswitch glm\nccswitch longcat\nccswitch openrouter\nccswitch zenmux\nccswitch default\n```\n\n`ccswitch default` removes `settings.json` entirely, reverting to direct Anthropic.\n\n**Note:** Named `ccswitch` (not `switch`) to avoid conflict with PowerShell's reserved `switch` keyword. Works in both CMD and PowerShell.\n\nTo use it from anywhere, add `C:\\Users\\ADMIN\\.claude` to your system PATH:\n- `Win + R` → `sysdm.cpl` → Advanced → Environment Variables\n- Under System variables → find **Path** → Edit → New → paste `C:\\Users\\ADMIN\\.claude`\n- Click OK and reopen your terminal\n\n---\n\n## Adding a New Profile\n\n1. Create a new `.json` file in `C:\\Users\\ADMIN\\.claude\\profiles\\`\n2. That's it — it appears in the menu automatically next time\n\n### Profile template\n\n```json\n{\n  \"env\": {\n    \"ANTHROPIC_BASE_URL\": \"https://your-provider-api-url\",\n    \"ANTHROPIC_AUTH_TOKEN\": \"your-api-key\",\n    \"ANTHROPIC_API_KEY\": \"\",\n    \"ANTHROPIC_MODEL\": \"provider/model-name\",\n    \"ANTHROPIC_SMALL_FAST_MODEL\": \"provider/model-name\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"provider/model-name\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"provider/model-name\"\n  }\n}\n```\n\n### Longcat profile (`longcat.json`)\n\n```json\n{\n  \"env\": {\n    \"ANTHROPIC_AUTH_TOKEN\": \"your_longcat_key\",\n    \"ANTHROPIC_BASE_URL\": \"https://api.longcat.chat/anthropic\",\n    \"ANTHROPIC_MODEL\": \"LongCat-2.0-Preview\",\n    \"ANTHROPIC_SMALL_FAST_MODEL\": \"LongCat-2.0-Preview\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"LongCat-2.0-Preview\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"LongCat-2.0-Preview\",\n    \"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC\": 1\n  }\n}\n```\n\n### OpenRouter profile (`openrouter.json`)\n\n```json\n{\n  \"env\": {\n    \"ANTHROPIC_BASE_URL\": \"https://openrouter.ai/api\",\n    \"ANTHROPIC_AUTH_TOKEN\": \"sk-or-v1-your_openrouter_key\",\n    \"ANTHROPIC_API_KEY\": \"\",\n    \"ANTHROPIC_MODEL\": \"google/gemini-2.5-flash\",\n    \"ANTHROPIC_SMALL_FAST_MODEL\": \"google/gemini-2.5-flash\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"google/gemini-2.5-flash\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"google/gemini-2.5-flash\"\n  }\n}\n```\n\n### Zenmux profile (`zenmux.json`)\n\n```json\n{\n  \"env\": {\n    \"ZENMUX_API_KEY\": \"your_zenmux_api_key\",\n    \"ANTHROPIC_BASE_URL\": \"https://zenmux.ai/api/anthropic\",\n    \"ANTHROPIC_AUTH_TOKEN\": \"your_zenmux_api_key\",\n    \"ANTHROPIC_API_KEY\": \"\",\n    \"ANTHROPIC_MODEL\": \"z-ai/glm-5.2-free\",\n    \"ANTHROPIC_SMALL_FAST_MODEL\": \"z-ai/glm-4.7-flash-free\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"stepfun/step-3.7-flash-free\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"z-ai/glm-5.2-free\"\n  },\n  \"theme\": \"dark\"\n}\n```\n\n### DeepSeek profile (`deepseek.json`)\n\n```json\n{\n  \"env\": {\n    \"ANTHROPIC_BASE_URL\": \"https://api.deepseek.com/anthropic\",\n    \"ANTHROPIC_AUTH_TOKEN\": \"\u003cyour DeepSeek API Key\u003e\",\n    \"ANTHROPIC_API_KEY\": \"\",\n    \"ANTHROPIC_MODEL\": \"deepseek-v4-pro[1m]\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"deepseek-v4-pro[1m]\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"deepseek-v4-pro[1m]\",\n    \"ANTHROPIC_DEFAULT_HAIKU_MODEL\": \"deepseek-v4-flash\",\n    \"CLAUDE_CODE_SUBAGENT_MODEL\": \"deepseek-v4-flash\",\n    \"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC\": \"1\",\n    \"CLAUDE_CODE_EFFORT_LEVEL\": \"max\"\n  }\n}\n```\n\n### GLM profile (`glm.json`)\n\n```json\n{\n  \"env\": {\n    \"ANTHROPIC_AUTH_TOKEN\": \"your_glm_auth_token\",\n    \"ANTHROPIC_BASE_URL\": \"https://api.z.ai/api/anthropic\",\n    \"API_TIMEOUT_MS\": \"3000000\",\n    \"ANTHROPIC_DEFAULT_HAIKU_MODEL\": \"glm-4.5-flash\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"glm-4.7-flash\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"glm-4.7-flash\"\n  }\n}\n```\n\n### Codestral profile (depreciated) (`codestral (depreciated).json`)\n\n```json\n{\n  \"env\": {\n    \"CODESTRAL_API_KEY\": \"\",\n    \"ANTHROPIC_BASE_URL\": \"https://codestral.mistral.ai/v1/chat/completions\",\n    \"ANTHROPIC_AUTH_TOKEN\": \"\",\n    \"ANTHROPIC_API_KEY\": \"\",\n    \"ANTHROPIC_MODEL\": \"codestral-2508\",\n    \"ANTHROPIC_SMALL_FAST_MODEL\": \"codestral-2508\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"codestral-2508\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"codestral-2508\"\n  }\n}\n```\n\n---\n\n## Uninstalling the Right-Click Entry\n\n- Double-click `uninstall-context-menu.reg` → Yes\n- Restart Explorer via Task Manager\n\n---\n\n## Re-installing on a New Machine\n\n1. Copy this repo to `C:\\Users\\\u003cYourUsername\u003e\\.claude\\`\n2. Open `install-context-menu.reg` in Notepad and replace `ADMIN` with your actual Windows username throughout\n3. Run as administrator and restart Explorer\n\n---\n\n## Troubleshooting\n\n| Problem | Fix |\n|---|---|\n| Right-click option not showing | Restart Explorer via Task Manager, or reboot |\n| \"The system cannot find the path\" | Username in `.reg` file doesn't match — re-check and re-install |\n| Explorer crashes on click | Re-install the `.reg` as administrator after uninstalling first |\n| Garbled box characters in terminal | `chcp 437` line in `ccpick.bat` handles this — ensure it's present |\n| `ccswitch` not recognized | Add `C:\\Users\\ADMIN\\.claude` to system PATH and reopen terminal |\n| PowerShell says `switch` is reserved | Use `ccswitch.bat` — file must be named `ccswitch.bat` not `switch.bat` |\n| Charged models on OpenRouter | Set all four model env vars explicitly, use `:free` suffix |\n| Profile not appearing in menu | Ensure file is `.json` extension and is inside the `profiles\\` folder |\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrishnakanthb13%2Fclaude-code-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrishnakanthb13%2Fclaude-code-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrishnakanthb13%2Fclaude-code-switch/lists"}