Install
Atrium is one binary, atrium. Get started is the first run: install, start, wire the hooks
and put a repository on the board. This page is the reference behind it.
Whichever account runs the room, it runs as that user, in that user's session, never as a system service. The agents it starts need that account's PATH, shell configuration and runner settings, and a system service has none of them. This is why atrium starts from a user unit, a LaunchAgent or a logon task.
Install script options
install.sh takes them after sh -s --, and install.ps1 as parameters of a saved copy.
install.sh | install.ps1 | Meaning |
|---|---|---|
--dir D | -Dir D | Install into D instead of ~/.atrium/bin. |
--version V | -Version V | A release tag such as v0.0.5, instead of the latest. |
--addr A | -Addr A | The board address. By default 127.0.0.1:7778, or the next free ports when it is held. |
--no-path | -NoPath | Leave PATH alone. |
--no-start | -NoStart | Install only. |
-- ARGS | -RunArgs ARGS | Extra arguments for atrium run. |
You need nothing but curl and tar (macOS, Linux) or PowerShell 5.1 or newer (Windows). To update, run the line
again. Stop atrium first (atrium stop) on Windows, because a running atrium.exe cannot be replaced.
Build from source
You need Go at the version go.mod names, and git.
git clone https://github.com/dovholuknf/atrium
cd atrium
go build -o build.claude/ ./cmd/atrium
Copy build.claude/atrium (atrium.exe on Windows) somewhere it can stay, such as ~/.atrium/bin, and put that
folder on your PATH.
Hooks, the logon task and the self-restart all name a path to the binary. A path inside your build folder is rewritten by every build, so anything that points there goes stale the next time you build. Install the binary somewhere it can stay, and run it from there.
atrium daemon still starts the older single process, with the board and the agents together and no hub.
Start at login
The service scripts in scripts/ register this machine's room to start when its account logs in. Run them as
the account that runs the room, localai in the recommended setup, never elevated. Pass the installed path to the
binary.
- Linux
- macOS
- Windows
ATRIUM_SERVICE_VERB=room ATRIUM_EXE=$HOME/.atrium/bin/atrium scripts/atrium-service.sh install
systemctl --user status atrium
This writes a systemd user unit. ATRIUM_LINGER=1 keeps it running after the account logs out, so a
localai room needs nobody logged in as localai.
ATRIUM_SERVICE_VERB=room ATRIUM_EXE=$HOME/.atrium/bin/atrium scripts/atrium-service.sh install
This writes a LaunchAgent, never a LaunchDaemon, so the room starts when its account logs in to the desktop. Over a headless ssh session it cannot load yet, and the script says so and exits cleanly.
.\scripts\atrium-service.ps1 install -Verb room -Exe "$HOME\.atrium\bin\atrium.exe"
.\scripts\atrium-service.ps1 status
Atrium starts from a logon task. It runs as the account that installed it, in that account's session, with no stored password and no elevation. It restarts on failure and survives a reboot. It stops when that account logs out, because Windows has no equivalent of lingering. A Windows service would run in session 0, where it cannot open a terminal you can attach to.
The scripts take install, uninstall, start, stop, restart and status, and the Windows one selftest
as well. Their stop calls
atrium stop first, so your agents wind down instead of dying at once. Without the room verb they register
atrium daemon, the single process.
The scripts start the room, not the hub. Start the hub as yourself when you want the board, with
atrium run --no-room when the room runs as localai. A plain atrium run finds a room of yours already running
and leaves it alone. The hub holds no work, so starting and stopping it costs your agents nothing.
Packages
The repository can build a deb, an rpm, a macOS pkg and a Windows MSI beside the plain archive per platform that the
install script uses. docs/release/packaging.md covers what each one installs.
Check it
atrium version
Then open http://127.0.0.1:7778. If nothing answers, Get started has the line.
One database
Pass --db if you ever start a room by hand from more than one shell. Without it, which database atrium opens
depends on WORKTREE_ROOT in the shell it started from, and opening a different one looks exactly like your board
losing everything. Atrium warns loudly when the database is not the one it opened last time.