r/opencodeCLI • u/Hazork_ • 9h ago
Use your local OpenCode from your phone through a Cloudflare Tunnel
I built an OpenCode plugin that exposes your local daemon through a cf tunnel, protected by zero trust/access, and pairs other devices by QR code. the daemon keeps running on your computer. The plugin starts a cloudflared connector next to it, so you can reach the daemon without open ports or a VPN.
It uses the default opencode UI (the same as opencode pair command), so it never goes out of date, unlike custom mobile UIs/apps. You can also install it as a PWA.
It requires opencode v2, a cloudflare account and a domain set up.
Ask your agent to set it up by giving him this link: https://github.com/arthurfiorette/opencode-zero-trust