A CLI tool to manage OpenCode as a background service with a web UI for configuration and Tailscale integration for remote access.
This tool adds a web interface to OpenCode, so you can access it from your phone, tablet, or any device remotely via Tailscale VPN.
Why would you want this?
- Access OpenCode's AI coding assistant from your phone
- Same terminal experience, but from anywhere
- No need to have a browser open on your computer
- Share your coding session with others easily
Requires Node.js 16+ (no other dependencies needed).
# Clone the repo
git clone https://github.com/luigivis/opencode-remote-ctrl.git
cd opencode-remote-ctrl
# Run the installer
./install.shThe installer will:
- Copy files to
~/.local/lib/opencode-remote-ctrl/ - Create a symlink in
~/.local/bin/ - Add
~/.local/binto your PATH if needed
- Tailscale installed (optional, for remote access)
- Unix/Linux/macOS system
- OpenCode (auto-installed if missing)
opencode-remote-ctrl startThe tool will:
- Auto-install OpenCode if not already installed
- Start OpenCode web interface
- Display access URLs
opencode-remote-ctrl status # Check status
opencode-remote-ctrl config # Open configuration UI
opencode-remote-ctrl stop # Stop the service
opencode-remote-ctrl restart # Restart the service
opencode-remote-ctrl install-service # Enable auto-start on loginIf you have Tailscale installed on both your computer and phone:
-
Start the service:
opencode-remote-ctrl start
-
Get your Tailscale IP:
tailscale ip
-
From your phone, open the browser and go to:
http://<YOUR_TAILSCALE_IP>:4096 -
Enter your password when prompted
Tailscale creates a secure VPN between your devices:
- Works from anywhere (not just local network)
- End-to-end encrypted
- No port forwarding needed
- Free for personal use (up to 100 devices)
If you get opencode-remote-ctrl: command not found, make sure ~/.local/bin is in your PATH:
export PATH="$HOME/.local/bin:$PATH"
source ~/.bashrc-
Check if OpenCode is installed:
which opencode
-
Check service logs:
tail -f ~/.local/share/opencode-remote-ctrl/service.log
MIT