TUI2Web – Put any TUI session in the browser
Keep driving your local AI CLI session from your phone without losing context on disconnect
- Problem
- A developer says he often starts a Claude session and then wants to go for a walk or a coffee break while still prompting the agent. He made it work with a hacky VPS plus Termius setup while backpacking across Europe and Asia, but connections kept dropping and context went with them. This is exactly the "leave the keyboard, lose the session" problem exposed by increasingly long-running AI coding agents.
- Solution
- An open-source wrapper that runs on your machine, attaches to a local TUI process and exposes it as a web terminal over WebSocket, with auto-reconnect, session persistence, paste support, mobile-friendly key bindings and an optional access token. Reconnecting returns you to the same session with history intact.
- Users
- Developers who live in TUI agents like Claude Code and Codex CLI, especially those who work on the move or want to step away from the desk
- MVP
- Single-binary wrapper that attaches to a local TUI process and serves WebSocket; responsive browser terminal; auto-reconnect and session persistence; access token plus localhost binding; macOS/Linux single-machine only at first.
- Revenue
- Open-source core is free; hosted version charges per connection or monthly subscription with domain, TLS and multi-device session management; local-first, no data selling.
- Why now
- TUI-shaped AI agents are exploding while official mobile experiences are nearly nonexistent; this is a classic infrastructure gap where a single wrapper can validate demand for an indie developer.
Source discussions · 1
- Hacker NewsShow HN: Tui2web – use any TUI on the web6↑ 0