Claude-switch CLI tool automates switching between Claude Max accounts when hitting usage caps

Problem and solution
A developer encountered workflow interruptions when Claude Code hit usage caps during coding sessions. Having multiple Claude Max accounts helped, but manually switching between them required logging out, opening a browser, logging back in, and waiting for authentication to complete - a process that "killed the flow every time."
The developer used Claude Code itself to build claude-switch, a tool that automates credential switching. The irony noted: "the tool hitting my limits helped me build the workaround."
Technical implementation
The entire tool is about 250 lines of bash, written and shipped in one Claude Code session. It works by reading and writing the auth tokens Claude Code stores in the macOS system Keychain. The developer describes the approach as "nothing clever, just the same credential swap you'd do manually."
Usage commands
First-time setup requires saving both accounts:
claude-switch save work
claude-switch save personalWhen hitting a usage cap mid-session:
claude-switch use personalThe tool also includes functionality to list saved accounts and has zsh completions.
Availability and testing
claude-switch is free, open source under MIT license, with installation instructions in the GitHub repository README. The developer notes limited testing: "I've only tested it on my machine so far" and welcomes feedback, "especially if it breaks on your setup."
📖 Read the full source: r/ClaudeAI
👀 See Also

Creation OS: A Local σ-Gated LLM Runtime That Lets Models Say ‘I Don’t Know’ Instead of Hallucinating
Creation OS wraps local LLMs (BitNet, Qwen, Gemma, any GGUF) with a σ-gate that measures multiple uncertainty channels and decides ACCEPT, RETHINK, or ABSTAIN per output. No cloud, no API. TruthfulQA accuracy improved ~29% via selective regeneration.

My Agent Built Himself an Interoception System — Now He Has Desires

Silos Dashboard: Open-source web UI for managing OpenClaw agents
Silos Dashboard is an MIT-licensed web UI for managing OpenClaw agents, replacing config files and CLI with a single interface. It offers agent management, live chat with streaming, skill installation, task boards, channel integrations, and analytics.

Introducing NetViews 2.3: A Robust Network Diagnostic Tool for macOS
NetViews 2.3 combines host discovery, Wi-Fi insights, and real-time monitoring with a streamlined GUI for better network diagnostics on macOS.