How I Use Claude Code on My Phone with Termux and Tailscale
13 points by skeptrune
13 points by skeptrune
Related: Anthropic released Claude Code for web just a couple of hours ago which provides a web UI and a native iPhone UI for kicking off Claude Code tasks in sandboxed containers managed by Anthropic. My notes here.
You’ll need your desktop’s Tailscale IP address to connect from your phone.
Maybe. Or you could use tailscale magic DNS, and just use your box' "first name".
Eg your desktop is named chatwin and your tailscale prefix is fillory - you can just use chatwin and tailscale will handle the lookup of chatwin.fillory.ts.net.
One caveat - doesn't play nice with private DNS on Android:
i've been doing this sort of thing for years (minus the LLM component). typically i had openvpn or wireguard available to access my machines but these days it's been netbird. i've also leaned into mosh instead of ssh if i know my connection is going to be flaky.
at one point back when the gen 3 ipads were new, i tried to do all of my development from an ipad this way. it wasn't very ergonomic but it's much easier with the android ecosystem these days (maybe apple has caught up as well). now if only we could reach the dream of convergence.
awesome! i am probably going to grab one of those foldable phones and switch to that as my daily driver when i'm working on the road or from home.
i also really need to try mosh. it sounds like it solves a lot of the connection flakiness problems i get from time to time.
For me Tailscale solves that surprisingly nicely. Just as long as my tailscale connection doesn't kick the bucket i've had ssh sessions last a much longer time than I expected on termux (like, leave home, be at grocery store, go back home, no broken pipe.)
I tried this recently while in Spain on a bad roaming connection. Unfortunately SSH is not a protocol that lends itself well to this use case and mosh didn’t work for me either. I found https://happy.engineering/ to work for a while, but it has since gotten bloated and I am looking for an alternative…
In theory this isn’t a hard problem, but as soon as you introduce a bad connection almost nothing seems to actually work reliably anymore 🥲
you should try mosh!
As mentioned in my comment I did try it and got horrible results. Difficult to connect, characters not getting delivered correctly, essentially unusable (while HTTPS traffic worked fine-enough).
Ah, I didn't realize you were using mosh as your ssh client. I have heard that superconductor is decent.