Skip to content

Redstart Server

github-actions[bot] edited this page Dec 3, 2026 · 1 revision

Redstart Server (redstart-server)

redstart-server is a lightweight Axum + Tokio server that supervises persistent stdio ACP agent processes, serves the built-in MASH + Pico CSS Web UI, owns the shared SQLite + FTS5 session/message database, exposes workspace/host inspection and MCP APIs, and accepts WebSocket connections from both browsers and the Android app.

Endpoints

Path Description
/, /ws, /acp Default ACP JSON-RPC 2.0 WebSocket endpoint (echoes requested Sec-WebSocket-Protocol subprotocols).
/acp/{agent}, /{agent} Named ACP agent WebSocket endpoint (lazily spawns the agent on first connection).
/agents, /acp/agents JSON catalog of all configured and live-discovered ACP agents on this host.
/pair HTML pairing page displaying the branded Redstart QR code and redstart://connect?... URI.
/pair.svg Standalone branded SVG QR code.
/healthz JSON health check ({"status":"ok","agent_running":true,"connected_clients":1,"agents":["agy","qwen"]}).
/favicon.ico Embedded Redstart circular navy badge icon.

CLI Options & Environment Variables

Flag Env Var Default Description
--bind REDSTART_BIND 127.0.0.1:9123 Local bind address.
--command REDSTART_CMD agy ACP agent binary to spawn.
--cwd REDSTART_CWD (inherited) Working directory for the spawned agent process.
--token REDSTART_TOKEN (none) Optional shared bearer token (Authorization: Bearer <token> or ?token=).
--public-path REDSTART_PUBLIC_PATH /acp Public Tailscale Serve path for pairing URI generation.
--agent — (none) Add extra named agents (id=cmd args... or id:Label=cmd args...); repeatable.
--no-auto-discover REDSTART_NO_AUTO_DISCOVER false Disable live auto-discovery of installed ACP CLIs on $PATH.
-- <args...> — acp (when command == agy) Arguments forwarded to the primary agent command.

Live Multi-Agent Auto-Discovery

By default, redstart-server scans your system $PATH (plus standard user, Homebrew, and npm binary directories across Linux, macOS, and Windows) whenever /agents is queried—so installing a new ACP CLI makes it appear automatically in the Web UI and Android app without restarting the server.

Inspect what is currently detected on your host:

redstart-server discover

Using Other ACP Agents

redstart-server is agent-agnostic and caches the ACP initialize result per child process lifetime. Reconnecting or concurrent clients receive the cached initialize response with their own request ID without re-sending initialize to stricter single-init agents. The cache automatically resets if the child process exits or restarts.

Examples:

# Antigravity (default)
redstart-server --cwd ~/source/repos

# Claude Code ACP adapter
redstart-server --command claude-code-acp --cwd ~/source/repos

# Codex ACP adapter
redstart-server --command codex-acp --cwd ~/source/repos

# Gemini CLI
redstart-server --command gemini --cwd ~/source/repos -- --experimental-acp

# OpenCode
redstart-server --command opencode --cwd ~/source/repos -- acp

Pairing Subcommand

redstart-server pair \
  --cwd ~/source/repos \
  --path /acp \
  --svg ./redstart-pair.svg

If --url is omitted, redstart-server pair auto-detects your Tailscale MagicDNS hostname via tailscale status --self --json.

Clone this wiki locally