Switch Claude Code accounts without logging out: why I built crewrota
说明与用途
Crewrota 允许同时使用多个 Claude Code 账户,保持设置和历史记录,并提供使用情况概览。
问题
Claude Code allows only one active login per machine, forcing users to log out and sign in again when switching accounts, which disrupts workflow and splits session history.
结果
Crewrota enables simultaneous use of multiple Claude Code accounts without logging out, preserving setup, history, and providing usage monitoring.
工作流
- Set up separate config directories using CLAUDE_CONFIG_DIR for each account
- Create crewrota members with
crew add <name>which opens Claude Code login for that member - Use
crewmenu to select a member, model, and effort, launching Claude Code with the chosen config - Share skills, agents, plugins, and CLAUDE.md from the main
~/.claudefolder to all members - Use
crew quotato view usage across members andcrew widgetfor desktop bars - Resume sessions across members with
--resume
证据
Claude Code keeps its settings and history in one config folder, ~/.claude by default, and the CLAUDE_CONFIG_DIR variable points it at another one.
Give each login its own folder, and each one stays signed in. Two terminals, two accounts, at the same time.
crewrota is a small command-line tool around that variable. Each login is a crew member, with its own folder.
crew quota shows every member's 5-hour and weekly usage on one screen, and crew widget puts the same bars on your desktop.
- 记录日期: 2026-11-01T10:14:01.111Z