logoalt Hacker News

jasonjmcgheetoday at 4:00 PM5 repliesview on HN

Posted elsewhere but will copy here. Been doing this for a while.

- - -

get tailscale (free) and join on both devices

install tmux

get an ios/android terminal (echo / termius)

enable "remote login" if on mac (disable on public wifi)

mosh/ssh into computer

now you can do tmux then claude / codex / w/e on either device and reconnect freely via tmux ls and tmux attach -t <id>

- - -

You can name tmux and resume by name via tmux new -s <feature> and tmux attach -t <feature>


Replies

madjam002today at 9:44 PM

I have just today discovered zmx [1] which is like tmux but I always hated the tmux terminal emulation and how it hijacks scrolling, especially on Termius on my phone. It does session persistence but I think without the terminal emulator side of things, so scrolling works normally.

Been testing it today with Claude Code and it seems to work quite well switching between my laptop and phone.

[1] https://github.com/neurosnap/zmx

show 1 reply
zeppelin101today at 4:21 PM

I think everyone started out with this

show 2 replies
fudged71today at 5:53 PM

Do you have an alias or something so that every time you open CC, tmux is running?

How do you deal with multiple concurrent sessions of CC with this setup?

How important is mosh? I wasn't able to get it set up the last time I tried... ran into a bunch of issues.

show 4 replies
fittingoppositetoday at 5:52 PM

Yes. Doing the same. What is the advantage of this new feature? Tmux/Tailscale/Termius give you full control of your terminal. Or mainly to save the end user the hassle to set it up correctly?

show 2 replies
lukebechteltoday at 4:09 PM

I also do this!