I do client work across several Claude Code accounts, so I built a tool to stop logging in and out
说明与用途
hatswap 允许同时保持多个 Claude Code 账户登录,轻松切换、固定客户文件夹、隔离历史记录,并将任务交给 Codex,节省时间并提升安全性。
问题
Frequent login and logout between multiple Claude Code accounts wastes time and disrupts workflow.
结果
hatswap eliminates repetitive login steps, keeps account credentials isolated, allows seamless account switching, folder pinning, private histories, and efficient handoffs to Codex, saving time and reducing errors.
工作流
- Install hatswap via curl and install.sh
- Add client accounts with
hatswap add <name>(browser opens for sign‑in) - List accounts with
hatswap listto see default and added accounts - Switch to another account during a session with
! hatswap switch <name>or/switch <name> - Pin a client folder to an account with
hatswap pin <name>soclaudeuses that account in that directory - Make an account private with
hatswap add <name> --privateto keep its history separate - Hand a task to Codex with
hatswap handoff codexwhich creates a handoff brief - Refresh a long session with
hatswap refreshorhatswap refresh --editto start a new session seeded with a brief
证据
I was spending more time switching logins than writing code.
hatswap gives each account its own CLAUDE_CONFIG_DIR under ~/.claude-accounts/<name>, so each one keeps its own login
It never reads, copies or touches your credentials. Every sign‑in is done by Claude Code itself.
hatswap refresh # same account, fresh session, seeded with the brief
- 记录日期: 2026-10-12T18:41:20.610Z