A self-hosted web terminal for AI coding agents

Run Claude Code and Codex on your own server, from your phone

Workspaces live in tmux and survive dropped connections. No app required, no subscription.

  • Free to use, under a short end-user licence
  • 512 MB of RAM, one vCPU
  • Direct, encrypted connection

Each workspace shows what its agent is doing: Needs you, Working, Error, Done or Idle.

The desktop Home screen. A banner says 2 need you. The deploy workspace shows Needs your answer with a reply field, and the sidebar lists build, deploy and shell with their status.
The phone Home screen. A banner says 1 needs you, with Yes, No and Open buttons. The build workspace shows Needs your answer with the options Yes and No.

Works with

  • Claude Code
  • Codex
  • OpenCode
  • Gemini
  • Aider
  • Goose
  • Any program in a terminal

01 / Why

Why Termenbox

Survives bad networks

The workspace runs in tmux on your server. Close the tab, lose signal or switch from Wi-Fi to cellular and it is still there; reconnecting re-attaches and repaints.

Built for the phone

Tabs per workspace, a key row for Esc, Ctrl and arrows, and a banner when an agent is waiting for you.

Direct and private

The browser talks to your server over an encrypted WebRTC data channel on one UDP port. There is no relay of ours in the middle, and our free directory only maps your server's key to its address.

02 / How it works

How it works

You start a long agent task at your desk, leave, and finish it from the train.

  1. Install

    Run one command on the Linux machine that will run your agents. When it finishes it prints a QR code and a link.

    Chapter 1: Install
  2. Add the server

    Open the app, log in with GitHub, tap Add Server and scan the QR code, or paste the link. The first person to connect becomes the owner, and nobody else can.

    Chapter 2: Connect your phone
  3. Start a workspace

    Tap + New, pick the folder, pick an agent and tap Create. When the agent needs you, a banner names the workspace and offers its choices.

    Chapter 3: First workspace

03 / Install

Install

On the Linux machine that will run your agents: a VPS or a home server, x86_64 or aarch64, with systemd.

  • Asks for no password and needs no sudo
  • Picks a free UDP port by itself
  • Carries no secret and is safe to run again
  • No camera? Paste the link it prints into Add Server

Run on the machine that will run your agents

As your own user

curl -fsSL https://github.com/termenbox/termenbox/releases/latest/download/install-verified.sh | sh

Workspaces run directly on the machine as your own user, so the app gets a shell with your repositories, keys and agent logins. Choose Docker if that is more access than you want.

Workspaces isolated in Docker

curl -fsSL https://github.com/termenbox/termenbox/releases/latest/download/install-verified.sh | sh -s -- container

Workspaces run inside a container that cannot see the rest of the machine. Docker is installed if missing.

Other ways

  • A dedicated user or a root service: add host-user or host to the end of the command. It asks for sudo. Where your agents run
  • Windows: run it inside WSL2 with networkingMode=mirrored, otherwise other devices cannot reach it. Details
  • To remove it: curl -fsSL https://github.com/termenbox/termenbox/releases/latest/download/uninstall-verified.sh | sudo sh
A terminal after the install command: a QR code, then a link to open in Add Server, and a line saying Termenbox listens on a UDP port.
What the command prints: a QR code and a link. Watch chapter 1.

04 / Connections

How connections work

The browser talks to your server over a WebRTC data channel on one UDP port.

A direct connection

The channel is encrypted (DTLS) and the browser pins the server's fingerprint. Your terminal traffic never touches our servers: the free directory only maps your server's public key to its address.

Browserapp.termenbox.dev
Your machinetermenbox-server + tmux

How it connects

  • On the same network

    Scan and connect

    Scan the QR and it connects over the LAN. No public IP, domain or router setting needed. On iPhone this depends on Safari's Local Network permission, which we have not finished testing.

  • Away from home

    One reachable UDP port

    You need one reachable UDP port, or an overlay such as Tailscale. Some mobile and office networks block UDP; the app lists every path it tried and what to fix. Firewalls

  • Behind a router you cannot change

    The assisted way

    Connect through a free Cloudflare account that you own: free public STUN first, then your own TURN relay. Nothing runs on the project's account. How to set it up

New here?

Start the course

You start a long agent task at your desk, leave, and finish it from the train. Six short chapters, one short video each, get you there.

Start the course

05 / Questions

Questions

Answers come from the project's own documentation.

Read the docs
Can I use Claude Code or Codex from my phone?

Yes. Install Termenbox on the machine where the agent runs, then use the app as the terminal: start the agent in a workspace, answer its questions from the banner, and come back later to the same workspace. Supported browsers: iOS Safari 16.4+, Chrome on Android 111+, current Chrome, Firefox, Edge and Safari on desktop.

Is this like Mosh or tmux over SSH?

The persistence is tmux's: the server keeps the workspace and each connection attaches to it. What Termenbox adds is a browser client made for touch, a connection that re-races its paths after a network change, and notifications. It is not an SSH client and does not need one.

Does my terminal traffic go through your servers?

No. It goes from your browser to your machine, encrypted, and the browser pins the server's fingerprint. Only a signed record (the server's public key and address) goes through the directory, and LAN addresses never do. If you connect a home server the assisted way, the relay is a Cloudflare TURN key in your own account, not ours. How it is kept safe

Does it need a public IP or port forwarding?

On the same network as your phone, no: scan the QR and it connects over the LAN. On iPhone this depends on Safari's Local Network permission, which we have not finished testing; the link and QR work wherever the phone can reach the machine. Away from home you need one reachable UDP port, or an overlay such as Tailscale. A server behind carrier-grade NAT or a router you cannot change can be reached from its own network, over an overlay, or the assisted way through a free Cloudflare account of your own. The app lists every path it tried and what to fix. How it connects

Who can open a workspace?

Only the GitHub account that claims the server first, from a browser you have enrolled. Everyone else is refused.

What does the default install give the app access to?

The default install runs workspaces directly on the machine as your own user, so the app gets a shell with your repositories, keys and agent logins. Choose the container path if that is more access than you want. Where your agents run

Will I be told when an agent needs me?

Yes. When a Claude Code workspace asks for you, finishes or fails, the app shows it in a banner and the Inbox. To get a notification on a phone that is not looking at the app, run termenbox-server --setup-push once and turn notifications on in the app; on iPhone the app must be added to the Home Screen first (iOS 16.4+). A notification only says that a workspace needs you and never carries what the agent wrote. Notifications

What does it cost?

Nothing beyond the machine you run it on. There is no subscription, and using Termenbox never requires installing an app: the browser is the reference client. Optional Linux, Windows and Android apps add a tray count, reserved keys and closed-app wake-ups. The optional apps

Free and yours

Free to use under a short end-user licence, with no subscription. The hosted client and directory run on Cloudflare's free tier, and the server needs 512 MB of RAM and one vCPU.