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

✍️ OpenClawRadar📅 Published: March 18, 2026🔗 Source
Claude-switch CLI tool automates switching between Claude Max accounts when hitting usage caps
Ad

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."

Ad

Usage commands

First-time setup requires saving both accounts:

claude-switch save work
claude-switch save personal

When hitting a usage cap mid-session:

claude-switch use personal

The 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

Ad

👀 See Also

OpenHelm: A Local Background Scheduler for Claude Code with Self-Correcting Retry Logic
Tools

OpenHelm: A Local Background Scheduler for Claude Code with Self-Correcting Retry Logic

OpenHelm is a Tauri-based application that runs Claude Code tasks in the background on a schedule, stores all state locally in SQLite, and includes a self-correcting retry loop that adjusts prompts after failures.

OpenClawRadar
Claude VS Code Extension Reasoning Effort Slider Sends Inconsistent Values
Tools

Claude VS Code Extension Reasoning Effort Slider Sends Inconsistent Values

The reasoning effort slider in the Claude VS Code extension sends inconsistent numeric values to the model, with non-monotonic mapping where moving the slider up can send a lower number.

OpenClawRadar
Crow: Open-Source MCP Platform Adds Persistent Memory and P2P Sharing to LLM Frontends
Tools

Crow: Open-Source MCP Platform Adds Persistent Memory and P2P Sharing to LLM Frontends

Crow is an open-source, self-hosted MCP server platform that provides LLM frontends with SQLite-backed persistent memory, structured research tools, and encrypted peer-to-peer sharing. It works with any MCP-compatible client like Claude Desktop, Cursor, or Windsurf and requires no cloud dependency by default.

OpenClawRadar
ClawCode: Migrate OpenClaw Agents to Claude Code as a Plugin
Tools

ClawCode: Migrate OpenClaw Agents to Claude Code as a Plugin

ClawCode is a Node.js plugin for Claude Code that imports OpenClaw agents, including IDENTITY, SOUL, memory, skills, and crons from ~/.openclaw/workspace/. It provides SQLite+FTS5 searchable memory, messaging plugins for WhatsApp, Telegram, Discord, iMessage, and Slack, and a nightly 'dream' process for memory consolidation.

OpenClawRadar