Two Claude accounts on one computer, each kept apart

Work and personal, a team seat and your own plan, two or more: each gets its own Claude Desktop on macOS or Windows and its own Claude Code profile anywhere, with its own login. Codex, Kimi Code and seven more coding agents get the same. Hatcheck never asks for, copies or moves a login, and never switches accounts for you.

Claude Desktop: two accounts on one Mac Install the CLI A profile per account Watch the video The app Source on GitHub

Unofficial: not made by, affiliated with or endorsed by any of the agents' makers. The agents' names and marks are theirs.

Start with a profile per account

Claude Code keeps its login, settings and sessions in one folder, ~/.claude. Pointed at another folder with CLAUDE_CONFIG_DIR, it keeps a second set there, with a login of its own: a profile. Hatcheck is built on that: a folder per account, and cl to run Claude Code with one. Codex and Kimi Code CLI work the same way, with CODEX_HOME and KIMI_CODE_HOME, and cx and ck run them.

cl a                 # Claude Code with ~/.claude-a; the first run asks you to sign in
cl b                 # ~/.claude-b, signed in to another account
cx a login           # Codex with ~/.codex-a
ck a login           # Kimi Code CLI with ~/.kimi-code-a
cd ~/code/api
hatcheck bind a      # in this repo, plain cl means cl a, and cx and ck the same
hatcheck             # the sessions here from every profile, and what's left of each plan

An existing ~/.claude counts as a profile too (hatcheck calls it default), and plain claude keeps using it. Antigravity CLI and ZCode keep one login each, so hatcheck reads their one folder beside the profiles. DeepSeek Harness homes move with DSH_HOME, MiniMax Code homes with MINIMAX_DATA_DIR, Qwen Code homes with QWEN_HOME and GitHub Copilot CLI homes with COPILOT_HOME, all read-only, and OpenCode's one database beside them: which agents, and how far. The CLI comes first: install it, and any agent you don't have yet.

What it does

What to resume, and what's left

hatcheck lists recent sessions from every profile and home, and Antigravity CLI's and ZCode's beside them, with the command that resumes each or opens DSH's session history, what it cost, and what's left of that plan. hatcheck usage shows every plan, sorted by what's left of Fable; hatcheck best ranks them, for choosing between the accounts you may use for the work at hand.

Sessions that travel

hatcheck move carries a session to another profile, such as the account the work belongs to, and back again, or converts it for any of the ten agents, as a file the agent is started on for those without an importer; --brief hands over a brief in place of the whole conversation. hatcheck fork brings one in as a new session and keeps the original; hatcheck open resumes one in a new terminal or opens DSH's web UI, in its folder, and hat r carries on the newest session from the folder in this terminal, after asking.

Claude Desktop, one per account

On macOS and Windows, hatcheck desktop new a A makes a Claude Desktop instance with its own data folder and login, and a launcher in a colour you pick, an app or a Start menu shortcut, that brings a running instance forward instead of opening a second one.

In the terminal

Run in a folder, it lists that folder's sessions from every agent, newest first, each with the command that resumes it, what it cost when its agent wrote one down, and what's left of its plan on the line under it, as the terminal shows them. hat -d adds each session's turns and spend by model, hat -c puts the costliest first, hat -A lists every folder, and run from a folder with no sessions it prints its help and says so:

$ hatcheck
🎩 Claude Code, Codex, Antigravity, Kimi Code, ZCode, DeepSeek Harness, MiniMax, Qwen, Copilot and OpenCode CLI sessions in this folder, active in the last 24h or open now (newest first; % = plan left, ↻ = hours/days until reset)
cd ~/code/api
    4m  Fix flaky login test Β· main Β· $5.01
        cl a --resume 3f1c2a9e-8b7d-4c1e-9f2a-6d5e4c3b2a10
        # 5h 20% β–ˆβ–‘β–‘β–‘β–‘ β†»β–ˆβ–ˆβ–‹β–‘β–‘ 2h39m  week  9% β–‹β–‘β–‘β–‘β–‘β–‘β–‘ ↻▉░░░░░░ 21h35m
   35m  Add rate limiting to the login endpoint Β· main
        cl b --resume 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
        # 5h 62% β–ˆβ–ˆβ–ˆβ–β–‘ β†»β–ˆβ–ˆβ–‹β–‘β–‘ 2h39m  Fable 48% β–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘ β†»β–ˆβ–ˆβ–ˆβ–ˆβ–Žβ–‘β–‘ 4d4h
   50m  Add retries to the uploader Β· main
        codex resume 019a8c1e-7d3f-7b21-9c4e-2f1a0b9c8d7e
        # 5h 80% β–ˆβ–ˆβ–ˆβ–ˆβ–‘ β†»β–ˆβ–ˆβ–ˆβ–‘β–‘ 2h59m  week 64% β–ˆβ–ˆβ–ˆβ–ˆβ–Œβ–‘β–‘ β†»β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘ 1d23h
    1h  Profile the slow search query
        agy --conversation c134893c-20f5-48ea-bc9b-7f7c9271bc4e
        # usage ?
    2h  Write the migration for the audit table
        kimi --session session_6d2f1b0a-3c4e-4f5a-9b8c-7d6e5f4a3b2c
        # usage ?
    3h  Tidy the uploader's error handling
        zcode --resume sess_1fb068a4-b6d4-4a9f-b2d3-6e428e094fbe
        # usage ?
    4h  Trace the missing webhook
        dsh web
        # usage ?
    4h  Review the retry backoff
        mcode --session mvs_c54e0009000040008000000000000009
        # usage ?
    5h  Document the export command Β· main
        qwen --resume 4b4c9dc9-2b3e-4449-a2d5-93c9c165469f
        # usage ?
    6h  Explain the usage command's bars Β· main
        copilot --resume 50b1f120-6353-4117-b918-fb4553e92eb4
        # usage ?
    6h  Rename the export command's flags
        opencode --session ses_e8b2fb6edffetJXXHNatoXnITH
        # usage ?

