Run coding agents on a Linux server and follow them from your phone
A server is a good home for an agent: it is always on. What it lacks is a way to answer the agent without an SSH session. Agents At Work gives it one.
The short answer
One command installs the open-source engine on the server and prints a QR code. Scan it with the phone app. After that, an agent you start on the server stays connected to your phone when you close the SSH window or log out. You read what it does, approve its commands and send it prompts from the phone.
What you need
- A Linux machine you can reach once over SSH: a VPS, a home server, a desktop.
- Python 3.11 or later and tmux 3.2 or later. The installer checks both and tells you what is missing.
- A normal user. The engine does not run as root.
- A coding agent installed on the server: Claude Code, Codex CLI, Gemini CLI, Grok, Cursor, or Scoot.
- A phone or tablet: iPhone, iPad or Android.
The server needs outbound internet only. Nothing listens for incoming connections, so there is no port to open.
Set it up
Install and pair:
curl -fsSL https://agentsatwork.app/install-linux.sh | bash
The installer sets up the engine from PyPI, starts its background service, and prints a QR code in the terminal. Open the phone app, tap Scan QR Code and scan it. Run aaw link any time for a fresh code.
Start an agent:
cd ~/projects/my-app && claude # as you would anyway
aaw start ~/projects/my-app --agent codex # or name the agent
Your terminal is attached to the agent's tmux session. Detach with Ctrl-b then d, or simply close the SSH window. The session keeps running.
Day to day
- From the phone: read the conversation, approve commands, send prompts, schedule a prompt for later, start a new session on a folder, stop one.
aaw statuslists the sessions, and says when a newer engine is out.aaw feed my-appshows a session's conversation in the terminal.aaw schedule my-app --at 10pm "run the deploy"queues a prompt.aaw stop my-appstops one session; the others keep running.
Privacy and self-hosting
Prompts, answers and file paths are encrypted on the server with a key that reaches your phone only through the QR code. The relay between them carries ciphertext. The engine and the relay are open source, and you can run the relay yourself.
Good to know
- A Mac can run headless the same way: a Mac mini or a Mac server with nobody at the screen. The headless Mac setup covers it.
- RHEL 10 and its rebuilds ship a tmux that does not work for this; the tutorial's Linux section has the fix.
- One computer is free. A second and third server need the Personal plan, unless they use a relay you host yourself.