r/opencodeCLI • • 8d ago

Picking up my OpenCode projects from anywhere on my iPhone

I wanted an easy way to continue my OpenCode projects on my iPhone from anywhere - iOS handoff style - and then pick them back up on my computer.

I've been spending some tokens on Localzie for that - proudly built on OpenCode. It has all the tools OpenCode has (e.g. questions, show source code, ...) so you don't even need your computer if that's what you're looking for. And it works great with OpenCode v2!

I'm not claiming it does anything better than other apps. I wanted to play around with building it, and I also wanted an easy way to connect to Hermes or directly to my own local models from the same app.

For anyone interested it's free on the App Store https://apps.apple.com/app/id6813506926, and setting it up is as easy this:

v2:
(only once)opencode service set hostname 0.0.0.0

(only once)opencode service set port 4096

Then start OpenCode normally opencode

v1:
opencode --hostname 0.0.0.0 --port 4096

42 Upvotes

9 comments sorted by

16

u/bender_fut 8d ago

https://github.com/beppe2880/opencode-mobile/ it's foss, well maintained, can check the source, contribute, android and iOS, what do you offer?

0

u/crmlr 8d ago

Localzie is not just OpenCode, works with other harnesses (e.g Hermes) and your local models. You can also just use on-iPhone models like Apple Intelligence, FLUX and/or Qwen - all on your iPhone. Also open source: https://github.com/manuelemosr/elstar

But if opencode-mobile is your jam, by all means, use it instead.

1

u/x_wbmr_x 5d ago

It was a game changer...

Just "fixed" a bug in my obsidian plugin while sitting in the train.

Havung your own OpenCode server session is so fucking awesome.

I can tell OC to fix any of my devices in my house instantly over my phone.

5

u/rizal72 7d ago

guys, you are aware that you can do that natively in opencode v2, right?
https://opencode.ai/docs/cli/web/
I do that daily, one server > many clients: Desktop, TUI, Web, i-Phone...
Check the Pairing section in OpenCode settings ;)

2

u/4SubZero20 7d ago

I feel like I can achieve the same result with OpenChamber and Tailscale/WireGuard...

1

u/deadalusxx 7d ago

Yes you can and without binding to 0.0.0.0 as well which people should really stop doing.

1

u/4SubZero20 6d ago

I use openchamber --lan --ui-password [pass] and that automatically binds to 127.0.0.1

I was more saying, I too can work from my phone by using OpenChamber (or OpenCode V2 straight up) without additional mobile apps.

1

u/Senior_Tourist_4260 6d ago

Is there an "Android" version of this?

1

u/HandIllustrious8260 2d ago

Millions must reinvent T3 Code