Files
ai-agent/backend/accounts.py
Gabriel Vidal 51effbc74f feat(accounts): per-account Claude launches in the sidecar + hard-coded account profiles
The sidecar launches a claude run on one Claude login: the default account
(the CLI's own ~/.claude) or one declared in SIDECAR_ACCOUNTS (work=~/.claude-work),
exported as CLAUDE_CONFIG_DIR for that run. account on /spawn, /resume and /fork;
fork finds its source in that account's projects/; a non-default account with no
login is a 409; ANTHROPIC_API_KEY is stripped once accounts are declared; no
--remote-control for non-default accounts; GET /accounts = claude auth status.

backend/accounts.py holds the personal/work profiles and the resolution order
(explicit stamp -> import source -> cwd rule -> default), with unit tests.
2026-09-11 19:38:54 +02:00

7.3 KiB