Switching Claude Code Models via Aliases
chongdashu · x · 2026-07-17
This post shares a practical way to switch models within Claude Code: you can quickly toggle between Fable 5, GLM, and Kimi using different shell commands without needing any extra external tools.
The method involves creating a /.claude/settings/kimi-k3.json config file that points ANTHROPICBASEURL, ANTHROPICAUTHTOKEN, ANTHROPICMODEL, and ANTHROPICSMALLFASTMODEL to kimi-k3. Then, write a kimi() function in your /.zshrc or /.bashrc to launch it via claude --settings .... After reloading your terminal, typing kimi will run Claude Code directly with that model. The author notes that this pattern applies to other models as well, including OpenRouter versions.
More from coding & agent
- A better path to agent autonomy is running waves, finding friction, and iterating — JnBrymn · 2026-07-22
- Coding agents are heading toward an AI-writes, AI-reviews, human-approves workflow — aftahi_ai · 2026-07-22
- oMLX 0.5.2 adds Mac menu-bar stats, low-bit decode kernels, and faster downloads — awnihannun · 2026-07-22
- GitHub review bot hits its PR limit and forces a 39-minute cooldown — DanielLockyer · 2026-07-22
- Max reasoning effort appears to be mobile-only in Codex Remote, not desktop — GabGarrett · 2026-07-22
- A Reddit demo argues online stores should expose carts and pricing through MCP — gelembjuk · 2026-07-22