One line. Zero inbound ports.

Your line, with a one-time token, comes from the app. Open it, sign in with Google, and copy it.

Connect your first server →Your line is waiting in the app →

Looking for the desktop app? Mac and Linux →

your-server

$ curl -fsSL https://onetty.app/install.sh | sh -s -- --token •••••• --owner ••••••

Sign in with Google to get your token

Requirements

x86_64 or arm64 with glibc and systemd (Alpine and musl aren’t supported yet), curl and tar. It brings its own Node.js (the official one: when we build the package we check it against nodejs.org’s SHASUMS256) and a static tmux pinned by hash. On your server, the script checks the whole package against the sha256 written inside it (integrity, not a signature). It installs in your home. It may ask for sudo once, optionally, to keep your sessions running after you log out (linger); without it, run sudo loginctl enable-linger $USER yourself.

If curl or tar are missing

sudo apt update && sudo apt install -y curl tar
sudo dnf install -y curl tar
sudo pacman -S --needed curl tar
sudo dnf install -y tar
sudo zypper install -y curl tar

RHEL, Rocky and Alma 8 or newer.

Amazon Linux 2023 (it comes with curl). Amazon Linux 2 is too old for the bundled Node.

Apple Silicon and Homebrew (for tmux). Run it in Terminal, logged in as your user, not over SSH. Keep the user logged in and the Mac awake. Intel Macs aren’t supported.

Once, if you don’t have Homebrew (see brew.sh):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Keep that user logged in (the screen can be locked) and stop the Mac from sleeping while agents work: System Settings › Energy › Prevent automatic sleeping.

Your agents

The installer installs the coding agents you pick in the app (the line adds --agents claude,codex; also qwen, grok and antigravity, or none), each with its official installer, in your home. Without --agents, Claude Code (claude.ai/install.sh; on macOS, if that fails, with Homebrew), unless you pass --no-claude. If one can’t be installed, the install goes on and tells you which one and why at the end. It adds the hooks and the wrapper: new claude sessions start in tmux on their own, and so do those of the other agents. The ones you didn’t pick are installed later from the app (on the server’s page, Agents; installing is for admins) or by hand; if you install them by hand, then run onetty wrap install and onetty hooks install. Signing in to each agent is also done from the app (Onetty never sees your credentials) or in your terminal. In terminals you already had open, run exec $SHELL (or open a new one).

onetty wrap install    # the ones you installed by hand
onetty hooks install
exec $SHELL            # terminals you already had open

Read it before you run it

The script is plain sh, readable top to bottom: it downloads the package for your architecture, checks it against the sha256 written inside the script (integrity, not a signature), unpacks it in your home and runs the setup. Download it, read it, then run it:

curl -fsSLO https://onetty.app/install.sh
less install.sh
sh install.sh --token …   # your line, from the app

Open install.sh →

What it writes and where

Nothing outside your home. The token works once, for one hour.

  • ~/.local/share/onetty/ — versions, current, and its own Node.js and tmux
  • ~/.local/bin/onetty — the command
  • ~/.config/onetty/ — keys, settings, and the per-device push keys you turn on
  • the user service: onetty and onetty-update.timer on Linux; app.onetty.* launch agents on macOS
  • the wrapper block in ~/.bashrc / ~/.zshrc, and hooks in your agents’ settings
  • ~/.local/bin/claude and ~/.local/share/claude/ — Claude Code, from its official installer (unless --no-claude), and the other agents you pick with --agents, wherever their installers put them

What stays listening

Only a localhost socket for your agent’s hooks (127.0.0.1, token-protected). Nothing listens on the network. Check it:

# Linux
ss -tlnp | grep "pid=$(systemctl --user show -p MainPID --value onetty),"
# macOS
lsof -nP -iTCP -sTCP:LISTEN -a -p "$(launchctl list | awk '/app.onetty.serve$/{print $1}')"

Expected: one line on 127.0.0.1.

Outbound HTTPS to onetty.app, hub.onetty.app and the package host (storage.googleapis.com today). Nothing inbound.

Check that it works

onetty agent status    # connected to the hub?
onetty setup --check   # service, hooks, updates

onetty serve --host (direct mode) does listen beyond localhost; it’s not what this page describes.

Updates

On by default: it checks every 15 minutes and rolls back if an update fails. Updates aren’t signed yet. To turn them off:

systemctl --user disable --now onetty-update.timer       # Linux
launchctl bootout gui/$(id -u)/app.onetty.update         # macOS

Uninstall

onetty hooks uninstall
onetty wrap uninstall
systemctl --user disable --now onetty onetty-update.timer
rm -rf ~/.local/share/onetty ~/.local/bin/onetty ~/.config/onetty
onetty hooks uninstall
onetty wrap uninstall
launchctl bootout gui/$(id -u)/app.onetty.serve
launchctl bootout gui/$(id -u)/app.onetty.update
rm -f ~/Library/LaunchAgents/app.onetty.*.plist
rm -rf ~/.local/share/onetty ~/.local/bin/onetty ~/.config/onetty

Then remove the server from your team in the app.

Common problems

“falta curl” or “falta tar” (curl or tar is missing; the installer speaks Spanish today)
Install them with your distro’s package manager (the commands are under Requirements) and paste your line again.
Sessions die when you log out
Linger is off. Run sudo loginctl enable-linger $USER once.
The Mac went to sleep
Agents stop when the Mac sleeps. Turn on Prevent automatic sleeping and keep your user logged in.
Behind a proxy
The installer’s curl honors HTTPS_PROXY, but the agent service doesn’t go through a proxy yet: it needs direct outbound HTTPS to hub.onetty.app. If you need a proxy, tell us.
Token expired or used twice
A token works once, for one hour. Open the app and get a fresh line.

Stuck? Tell us, with the output of onetty setup --check.

¿Preferís castellano? Ver en castellano →