Pick the one that matches where you are.
Starts Cloud Shell if needed, installs opencode on the VM, keeps it alive in
tmux, and forwards http://localhost:4096 back over SSH.
GH_TOKEN=xxx bash <(curl -fsSL https://opencode-cloudshell-vwb6.pages.dev/install.sh)
install.sh —
--reconnect re-attaches to the running instance without restarting it,
--stop stops it.
No tunnel to make — it starts opencode in tmux on this VM and prints a Cloud Shell Web Preview URL you open in your browser.
bash <(curl -fsSL https://opencode-cloudshell-vwb6.pages.dev/cloudshell.sh)
cloudshell.sh —
--attach, --status, --stop.
Ctrl-C closes the tunnel only — the opencode server keeps running on the VM, so a dropped connection or a closed laptop does not kill work in flight.
4096.opencode-ai npm package. Default 1.18.35.gh auth login --with-token over
stdin — never passed as an argument, never written to a file.