Skip to content
gentic.news — AI News Intelligence Platform
Connecting to the Living Graph…

Listen to today's AI briefing

Daily podcast — 5 min, AI-narrated summary of top stories

A developer typing 'c' in a terminal to launch Claude Code inside a virtual room interface, with multiple workspace…
Open SourceScore: 59

Claustrophobic: The Open-Source Tool That Lets You Seamlessly Switch

Claustrophobic is a multi-account harness for Claude Code that auto-selects the account with the most rate limit remaining, using `c`, `cw`, and `cr` shortcuts to switch rooms seamlessly.

·1d ago·3 min read··4 views·AI-Generated·Report error
Share:
Source: claustrophobic.xyzvia hn_claude_code, devto_claudecodeCorroborated
How do I use multiple Claude Code accounts with automatic rate limit switching?

Install Claustrophobic with `curl -fsSL https://claustrophobic.xyz/install | bash`, then use `c` to open Claude in the account with the most rate limit left, `cw` to switch rooms, and `cr` to resume a session under a different account.

TL;DR

Switch between Claude Code accounts without losing context—Claustrophobic auto-selects the room with the most rate limit remaining.

What Changed — The Specific Update

Claustrophobic is a new open-source tool that turns every Claude Code subscription into a "room." When you type c, it opens Claude Code in the room with the most rate limit remaining. If that account runs dry, you exit, type cr, and the same session resumes under a fresher account.

It's a single bash script, verified by checksum before install. The installer keeps your current login as room 1 and adds more rooms through the official claude login command. It's safe to re-run.

What It Means For You — Concrete Impact on Daily Claude Code Usage

If you've ever hit Claude Code's rate limits mid-session—especially during long refactoring sessions or multi-file edits—you know the frustration. You either wait, or you manually log out and log in with another account, losing your session context.

Claustrophobic eliminates that friction. It symlinks sessions, settings, skills, and plugins from each room to your main ~/.claude directory. So when you switch accounts with cr, your session history, conversation state, and custom instructions carry over. The only thing that changes is which API key is being billed.

The statusline is the sensor. Every render snapshots that room's rate limits for cl and the auto-picker. Idle rooms show their last known air, so you always know which accounts are ready.

Try It Now — Commands, Config, and Workflow

The Open-Source Toolkit for Building AI Agents

Install

curl -fsSL https://claustrophobic.xyz/install | bash

This adds a claustrophobic block to your shell rc file (bash or zsh) and creates ~/.claustrophobic/.

Add Accounts

After install, your current login is room 1. To add room 2:

claude login

The official CLI handles the OAuth flow. Claustrophobic detects the new profile and adds it as a room.

Commands

  • c — Open Claude Code in the room with the most rate limit remaining
  • cw — Switch to a different room manually
  • cr — Resume the current session under a different account (preserves context)
  • cl — Show statusline for all rooms

Configuration

Default launch flags include --dangerously-skip-permissions. To change them, edit ~/.claustrophobic/config.

Uninstall

Remove the claustrophobic block from your rc file, run claustrophobic statusline uninstall, then delete ~/.claustrophobic/.

Fine Print

  • Requires macOS or Linux, bash 3.2+, the claude CLI, and python3 or node
  • Accounts must be distinct emails
  • Whether multiple subscription accounts sit within Anthropic's consumer terms is between you and Anthropic—read them first

Community Sentiment

The Hacker News discussion is light (2 points, 1 comment), but the author notes: "I've been using the c, cw, and cr shortcuts for a long time but today I wished to switch to another account and wanted to keep the simplicity so I built this." The code was mostly written by Fable 5 with strong guidance from the author, who vetted the code for safety.


Source: claustrophobic.xyz

[Updated 13 Jun via devto_claudecode]

A separate open-source tool, claude-swap, takes a different technical approach: it backs up OAuth credentials for each account and swaps them in and out of Claude Code's credential store on demand [per dev.to]. Unlike Claustrophobic's session-preserving room system, claude-swap requires restarting Claude Code after each switch. It installs as a Python package with 27+ releases and uses OS-native secure storage (macOS Keychain, Windows Credential Manager). The tool is MIT-licensed and built by the community, not Anthropic.

Source: gentic.news · · author= · citation.json

AI-assisted reporting. Generated by gentic.news from multiple verified sources, fact-checked against the Living Graph of 4,300+ entities. Edited by Ala SMITH.

Following this story?

Get a weekly digest with AI predictions, trends, and analysis — free.

AI Analysis

**What Claude Code users should do differently:** 1. **Install Claustrophobic today** if you have multiple Claude Code subscriptions. The `cr` command alone is worth it—it solves the rate-limit wall without losing session state. No more manual logout/login cycles. 2. **Add a second account** specifically for long-running sessions. If you do heavy refactoring or multi-step agentic workflows (especially with the new `/loop` command from June 11), having a backup account means zero downtime. 3. **Monitor your rate limits visually** with the statusline (`cl`). Claustrophobic snapshots rate limits on every render, so you can see which accounts are fresh before starting a session. **Workflow change:** Instead of one Claude Code session per day, now run multiple sessions across accounts. Start with your primary account, and when you hit limits, `cr` to a secondary account. The session context persists, so Claude doesn't lose track of your conversation history or planned work.
Compare side-by-side
Claude Code vs Claustrophobic

Mentioned in this article

Enjoyed this article?
Share:

AI Toolslive

Five one-click lenses on this article. Cached for 24h.

Pick a tool above to generate an instant lens on this article.

Related Articles

From the lab

The framework underneath this story

Every article on this site sits on top of one engine and one framework — both built by the lab.

More in Open Source

View all