Access OpenCode web from your phone or any device on your local network.
Runs opencode serve on all interfaces with a macOS menu bar widget (via xbar) showing status, URL, and a scannable QR code.
- Auto-starting service —
opencode serveruns on boot, survives sleep/wake - Menu bar widget — green
>_when running, gray when stopped. Click to see URL, QR code, and start/stop controls - CLI tool —
opencode-forward {start|stop|status|logs|uninstall} - Dynamic QR code — always reflects your current local IP, works across networks
git clone https://github.com/pedrio-gh/opencode-serve-lan.git
cd opencode-serve-lan
bash install.shCustom port (default is 4096):
bash install.sh 8080The installer handles xbar and qrencode automatically.
Click the >_ icon to:
- See the current URL
- Scan QR code from your phone
- Copy URL to clipboard
- Start / Stop the service
opencode-forward start # Start the service
opencode-forward stop # Stop the service
opencode-forward status # Show status and URL
opencode-forward logs # Tail service logs
opencode-forward uninstall # Remove the servicebash uninstall.shMIT