Skip to content

Installing Atuin

Outcome: atuin on your PATH, its data directory created, and a configuration that keeps the tool local until and unless you choose otherwise. Check: atuin --version answers, and atuin info shows paths under your own home (the lab's run is transcript t00-version-and-info.txt).

The ways in

Atuin offers several doors; pick the one that matches how you already keep your machine:

  • The official installer script — the project's homepage pipes a shell script from setup.atuin.sh that detects your platform and installs the release binary. Read any script before you run it, this one included; it is short and it is the project's own.
  • Your package manager — many distributions and Homebrew carry an atuin package. Convenient, and the usual trade applies: it may lag the newest release by a version or two.
  • The release tarball — the door this guide's lab used, because it leaves nothing behind outside one folder and the checksum can be verified before anything runs.

Whichever door you take, the shape of the result is the same: one binary, and on first run a ~/.atuin folder.

The lab's route, step by step

From the project's GitHub releases page (atuinsh/atuin), the lab took two files for version 18.24.2:

curl -sLO https://github.com/atuinsh/atuin/releases/download/v18.24.2/atuin-x86_64-unknown-linux-gnu.tar.gz
curl -sLO https://github.com/atuinsh/atuin/releases/download/v18.24.2/atuin-x86_64-unknown-linux-gnu.tar.gz.sha256
sha256sum -c atuin-x86_64-unknown-linux-gnu.tar.gz.sha256
atuin-x86_64-unknown-linux-gnu.tar.gz: OK

The tarball holds the binary plus its licence and changelog. Untar it somewhere on your PATH — the lab kept it in a scratch folder and added that folder to PATH; on your own machine ~/.local/bin is a good home:

tar xzf atuin-x86_64-unknown-linux-gnu.tar.gz
./atuin-x86_64-unknown-linux-gnu/atuin --version
atuin 18.24.2 (854654ec1ec6d13e0eb2468a6e57b2e2044a2162)

(Pick the aarch64 build instead on an ARM machine, and the apple-darwin builds on a Mac. Windows has its own installer; the shells chapter 4 speaks of are the Unix ones.)

The configuration that keeps it local

Out of the box, Atuin checks for its own updates and — if you register an account — syncs automatically. Until you have read chapter 11 and decided, both habits can be switched off. Create ~/.atuin/config.toml with:

auto_sync = false
update_check = false

Those are the only two lines this guide's lab used (kept in the repo as atuin-lab/config.toml), and every transcript in this guide was made under them. With no account registered, sync has nothing to do anyway — transcript t09-sync-surface.txt shows atuin status refusing precisely because the lab never logged in — but the switches make the intention explicit and keep it true if you experiment later.

Prove the install

atuin doctor

The doctor prints a diagnostics block in JSON: version and commit, the sync state (null when unregistered), the bundled SQLite version, whether the experimental daemon is enabled, your shell and its preexec plugin, and your system. The lab's full printout is transcript t01-doctor.txt; the lines to recognise are:

"version": "18.24.2",
"sync": null,
"sqlite_version": "3.46.0",
"daemon_enabled": false

You will not run the doctor often. Run it once now, so that the day you need it (chapter 15) its output is a familiar shape rather than one more surprise.

Next chapter: give the tool something to remember — your existing history, then your first recorded commands.