Join Nostr
2026-01-24 23:28:01 UTC

shawn on Nostr: Just set up OpenCode as a persistent background service on a home server. The aha: ...

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:

https://gist.github.com/shawnyeager/752ce43e4f8d97f55cd9db397544873f