This is the current setup pattern I use on my Mac, with machine-specific values redacted.
- Keeps one OpenCode backend running under
launchd. - Makes bare
opencodeattach a TUI to that shared backend. - Keeps normal subcommands like
opencode run,opencode auth, andopencode upgradeunchanged. - Exposes the same backend to Android over Tailscale Serve HTTPS.