Every plan, at a glance

Each limit has two bars: what's left of it, then how much of its window is left before it resets. A per-model limit such as Fable, which team and Max plans have, is violet, so it stands apart from the weekly limit for all models that Pro plans have.

session (5h)62%resets 5:01pm
week (Fable)19%resets Tue 12:00pm

Which account to use

hat best ranks the accounts as hatcheck usage shows them, for choosing between those you may use for the work at hand, with the command that carries the newest session started here to the first; it is advice only:

$ hatcheck best
Session 3f1c2a9e "Fix flaky login test", the newest started from this folder, is in ~/.claude-a: week 9%, 0.4%/h Β· 5h 20%.
Best Claude Code account now: ~/.claude-b  team max 5x Β· live
  session (5h)  62% β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Žβ–‘β–‘β–‘  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘ resets 8:25pm (in 2h39m)
  week (Fable)  48% β–ˆβ–ˆβ–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘ resets Wed 10:33pm (in 4d4h)
Carry it there with:
  hatcheck move b    (hatcheck fork b keeps the original)
Then:
   2. ~/.claude-a  week 9%, 0.4%/h Β· 5h 20% (where it is)  β†’ cl a
Codex: ~/.codex  week 64%, 1.3%/h Β· 5h 80% Β· cached 50m ago  β†’ codex
Advice only: nothing is started, moved or switched. hatcheck usage shows every account's limits.

When a project folder moves

Claude Code files each session under the folder it ran in, and Codex records the folder in each session file, so once a project folder is renamed or moved, resuming from the new place finds nothing. hatcheck relocate brings the folder's sessions along, in every profile and home at once:

$ mv ~/code/web ~/code/site
$ hatcheck relocate ~/code/web ~/code/site
βœ“ Relocated 4 sessions from ~/code/web to ~/code/site:
  ~/.claude-a  1 session: projects/-Users-me-code-web renamed projects/-Users-me-code-site
  ~/.claude-b  2 sessions: projects/-Users-me-code-web renamed projects/-Users-me-code-site
  ~/.codex  1 session: the folder in the file rewritten
⚠ Left alone: Kimi Code CLI session 8d4b5e6f in ~/.kimi-code is filed under a hash of the folder, which stays as it was.
⚠ Left alone: DeepSeek Harness session d54e0010 in ~/.dsh keeps an immutable folder in its session header and workspace state, which stay as they were.
⚠ Left alone: MiniMax Code session c54e0010 in ~/.minimax keeps shared SQLite state and absolute manifest paths with related assets, which stay as they were.
⚠ Left alone: Qwen Code session 5c5d0e0e in ~/.qwen is filed under the folder's name and records it on every line, which stay as they were.
⚠ Left alone: GitHub Copilot CLI session 61c2a031 in ~/.copilot records the folder in its workspace file and its events, which stay as they were.
⚠ Left alone: OpenCode session e8b2fb6e in ~/.local/share/opencode records the folder in opencode's database, which stays as it was.
The folder binding of ~/code/web moved to ~/code/site.
Resume them from ~/code/site. To undo: hatcheck relocate ~/code/site ~/code/web

Only the folder each session records is rewritten; what the conversation says about the old path stays as it was. Antigravity CLI and ZCode keep the folder in their own databases, which hatcheck never writes, Kimi Code CLI files sessions under a hash of it, DSH keeps it in an immutable header and workspace state, mcode keeps shared SQLite state and absolute manifest paths with related assets, and qwen files the transcript under the folder's name and writes the folder on every line, so theirs stay as they are, and it says so. --dry-run shows what would move, a session that's open or still being written stops it before anything changes, and running it the other way round undoes it, byte for byte.

Half a minute of it

