Small installable launcher for running OpenCode server + OpenChamber together.
It is useful when you want to start coding on one machine and then attach from a phone or another workstation over your network/VPN.
opencodeon PATHopenchamberon PATHnode,curl, andbash
Quick install (no clone):
curl -fsSL https://raw.githubusercontent.com/badfun/opencode-remote/main/install.sh | bashInstall from a local clone:
git clone <your-repo-url>
cd opencode-remote
bash install.shThe installer creates:
~/.local/bin/opencode-remote(symlink tobin/opencode-remote)~/.config/opencode-remote/env(from template, if missing)
The installer also adds ~/.local/bin to your shell config if it is not already on PATH.
You may need to restart your shell or run source ~/.bashrc (or source ~/.zshrc) first.
Edit ~/.config/opencode-remote/env and set:
OPENCODE_SERVER_PASSWORDOPENCHAMBER_UI_PASSWORD
Optional settings:
OPENCODE_HOST(defaulthttp://127.0.0.1:4096)OPENCHAMBER_HOST(default0.0.0.0)OPENCHAMBER_PORT(default3000)
cd ~/projects/your-project
opencode-remote all
opencode-remote attach
opencode-remote stop-allOther commands:
opencode-remote serveropencode-remote uiopencode-remote ui-fgopencode-remote stop-serveropencode-remote stop-uiopencode-remote status
After opencode-remote all, OpenChamber is available on OPENCHAMBER_HOST:OPENCHAMBER_PORT (defaults to 0.0.0.0:3000).
- On the same machine, open
http://127.0.0.1:3000 - From a phone or remote workstation, open
http://<machine-ip>:3000
If you already use a notification tool such as ntfy, you can send yourself a ping when the environment is ready, then open OpenChamber from your phone using that machine IP.
For security, prefer private network access (for example Tailscale/WireGuard/LAN) rather than exposing port 3000 publicly.
bash uninstall.sh