Viewport Daemon
Viewport Daemon runs Claude Code, or any command, on a machine you control. It records every session event in order, holds risky tool calls until a policy or a paired person decides, and lets viewers on other devices drive it over an end-to-end encrypted channel.
npm install -g @viewportai/daemonclaude-code~/src/shoprunningclaude-code~/src/apiwaitingcommand~/src/docsrunningclaude-code~/src/infraexited
claude-code wants to run npm install zod
What it does
A CLI and a library
vpd up starts a background daemon; run, start, ls, attach and stop drive sessions. The same supervisor is a TypeScript library.
Every event, in order
Each session keeps an ordered event log. Viewers stream it from any point without gaps or duplicates, and a crashed daemon's sessions are marked, not lost.
Approvals before tool calls
A policy decides first. Anything it does not settle waits for a paired controller, bound to a digest of the exact action.
Pair any viewer
Console, a phone or CI pair by key over a direct channel or a relay. Traffic is end-to-end encrypted; the relay forwards bytes it cannot read.
Limits today
- Child isolation (the macOS and Linux sandbox) is experimental and best-effort in 0.1.0, not a security boundary. Run agents you do not trust as a separate OS user.
- The hard boundary is approvals, pairing and the encrypted channel: no tool call runs without an approval from a paired controller.
- Built-in runners are command and claude-code. claude-code needs its own login token for sandboxed sessions.