The terminal side, in 28 seconds: a session carried from one Claude Code profile to another, with what's left of each plan beside it.

A frame from the video, headed β€œCarry the session”: a terminal prompt above two profiles, one with 8% left and one with 91%, marked best now.

Press play and it streams from YouTube (youtube-nocookie.com); until then the page loads nothing from outside. Open it on YouTube.

Every command in a few letters

hat is hatcheck's short name, and each command can be cut to its first letters. In a project folder:

hat                 # the sessions here, with resume commands, costs and plan usage
hat -d              # with each session's turns and spend by model; -c costliest first
hat -A              # every folder's
hat u               # what's left of every plan
hat b               # the best account now
hat m               # move the newest session here to it, after asking
hat m 3f1c2a9e b    # or session 3f1c2a9e to ~/.claude-b
hat r               # carry on the newest session here, after asking
ShortForWhat it does
hathatcheckthe recent sessions, with the command that resumes each, what it cost and what's left of its plan; -d details, -c costliest first, -A every folder
hat uusagewhat's left of every plan
hat bbestthe best account now, and the command that carries a session to it
hat mmovecarry a session to another profile, or convert it for another agent
hat fforkbring a session into another profile as a new one, keeping the original
hat rresumecarry on the newest session here, in this terminal
hat oopenresume a session in a new terminal, in its folder
hat sshowread a session's conversation
hat wwherefind a session's files
hat relrelocatebring a moved folder's sessions along
hat bibindtie this folder to a profile
hat ununbinduntie it again
hat ddesktopClaude Desktop instances, on macOS and Windows
hat pproviderthe keys and models behind claude-z and claude-k
hat dodoctorwhich copies of hatcheck and the agents are installed, and which run, and how long each profile keeps its transcripts
hat sesearchthe sessions whose title or conversation has every word, in every profile and home
hat profprofileswhat each profile and home is set up with, and what differs between two
hat ststatuslinea status line for Claude Code: the profile a session runs in, and what's left of its plan
hat ccompletionsthe completions for zsh, bash, fish or PowerShell

A longer start works too, such as hat mo, and options follow as after the whole name: hat u --cached. Where two commands start with the same letter, the one used more gets it, so bind, unbind and doctor take two letters, relocate three and profiles four; what hatcheck prints uses the whole name. The launchers are short too: cl a, cx a and ck a run Claude Code, Codex and Kimi Code CLI with profile a (a profile per account).

In more detail

Which agents, and how far

Claude Code, Codex and Kimi Code CLI get a profile per account and a launcher; Antigravity CLI and ZCode, with one login each, are read beside them. A table of what each agent gets, and where to get each one.

Every command

What hatcheck --help prints, then each of the nineteen commands' own --help, as this version prints them.

Rules it keeps

Not a gateway, no credentials, nothing in the background, no automatic switching, and every change undoable: each rule with the code that keeps it.

Guides

Plain-language pages: two Claude accounts on one Mac, Claude Code with two accounts, the same for Codex and Kimi Code, and what's left of each plan.

Install the CLI

macOS, Linux and Windows: one binary per platform, nothing else needed. It installs hatcheck and hat, its short name, with cl, cx, ck, claude-z, claude-k, claude-m and claude-d, but no agent: get those from their makers. Installed more than one way, hatcheck doctor says which copy runs and how to remove the rest.

curl -LsSf https://github.com/hatcheck/hatcheck/releases/latest/download/hatcheck-installer.sh | sh
brew install hatcheck/tap/hatcheck  # Homebrew, on macOS and Linux
npm install -g hatcheck             # npm, on macOS, Linux and Windows
uv tool install hatcheck            # or: pipx install hatcheck
cargo binstall hatcheck             # the release binaries, with cargo-binstall
cargo install hatcheck              # or build them from crates.io

On Windows, in PowerShell:

powershell -ExecutionPolicy Bypass -c "irm https://github.com/hatcheck/hatcheck/releases/latest/download/hatcheck-installer.ps1 | iex"

Or build it from a clone, with Rust; run ./install.sh again after a git pull:

git clone https://github.com/hatcheck/hatcheck
cd hatcheck && ./install.sh         # Windows, in PowerShell: .\install.ps1

Packages: GitHub Releases Β· Homebrew tap Β· npm Β· PyPI Β· crates.io.

The app

A menu-bar app (system tray on Windows and Linux) built on the CLI: what's left of every plan, the last day's sessions with Resume and Copy, the Claude Desktop instances a click away, and a notification when a limit runs low or resets. Its main window browses every session with a preview, moves or forks sessions between profiles after a dry run, and adds profiles.

It isn't released yet. Its first release brings these downloads and a Homebrew cask, and it updates itself from the releases after that; until then, desktop/README.md says how to build it.

macOS Apple silicon and Intel, .dmg Windows installer, .exe or .msi Linux AppImage or .deb