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

Open-source SwiftUI testing skill for Claude Code uses Computer Use to visually test apps
An open-source Claude Code skill called /ios-test visually tests SwiftUI apps using Computer Use capability. The agent finds .xcodeproj files, builds the app in a Simulator, then navigates through every screen, tapping buttons and following links like a real user.

Claude Code Voice Mode: Hands-Free AI Conversations for Developers
Claude's voice mode beta lets you speak to the AI and hear responses, with hands-free and push-to-talk options. It works on web and mobile, counts toward regular usage limits, and allows switching between text and voice in the same conversation.

motif MCP gives Claude Code video-watching ability for UI bug reproduction
motif is an MCP server that lets Claude Code watch screen recordings of UI bugs, using Gemini 2.5 Flash frame-by-frame analysis to return visual descriptions, root causes, and diffs. Setup requires a Gemini API key and two lines in mcp.json.

BrightBean Studio: Open-source social media management platform built with AI agents
BrightBean Studio is an open-source, self-hostable social media management platform that supports 10+ platforms with direct first-party API integrations. It was built in 3 weeks using Claude and Codex.