| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
__ ___ __ _ ___ __ ____ ____ ____ ____ ________ ___ / \/ \/ \ \/ / / / / / / / / / / / / / / / / / ____/ / / | / /_/ / / /| |\ \/ /_/ /_/ /_/ /_/ / / /_/ / /_/ / / / / / / /| | \__ / /_/ /_/_/\_\__,__,__,__,__/_/ /__, /__, / / /___/ /___/ ___ | /___/\____/(_) /____/____/ \____/_____/_/ |_|
Stop typing ANTHROPIC_MODEL=foo ANTHROPIC_BASE_URL=bar by hand. A Claude Code skill. One slash command. Three prompts. Done.
##TL;DR: Why This Exists
You know that feeling when you:
Yeah, we built this so you never have to feel that pain again.
/model_switch is the antidote to configuration spaghetti. One slash command, three prompts, you're on a different model. No .env dancing, no file hunting, no "wait which profile was I using?"
$ /model_switch
Select provider
> bailian
openai
anthropic
Select model
> qwen3.6-plus
qwen3.5-plus
Select scope
> Project (.claude/settings.local.json)
Global (~/.claude/settings.json)
✅ Switched to bailian/qwen3.6-plus (project)
Restart Claude Code to apply the new configuration (use /resume to restore your session)That's it. No restart, no re-auth, no prayer. You were manually editing files for THIS?
This is a Claude Code skill — a SKILL.md + shell scripts combo that exposes /model_switch. Install it like any other local skill, not a plugin.
The easiest way — send this in your Claude Code conversation:
Install this skill https://github.com/devotion-coding/claude-code-model-selector-plugin
Claude Code will handle everything: download the repo, copy the skill to ~/.claude/skills/, and make /model_switch available immediately.
For manual installation (git clone + copy), see MANUAL_INSTALL.md.
Go forth and switch with the power of a single slash command.
Create ~/.claude/model-profiles.json:
{
"providers": [
{
"name": "bailian",
"base_url": "https://coding.dashscope.aliyuncs.com/apps/anthropic",
"auth_token": "sk-your-token",
"models": ["qwen3.6-plus", "qwen3.5-plus"]
},
{
"name": "openai",
"base_url": "https://api.openai.com/v1",
"auth_token": "sk-your-openai-token",
"models": ["gpt-4", "gpt-3.5-turbo"]
}
]
}That's it. providers array. No magic. No hidden fields. What you see is what you get.
| Scope | Target File | Priority |
|---|---|---|
| Project (default) | <project>/.claude/settings.local.json | Highest |
| Global | ~/.claude/settings.json | Fallback |
Project-level env overrides global. CSS cascade — project wins. Don't overthink it.
⚠️ Your auth tokens are stored in plaintext. Treat these files like passwords. Because they basically are.
# Claude Code local settings — contains auth tokens, DO NOT COMMIT
.claude/settings.local.jsonchmod 600 ~/.claude/settings.json
chmod 600 .claude/settings.local.jsonThe scripts auto-set 600 on newly created files and will warn you loudly if project settings are tracked by git (which would be a security incident, not just a code smell).
| Problem | Fix |
|---|---|
| jq: command not found | brew install jq (macOS) or apt-get install jq (Linux) |
| profiles file not found | Create ~/.claude/model-profiles.json or run init-profiles.sh to bootstrap |
| No existing profiles | Run bash skills/model-switch/scripts/init-profiles.sh to initialize from current settings |
| Switch didn't take effect | Restart Claude Code to pick up new env vars (use /resume to restore session) |
| Warning about git-tracked file | Add .claude/settings.local.json to .gitignore immediately |
| Script | What It Does |
|---|---|
| scripts/switch-model.sh | Main event: reads profiles, writes settings |
| scripts/list-providers.sh | Lists providers/models (secrets never leave the building) |
| scripts/show-scope-status.sh | Shows current project + global config status |
| scripts/init-profiles.sh | Bootstraps model-profiles.json from existing settings (run once before first use) |
MIT — do whatever you want with it. We're not your mom.
Made with caffeine, shell scripts, and a deep hatred for manual configuration.
| Back | FazBrowse Home | New Git URL |