Claudex.
Remote control for the claude CLI on your laptop. Open your phone, keep driving — review a diff, approve a permission, queue the next prompt.
A self-hosted browser for the
claude CLI on your machine.
Your keys. Your diffs. Your network.
The cockpit fits
in your pocket.
Every screen is drawn for a 390-pixel viewport first. Bottom sheets, safe-area aware, iOS-keyboard-tuned. The desktop opens the same session into a wider cockpit — but the phone is the home turf.
- Viewport
- 390 × 844
- Stream
- WebSocket
- Storage
- SQLite (FTS5)
- Daemon
- launchd / pm2
- Bind
- 127.0.0.1
Same session, wider canvas.
Sidebar with projects and saved filters. A grouped session list with branch, diff stats, and live status. The same data your phone sees, laid out for a 27-inch screen.
Four things, said precisely.
We could list twelve features. We've listed four. The rest is in the documentation.
- 01
Phone-first by design.
Bottom sheets · safe-area · thumb reachEvery screen is sized for a 390-pixel viewport, not retrofitted from a desktop layout. The desktop opens the same session into a wider three-column cockpit — but the phone is the home turf.
- 02
Inherits everything.
We spawn the CLI, we don't replace itYour config, MCP servers, plugins, skills, OAuth token — all yours, untouched. claudex drives the real claude CLI as a subprocess. We never call the Anthropic API ourselves.
- 03
Auth from day one.
Username · password · TOTP · ten codesThere is no dev-mode backdoor. JWT in an httpOnly cookie. Ten single-use recovery codes printed once at init. The server refuses to bind anything other than 127.0.0.1.
- 04
Real git worktrees.
Branches · isolation · auto-rebaseEach session lands on its own branch in an isolated worktree. Run five claudes on the same repo without stepping on yourself. Auto-rebase on create, auto-prune on archive.
One line, then you're in.
Walks you through admin setup, prints a TOTP QR and ten recovery codes, then offers to register a user-scoped daemon. Nothing silent. Sudo opt-in.
$ curl -fsSL https://raw.githubusercontent.com/ahaostudy/claudex/main/install.sh | bash Open http://127.0.0.1:5179. Sign in with your TOTP. You're driving.
Front it with Cloudflare Tunnel, frpc, or Tailscale. claudex stays bound to localhost — public exposure is your call.
The Troubleshooting page covers boot loops, restart hangs, and HTTP-vs-HTTPS gotchas.