On a guest's own computer, `claude` in a terminal now asks (arrow-key box,
remembered per folder tree): ai-agent Claude — the hub's proxy pair, synced —
or the machine's own login, synced later on demand.
- worker/claude_launcher.py + the installer's shell hook (bash/zsh/fish):
the picker, --ai-agent/--local/--choose, no question for -p / pipes /
known --resume, --session-id up front so the start line links the app;
ai-agent-worker sync|unsync|claude.
- worker/claude-mod: a Claude Code mod — status line (synced · budget left),
a toast with the link, /ai-agent [sync|unsync], and Continue on ai-agent
Claude when the guest's own plan runs out (the launcher resumes it there).
- hub: workers/terminal.py claims a session on its first proxied call
(X-Claude-Code-Session-Id) or when /feed lists it as synced; refused for an
id known elsewhere; Stop syncing keeps the copy, takes no more. The probe
pushes the picker's figures (budget left, paused) to the computer.
- portal: My computers → Terminal sessions (Sync / Stop syncing, Ask at
start); the Terminal badge; continuing a local one confirms the move to the
host's Claude and sends on a fresh context.
Form choose-claude-at-terminal-start-sync-to-the-app_n789ku.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>