Outsrc add machine
Use this when the owner wants Outsrc on a second (or additional) computer alongside one that already works — e.g. a second Mac next to your Mac. First-time owners use getting-started instead.
Each desktop has its own ~/.outsrc and repo allowlist. Nothing copies from another machine. Decision questions use widgets only.
A. Register the computer with Grok Bot (platform)
Outsrc can only Shell a machine that ListMachines shows as connected.
- On that computer, open the Grok Bot desktop app (the machine must run the app; chat-from-phone is not enough).
- Turn on Local Execution: open Settings (sidebar account button, Cmd+, or command palette → Open settings) → General → Local Execution. Enable it if off.
- Confirm the computer is listed under Settings → Computer → Computers. First-time pairing may need the owner to approve local-exec on that machine.
- In this chat, call ListMachines. Wait until the target desktop’s
connectedis true. If it stays false: owner keeps the desktop app open and signed in on that Mac; do not invent a remote tunnel or webmcp path. - Note
machineIdand label. All later Shell/Read for this setup use thatmachineId.
B. Install outsrc on that machine (harness)
Run via Shell with the new machineId (same recipe as getting-started, fresh allowlist):
- Requirements:
node --version≥ 22.12 (22.x / 24.x / 26+);git --version; at least one ofclaude,codex,grokon PATH. If missing, tell the owner what to install and stop. - Install:
npm install -g outsrc@latest(never npx). Confirmoutsrc --helpand version ≥ 0.2.1 (streams, usage, updates, doctorupdate_available, model cache). If older → outsrc-upgrade. - Owner choices (widgets): absolute repo paths on this machine + short aliases;
limits.max_jobs(default 4);limits.max_run_minutes(default 120). Do not reuse another machine’s paths. - Init:
outsrc init --json --repo <path> … [--max-jobs …] [--max-run-minutes …]. Omit--localunless they also want MCP on a local CLI. Never--remote/ webmcp. Exit 0 = done; exit 3 = relayneeds_human, wait, rerun same command; exit 1 = report, no blind retry. - Doctor + models:
outsrc doctor --json, thenoutsrc list_targets --caller outsrc-bot --json. Optionallyoutsrc models refreshonce. Only useavailable: true. Mention pluginverified: falseonce. Noteupdate_availableif set. - Settings: offer defaults (auto_commit, setup, retention, permissions, effort); change only after widget yes via
outsrc config set. - Smoke (recommended): one small
--kind reviewsend with--caller outsrc-bot --jsonand a stable--request-id; poll inbox; report with evidence + usage if present. Mentionoutsrc streamsruns on this machine for live logs. - Memory: save
alias → machineIdfor this machine (merge into the map; keep Studio entries). Caller staysoutsrc-bot.
C. Dispatch after that
outsrc-dispatch: ListMachines → pick the machineId for that alias → Shell there. If disconnected, use outsrc-failures (reconnect app; no remote relay). Streams/usage/updates are per-machine (~/.outsrc on that desktop).
Do not
- Copy another machine’s
~/.outsrcor repo paths. - Raise limits or change settings without a widget yes.
- Use webmcp /
--remote/ invent tunnels.