Sync and the Server
Outcome: you understand what Atuin's headline feature actually does — what leaves your machine, in what form, guarded by what key — well enough to decide about it with your eyes open. This is the guide's one documented-only chapter: the lab registered nothing, logged in nowhere, and synced nothing, on purpose. What follows is from the project's documentation and from the parts of the surface the lab could touch without an account, and it is labelled accordingly wherever it matters.
The shape of the thing
Sync answers the one-machine limit in
chapter 1: register an account with a
sync server (the project's own, at
api.atuin.sh by default, or one you
run yourself), and each machine's Atuin
exchanges its records with the server,
encrypted, so every machine can search
every machine's history. The filter
modes of chapter 7 are where this pays
off: HOST scope starts to mean "this
machine, as opposed to the others",
and GLOBAL becomes your whole life in
terminals.
The surface, as the lab photographed it
(transcript t09-sync-surface.txt):
$ atuin status
Error: You are not logged in to a sync server - cannot show sync status
$ atuin register --help
Register with the configured server
-u, --username <USERNAME>
-p, --password <PASSWORD> …
-e, --email <EMAIL>
Registration wants a username, an
email and a password — an account, on
a server, with the ordinary account
consequences. atuin login returns to
an existing account; atuin sync
forces an exchange (--force
re-downloads everything); with
auto_sync on, exchanges happen in the
background on an interval
(sync_frequency, default every five
minutes when commands run).
The encryption, stated carefully
The design's central promise is
end-to-end encryption: history is
encrypted on your machine, with the key
in ~/.atuin/data/key (chapter 9 — the
68-byte file the lab showed but never
read), and the server stores ciphertext
it cannot read. Moving to a new machine
means moving the key: atuin key
prints it so you can carry it across
yourself. Three honest corollaries:
- The key is the kingdom. Anyone who obtains it can decrypt the synced history. It deserves a password manager, not a sticky note, and it is the reason this guide prints no key, ever, not even a throwaway lab's.
- The password is not the key. Losing the account password is an inconvenience; losing the key is losing the synced past, by design — there is no recovery desk for mathematics.
- Metadata is not the payload. The promise covers the history content; a server still observes accounts, timing and volume, the way any server does. The documentation says what it says and no more, and neither does this chapter.
The self-hosted door
The server is a separate program
(atuin-server, its own release
tarballs), and pointing the client at
yours is one configuration line:
sync_address in config.toml. For a
reader with a home server and a
multi-machine life, that is the version
of this feature that keeps the diary in
the house. The lab did not run it —
doing it justice needs two machines and
an afternoon, and a chapter this guide
cannot verify is a chapter it will not
teach. The project's documentation
covers installation; the concepts
above (account, key, ciphertext) are
the same on either server.
This guide's position
Chapters 1–10 are complete without an account, and for a one-machine reader they are the whole tool. Sync earns its complexity when there are two or more machines whose pasts you genuinely want merged, and when you have decided — deliberately, not by default — who holds the ciphertext and who holds the key. If that day comes, register with chapter 1's rule in front of you, move the key like it matters, and re-run chapter 7's filters to feel GLOBAL change its meaning.