AI Model Switcher
Stop juggling Claude and Codex by hand. One file holds your current preference, your agent reads it, you switch in plain English. Hand the kit to your AI assistant - Claude Code, Codex, Cursor, Aider, anything - and it installs and adapts to your harness, your binaries, your workflow. The current session keeps running on its model; the change applies on next launch because mid-session switches break cache and context. After setup you type "wiz" in any terminal to land in your current preferred model.
Paid Digital Thoughts subscriber?
Yearly subscribers: all products free ($1179.94+ value)
Monthly subscribers: 1 free product per month โ subscribe from $29.99/mo
Claim your free copy โWhat you get
Package includes
- โขSTART-HERE.html: pretty entry-point file, four numbered steps, for non-technical users
- โขAGENT-INSTRUCTIONS.md (11 KB): self-contained brief telling your AI agent how to discover, install, test, and adapt for your machine
- โขREADME.md: human-facing pitch and architecture overview
- โขQUICKSTART.md: 10-minute manual install for the DIY path
- โขguide.md: full guide with sync, harness wiring, routing patterns, troubleshooting
- โขcheatsheet.md: one-page command reference + common fixes
- โขscripts/switcher.py: the core (no deps, single file)
- โขscripts/route.sh: the launcher router that picks the right binary
- โขscripts/install.sh: idempotent installer (drops scripts in ~/.local/bin)
- โขscripts/claude-prompt-hook.sh: Claude Code UserPromptSubmit hook
- โขharness/claude-code-skill.md: drop-in skill for ~/.claude/skills/switch-model/
- โขharness/codex-AGENTS.md.snippet: append to your Codex AGENTS.md
- โขharness/any-harness.md: pattern for wiring into Cursor, Aider, anything
- โขexamples/routing-rules.md: my actual task โ model routing rules from April 2026
- โขexamples/harness-routing-may-2026.md: updated Claude Code, Codex, Cursor, Aider, and local-model routing recipes
- โขexamples/cost-notes.md: what shifted in monthly spend after splitting providers
- โขtemplates/preferences.json: schema reference
FAQ
Do I need to be a developer to use this?
No. The whole point is that you hand the zip to your AI agent (Claude Code, Codex, Cursor) and tell it to read AGENT-INSTRUCTIONS.md. The agent does discovery, asks you a few plain-English questions about your setup, installs and tests. You never touch the code unless you want to.
Why does the model not change immediately when I say "switch"?
Because mid-session switches break your prompt cache and confuse the agent. The preference file updates instantly, but it applies on the next launch. The 30 seconds you save not relaunching costs you 10 minutes of re-explaining context to a confused model. After running this for months, durable-but-deferred is the right tradeoff.
Does this work with Cursor / Aider / my custom CLI?
Yes. The contract is two shell commands ("apply-text" to update from natural language, "resolve --shell" to read current preference). harness/any-harness.md shows the pattern. Your agent will adapt it โ usually 10 lines of glue.
How does it sync across machines?
The preference is a single JSON file. Easiest sync: symlink ~/.config/ai-model-switcher to an iCloud / Dropbox / Syncthing folder. Done in 30 seconds. For audit trails, drop it in a git dotfiles repo with a 5-minute cron pull. Real-time sync needs ~80 lines on top. Pattern provided in the guide.
Is this a proxy or does it route my traffic?
Neither. It does not see your prompts and does not route your API traffic. It is purely a preference store + launcher wrapper. Your traffic goes direct to Anthropic / OpenAI / your local model exactly as it would without the kit.
How is this different from just typing "claude --model opus"?
Because you are juggling two providers, multiple harnesses, and you keep forgetting which terminal is running what. This kit makes the preference durable across sessions and visible to every harness, so you can switch by thinking instead of by remembering CLI flags.
Related reading on Digital Thoughts:
You might also like:
Secure checkout by Stripe. Instant download + guided Claude Code setup.