Just set up OpenCode as a persistent background service on a home server.
The aha: OpenCode's web UI is fantastic. Runs in any browser, full TUI capabilities.
So I set it up as a systemd service, accessible from anywhere via Tailscale.
Now I can:
- Start a long-running AI task from my phone while taking a walk
- Close the browser, come back later—session persists
- Attach from terminal (`opencode attach`) or browser, same session
- Auto-restarts on crash, survives reboots
Resource cost: ~330MB RAM idle. Basically free.
The unlock: fire-and-forget AI tasks from anywhere. No need to keep a terminal open, no need to babysit.
Works on any always-on Linux box—laptop, home server, $5 VPS.
Wrote it up as a gist if anyone wants to replicate:


Gist
Run OpenCode as a persistent systemd service with Tailscale access
Run OpenCode as a persistent systemd service with Tailscale access - opencode-systemd-tailscale.md
