/ateam:setup-vpsfrom ateam
Guides through provisioning a Linux VPS for Ateam agents: create non-root user, install Tailscale, close public SSH, and connect the desktop app.
Ships in ateam. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Takes a box from "just bought it" to "the desktop app's connection switcher lists it and agents run there". The mechanical half is one installer script; your job is the half that needs judgment and a human at a browser.
The connection is SSH over Tailscale — the box ends up
with no public ports at all. Reference docs: docs/online-ateam.md in this repo.
Ask the user what they have, and don't assume:
root. Agents must not
run as root — they get a login shell, git credentials, and a gh token.claude)? Each needs its own
interactive login there.Skip if they already have one. As root on the box:
adduser <user> && usermod -aG sudo <user>
install -d -m 700 -o <user> -g <user> /home/<user>/.ssh
cp ~/.ssh/authorized_keys /home/<user>/.ssh/ && chown <user>:<user> /home/<user>/.ssh/authorized_keys
Confirm ssh <user>@<box> works before going further.
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
tailscale ip -4 # note the 100.x.y.z address
Verify the tailnet address works from the Mac before firewalling — get an
ssh <user>@100.x.y.z in, then:
sudo ufw allow in on tailscale0 # everything, but only over the tailnet
sudo ufw deny 22 # nothing from the public internet
sudo ufw enable
Allow the whole tailscale0 interface, not a single port: ufw's default input
policy is DROP, so a port-22-only rule silently blocks the WebSocket port the iOS app
needs later.
Do these in this order or the user locks themselves out of their own server. If they
would rather not run Tailscale, everything else still works — but say plainly that
they are then choosing to leave SSH exposed to the internet, and key-only auth
(PasswordAuthentication no) becomes mandatory rather than advisable.
As the non-root user, on the box:
curl -fsSL https://raw.githubusercontent.com/clawnify/ateam/main/packages/server/scripts/install.sh | bash
The installer handles Node (installing Node 22 via nvm if the box has none or one too
new for the native-module prebuilds), the dist, the two native modules, the
~/.local/bin/ateam launcher, the login-shell PATH, and a real system:hello
handshake. It needs no sudo and is safe to re-run to upgrade.
It ends with a readiness report of what it deliberately does not do for the user. Work that list — it is the whole point of the next step.
Git identity — without it, every agent commit fails:
git config --global user.name "<name>"
git config --global user.email "<email>"
git config --global init.defaultBranch main
GitHub — Ateam's merge queue and PR flow shell out to gh:
gh auth login # device-code flow, works over SSH
Agent CLIs — install each one the user wants and log into it interactively over
SSH. Auth is a browser round-trip; it cannot be scripted, and an agent that isn't
logged in fails at first use, not at install. The daemon only advertises agents on
its login-shell PATH — check with ssh <box> "bash -lc 'command -v claude'", not
a plain ssh <box> "command -v claude".
Add the box to ~/.ssh/config using its tailnet address — the desktop lists
whatever it finds there:
Host <alias>
HostName 100.x.y.z
User <user>
IdentityFile ~/.ssh/<key>
Then in Ateam: the connection button (top-right, shows Local) → pick <alias>.
The board reloads with the box's projects and the button turns green.
All four, verified — not just "the installer printed OK":
ssh <alias> "bash -lc 'ateam'" prints the usage line.[ok].Anything short of 4 means it isn't set up — a green connection with no working agent is the common half-finished state.
If their agents need to browse (logins, web apps, testing a site), offer
packages/server/scripts/install-browser.sh, run as the same user on an x86_64 box.
It gives the box its own Chrome with TaskWindow's MCP tools and a noVNC view, which
the desktop app opens from the globe button on any task on the box (also at
http://<tailnet-ip>:6080/vnc.html). Done means its last steps report
"extension connected" and the MCP server registered. Have the user open the
Browser panel and log into the sites the agents will need; the profile is shared,
so once is enough. See "Optional: a browser for the box's agents" in docs/online-ateam.md.
| Symptom | Cause |
|---|---|
| Install fails on native modules | Node too new for the prebuilds. The installer falls back to Node 22 itself; if it still fails, the box is on an unsupported libc or arch. |
ateam not found over SSH, works when logged in | It's on the interactive PATH but not the login PATH. The installer edits the first of ~/.bash_profile, ~/.bash_login, ~/.profile that exists — check which one bash actually reads there. |
| Connect hangs | Tailscale down on one end (tailscale status on both), or the host key rotated after a box rebuild (ssh-keygen -R <ip>, then reconnect). |
| "Protocol mismatch" | Desktop and box are different versions — re-run the installer, or update the app. |
| Agent picker empty | No agent CLI on the login PATH, or the daemon was started from a non-login shell. |
| Commits fail | No git identity on the box (step 4). |
Same box, same daemon — the phone can't run ssh, so it uses a WebSocket. Opt-in,
off by default. Do this only when asked; it opens a port on the tailnet.
A phone needs the daemon already running — it can't start one the way the desktop does over SSH, since the WebSocket only exists once a daemon is up. So the phone path requires the service:
export ATEAM_WS_ADDR=<box-tailnet-ip>:8787
curl -fsSL https://raw.githubusercontent.com/clawnify/ateam/main/packages/server/scripts/install.sh | bash -s -- --service
The unit carries ATEAM_WS_ADDR. A wildcard bind is refused and the daemon exits —
the socket has no auth of its own, so the bind address must be the box's own 100.x.
Where passwordless sudo exists the installer writes a system unit; otherwise a
--user one kept alive by lingering. Prefer the system unit for any box a phone
uses: only it can set OOMScoreAdjust=-500, without which the kernel kills this
daemon before the far larger agents it supervises, and only the phone can't
recover from that on its own. Check which you have with systemctl status ateam
vs systemctl --user status ateam.
If a daemon is already running outside systemd the installer will not kill it; it prints the handover instead. Running agents survive it:
pkill -f 'ateam-app/cli.js daemon' && systemctl start ateam # --user for a user unit
systemctl restart ateam # the restart command from here on
Don't reach for pkill afterwards — systemctl --user restart is the supported
path, and the unit is KillMode=process so the detached PTY daemon holding live
agent sessions is deliberately left running across a restart.
On the phone: Tailscale from the App Store, signed into the same tailnet, VPN
toggle on. Then in Ateam Go enter the box's Tailscale IP and port 8787. Allow the
iOS Local Network prompt if it appears. (ateamgo://demo opens an offline demo — it
does not configure a connection.)
If the user asks whether they can skip the SSH steps and do the setup from the phone
instead: no, and say why. The phone has nothing to connect to until a daemon is
listening; the app adds a project only by browsing the box for an already-cloned repo
(projects.register throws NOT_A_REPO otherwise); and its terminal only exists
inside a task's worktree, so there's no shell to clone that first repo with. It's a
five-minute SSH session, once. Afterwards the phone's terminal is a login shell on
the box — re-auth, gh auth refresh and further clones are all fine from it.
Say both of these out loud, don't bury them:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub clawnify/ateam --plugin ateamOther plugins' skills for the same job