Minimal viable product: Docker image with OpenCode + LazyVim + git pre-configured, run on cheap VPS providers that take Lightning. User gets SSH access. routstr (nprofile…yvfs) or MapleAI (nprofile…uh5t) for AI backend.
Could even be an add-on product for both. Take Replit's market.
Nostr-native approach: User identity via npub. Session state is stored encrypted on relays. Pay-per-session via Cashu. Could even be stateless—spin up a container, work, destroy.
quotingJust set up OpenCode as a persistent background service on a home server.
nevent1q…yucx
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
