Credentials. Each enrolled account keeps its own provider configuration directory, so treat those directories and the logins in them as sensitive credentials on this machine.
Who it is forA developer with a work and a personal Claude Code subscription who wants each session to use the right one.
The problemA terminal normally inherits one login, so every window shares one subscription and it is easy to use the wrong one.
The outcomeEach session authenticates as the account it was started on, and the picker shows which account each session belongs to.
What you need first
- Linux with systemd, or macOS 14 or newer
- shpool 0.11.0, the stock build
- Claude Code, Codex, or both
- One trusted Unix account with per-user service access
- Python 3.10+ on Linux or Python 3.11+ on macOS, plus Bash 4+
Steps
- Install Session Kit following the README.
- Run
sp account enroll claude work you@example.comfor each account, using your own label and email. - Run
sp account list claudeto confirm the enrolled accounts. - Run
sp new claudeand choose the account when prompted. - Run
kitand check the account column for each session.
Prompt for your agent
Using Session Kit from https://github.com/dob323/session-kit, enrol the Claude Code account <label> with `sp account enroll claude <label> <email>`, then run `sp account list claude`. Verify that the list shows <label> and report the output.
Caveat. Account separation is for choosing the right subscription per session, and Session Kit does not isolate sessions from other processes running as your own Unix user.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for dob323/session-kit and "Run each Claude Code session on its own account"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer