Codex anywhere with tmux, Termius, and Tailscale

My current mobile Codex setup is deliberately simple: I use Termius on my phone to SSH into my own laptop, then run Codex inside a tmux session.

When I am at home, this is just SSH over my home Wi-Fi. When I am outside, I turn on Tailscale and use the same Termius profile against the laptop’s Tailscale address. The workflow stays the same:

Phone -> Termius -> SSH -> laptop -> tmux -> Codex

The important part is tmux. If the phone app is suspended, the network changes, or the SSH session drops, the work does not disappear. I reconnect from Termius, attach to the existing session, and continue from where I left off.

tmux new -s codex

Later, reconnect with:

tmux attach -t codex

I also tested remote control through the Codex app. The UI is better for phone use, but on Arch Linux it is not an official target for me, and the connection has been too slow and unreliable. A nicer UI does not help much when the session keeps dropping.

So I went back to the boring setup that works: Termius for SSH, Tailscale for private networking when I am away from home, and tmux as the durable shell on the laptop.

It is not elegant, but it gives me the thing I actually need: access to the same local development environment from anywhere, without pretending the phone is the development machine.

Related Posts

Input Chinese pinyin with tones on Linux with fcitx

The goal is to type pinyin with tone marks directly from the Linux input method: nǐ hǎoThe schema I used is [rime-lumen-pinyin](https://github.com/williampan/rime-lumen-pinyin/tree/mast

read more

How to configure the DEFT Pro trackball on Linux

This is my Xorg configuration for the Elecom DEFT Pro trackball on Manjaro. Create this configuration file: /usr/share/X11/xorg.conf.d/99-trackball.confThe important part is `ButtonMap

read more

Use Pocket (read it later) on KOReader

Pocket does not integrate with KOReader directly, but news2reader can expose Pocket articles as an OPDS catalog. Useful links:[MobileRea

read more