Skip to content

Instantly share code, notes, and snippets.

@veritymedia
veritymedia / opencode-systemd-tailscale.md
Created August 31, 2026 21:18 — forked from shawnyeager/opencode-systemd-tailscale.md
Run OpenCode as a persistent systemd service with Tailscale access

OpenCode Web Server Setup

Run OpenCode as a persistent background service, accessible from any device via Tailscale.

Why?

  • Access from anywhere — Start a task from your phone, check results from your laptop
  • Sessions persist — Close the browser, come back later, your session is still there
  • Multiple clients — Terminal TUI and browser can connect to the same session simultaneously
  • Survives crashes — systemd restarts the server automatically