Mobile Companion

The mobile companion is a PWA (Progressive Web App) that lets you manage your agents from your phone over your local network. Approve permissions from the couch, check on long-running tasks from another room, or review diffs on your tablet.


Starting the web server

Build and run the web server:

make web

This starts the server on port 8390. Open http://<your-machine-ip>:8390 on your phone’s browser.

Find your machine’s local IP with ipconfig getifaddr en0 (macOS) or hostname -I (Linux).

Installing permanently

To install the web server binary to ~/.local/bin/:

make install-web

Then run it with agent-dashboard-web.

What you can do

The mobile interface mirrors the TUI’s capabilities:

  • Agent list and detail views — same state grouping (needs attention, running, completed) with conversation timeline and diff viewer
  • Full remote control — approve/reject permissions, reply to questions, send numbered options, stop agents
  • PR workflow — open PRs, merge, and close from your phone
  • Session creation — create new agent sessions with z-plugin suggestions and skill selection
  • Usage dashboard — token breakdown and cost tracking

Install as PWA

For a native app experience, add the dashboard to your home screen:

  1. Open the dashboard URL in your phone’s browser
  2. Tap Share (iOS) or the three-dot menu (Android)
  3. Select Add to Home Screen

The PWA includes offline caching via a service worker, so the shell loads instantly even if your machine is briefly unreachable.

Google OAuth (optional)

By default, the web server is open to anyone on your local network. To restrict access to just you:

  1. Create OAuth credentials in the Google Cloud Console
  2. Set the authorized redirect URI to http://<your-ip>:8390/auth/callback
  3. Configure the environment variables:
export GOOGLE_CLIENT_ID="your-client-id"
export GOOGLE_CLIENT_SECRET="your-client-secret"
export GOOGLE_ALLOWED_EMAIL="your@gmail.com"

When configured, the web server requires Google sign-in and only allows the specified email address.