Skip to main content

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.shinstall.ps1Meaning
--dir D-Dir DInstall into D instead of ~/.atrium/bin.
--version V-Version VA release tag such as v0.0.5, instead of the latest.
--addr A-Addr AThe board address. By default 127.0.0.1:7778, or the next free ports when it is held.
--no-path-NoPathLeave PATH alone.
--no-start-NoStartInstall only.
-- ARGS-RunArgs ARGSExtra 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.

Run the installed copy

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.

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.

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.