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

Signet: An Open-Source Local-First Memory Substrate for AI Agents
Signet is an open-source memory substrate for AI agents that moves memory handling outside the agent loop. It preserves transcripts, distills sessions into structured memory, links entities into a graph, and injects context before prompts start.

Open Source AI Agent Prompt Library Reaches 100 GitHub Stars
A community repository called ai-setup provides shared system prompts, Cursor rules, Claude configs, and local model workflow setups for AI agents. The project has 100 GitHub stars and 90 merged PRs.

Claude Code v2.1.143: Plugin Dependency Enforcement, PowerShell Defaults, and Background Session Fixes
Anthropic released Claude Code v2.1.143 with plugin dependency enforcement, PowerShell -ExecutionPolicy Bypass, new worktree isolation option, and numerous fixes for background sessions, Windows Terminal, and macOS file access.

Open Source MCP Server Connects Claude to Mailchimp API
A developer built a Mailchimp MCP server using Claude Code, providing 53 tools for campaigns, audiences, reports, automations, and e-commerce with built-in safety modes and read-only configuration.