opencode-remote-ctrl
v2.0.2
Published
CLI tool to manage opencode web as a background service with web UI configuration and Tailscale integration
Maintainers
Readme
opencode-remote-ctrl
A CLI tool to manage OpenCode as a background service with a web UI for configuration and Tailscale integration for remote access.
What is this?
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
Installation
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
Requirements
- Tailscale installed (optional, for remote access)
- Unix/Linux/macOS system
- OpenCode (auto-installed if missing)
Usage
Start the Service
opencode-remote-ctrl startThe tool will:
- Auto-install OpenCode if not already installed
- Start OpenCode web interface
- Display access URLs
Other Commands
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 loginRemote Access with Tailscale
If you have Tailscale installed on both your computer and phone:
Start the service:
opencode-remote-ctrl startGet your Tailscale IP:
tailscale ipFrom your phone, open the browser and go to:
http://<YOUR_TAILSCALE_IP>:4096Enter your password when prompted
Why Tailscale?
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)
Troubleshooting
"command not found" after installation
If you get opencode-remote-ctrl: command not found, make sure ~/.local/bin is in your PATH:
export PATH="$HOME/.local/bin:$PATH"
source ~/.bashrcService won't start
Check if OpenCode is installed:
which opencodeCheck service logs:
tail -f ~/.local/share/opencode-remote-ctrl/service.log
License
MIT
