Attach, leave and come back
keelbox attach acme # open session main, creating it if missing
keelbox attach acme --session review # open or create another session
keelbox sessions acme # list the sessions
keelbox ssh acme # a shell as the agent, outside tmuxAgents work in tmux sessions on the box, as the agent, the account without sudo. Type claude or codex to start one.
Leave
Press Ctrl-b, let go, then press d. The session keeps running, as when you close the terminal or lose the connection. After a dropped connection, keelbox attach waits for the box and reopens it.
exit or Ctrl-d ends the shell, and the session with it if that was its last window.
To come back, run keelbox attach acme from any computer that has the box's config: from a second computer.
| Keys | What they do |
|---|---|
Ctrl-b c | A new window |
Ctrl-b " / Ctrl-b % | Split below / beside |
Ctrl-b w | Every session and window, to pick one |
Ctrl-b g | The box's status, until any key |
Ctrl-b [ | Scroll; q goes back |
Ctrl-b r | Reload ~/.tmux.conf |
After Ctrl-b the status line lists these keys, fewer when narrow. Tabs show the windows, named after the program or, at a prompt, the directory: a blue dot marks new output, a buff dot a bell. Clicking the box name is Ctrl-b w.
To have agents ring the bell: "preferredNotifChannel": "terminal_bell" in ~/.claude/settings.json; notifications = true and notification_method = "bel" under [tui] in ~/.codex/config.toml.
The welcome
A new session prints a few lines on how to start an agent, leave, come back, get a package and reach root. It does not print again for a session restored after a reboot. Turn it off with sessions.welcome: false and keelbox apply acme.
The welcome and status line come from files the agent can change, so they are not a check of the box. keelbox doctor acme is.
From a phone
-
Put the phone on the box's tailnet, the private Tailscale network between your devices.
-
Generate an SSH key in the phone's SSH app, add the public key to the config and run
keelbox apply acme:users: agent: ssh_authorized_keys: - ssh-ed25519 AAAA... phone -
Connect to
agent@acmeand runtmux new -A -s main.
To start Claude Code sessions without SSH, use the Claude app.
After a reboot
keelbox saves each session's windows, panes and directories every 15 minutes and restores them at boot. Programs in them do not restart, except Claude Code and Codex after a reboot keelbox made (auto_reboot). Otherwise run claude --continue or codex resume.
Every two minutes the box restarts the agent's tmux server if it has stopped. keelbox status acme shows the last restart. The sessions keys turn each part off.
Your own tmux settings
Put your settings in ~/.tmux.conf after its source-file line, which loads keelbox's. Add hooks with set-hook -ga: set-hook -g on session-created, client-attached or window-layout-changed replaces keelbox's. set-hook -gu 'window-layout-changed[71]' stops the pane titles.
From a second computer
A second computer needs the box's config, its own SSH key on the box, and a way to reach the box.
- On the first computer, list both computers' public keys, the line in each one's
~/.ssh/id_ed25519.pub, underssh_authorized_keysfor both accounts in~/.config/keelbox/boxes/acme.yaml, and take outssh_authorized_key_files: a file path is read on each computer, so it names another key there. Then runkeelbox apply acme. - Copy that config to the same path on the second computer. If it sets
target.ssh.identity_file, point that at the second computer's private key. - Join the second computer to your tailnet if public SSH has closed. The first connection shows the box's host key; compare it with
ssh-keygen -lf ~/.config/keelbox/known_hostson the first computer.
If an apply from either computer would take off a key the last apply put there, it stops and prints the lines that keep it: apply would take SSH keys off.
Synced from keelbox/keelbox at e9770d0, 2 December 2026
Sign in
keelbox up runs these sign-ins as its last step; keelbox login does any you skipped. Each is the vendor's own sign-in on your terminal, and keelbox never sees…
The Claude app
Claude Code's Remote Control lets the Claude app, or claude.ai/code, start and continue Claude Code sessions on the box. keelbox runs it as a service of the…