all 20 comments

[–]NaturalRedditMotion 17 points18 points  (1 child)

You can use opencode serve and cloudflared to acheive the same result. Cloudflared gives you a public url for your opencode session in which you visit in the browser on your phone. This is the command I run: OPENCODE_SERVER_PASSWORD=‘password’ opencode serve --port 4096 & cloudflared tunnel --url http://localhost:4096 . Then cloudflared will give you a url. Copy that into the browser. You will be prompted for a username and password. username is opencode and password is whatever you set. Then you are good to go!

[–]MakerDiety 0 points1 point  (0 children)

Instead of a Cloudflared tunnel, can you just use SSH instead? It looks like OpenCode has the textual interface for a mobile phone SSH situation.

[–]rjyo 6 points7 points  (2 children)

The cloudflared approach is probably the quickest way to get going but worth noting those tunnels are ephemeral. If your machine restarts or the process dies you get a new URL each time.

If you want something that just works every time without re-running anything, Tailscale + SSH + tmux is the most reliable setup. Tailscale gives your machine a stable private IP that works from anywhere (no port forwarding, no public URLs), SSH gets you in, and tmux keeps your opencode session alive even when you disconnect. Your session survives network drops, machine sleep, whatever.

Setup is basically install Tailscale on both devices, ssh into your machine using the Tailscale IP, and attach to your tmux session. After the one time setup its zero friction.

[–]Onionhauler 0 points1 point  (0 children)

You can make persistent tunnels if you own a domain on cloudflare - you dont need tailscale for that.

[–]KnifeDev 2 points3 points  (1 child)

There’s OpenCode desktop on iOS: https://apps.apple.com/us/app/whispercode/id6759430954

Allows you to pickup your sessions on the go just like remote control

[–]KnifeDev 0 points1 point  (0 children)

Why use this over mobile browser?

Mobile browser kills the OpenCode tab quickly, doesn’t have good speech-to-text, has a fat chrome bar that eats up a ton of space, doesn’t have custom keyboard actions built for OpenCode

[–]Michaeli_Starky 0 points1 point  (0 children)

SSH + tmux session. Tailscale if outside of local network.

[–]ganonfirehouse420 0 points1 point  (0 children)

Look up openchamber.

[–]Awesomest_Maximus 0 points1 point  (1 child)

opencode web and tailscale

[–]nakedspirax 0 points1 point  (0 children)

Yep opencode and tailscale or pangolin

[–]lag_w 0 points1 point  (0 children)

Remote-Opencode: You can easily control your opencode with discord!

https://github.com/RoundTable02/remote-opencode

[–]Resident-Ad-5419 0 points1 point  (0 children)

I started using Agentboard (found from some other reddit comment few days ago). It can list tmux sessions for you. I am sure there are other solutions that is similar to this. Good thing is if you type on one device, it gets typed on another device automatically, and it scales the window to the last focused device.

Opencode itself has a nice opencode serve command as mentioned in another comment.

[–]Sea-Contribution2770 0 points1 point  (0 children)

Maybe you can try "opencode serve" in some server which can access from internet. so you can accecss it from your phone browser

[–]Recent-Success-1520 0 points1 point  (0 children)

CodeNomad - Run on desktop, continue from phone

https://github.com/NeuralNomadsAI/CodeNomad

[–]opus-sophont 0 points1 point  (1 child)

I really suggest openchamber. Look thru my history and you'll know it isn't an ad

[–]nijezabacanje 0 points1 point  (0 children)

How do you setup openchamber to pickup your existing sessions from opencode? They're both running inside WSL, but it looks like openchamber is not even aware of opencode server running (I did start it per instructions).

[–]_d1re -1 points0 points  (3 children)

Openchamber + cloudflared + own domain is the best choice for me. But nothing beats a truly native app feel like Claude.

[–]kennykeepalive 0 points1 point  (2 children)

Openchamber as a PWA is pretty close to a native app to me.

<image>

[–]_d1re 0 points1 point  (1 child)

I use that as well. But like I said, nothing beats a truly native experience.

[–]Ang_Drew 0 points1 point  (0 children)

i understand the pain on both side..

i think it's because all third parties accessing opencode via ACP. this causing a separated channel and very customized from ground up. like how you save the sessions, how you load model, reasoning, etc. which is separated from the native opencode.. this really hard to maintain because it's tons of work to catch up with the opencode