Skip to content

Server setup

While we offer a public sync server, and cannot view your data (as it is encrypted), you may still wish to self host your own Atuin sync server.

The requirements to do so are pretty minimal! You need to be able to run a binary or docker container, and have a PostgreSQL database setup. Atuin requires PostgreSQL 14 or above.

Any host with the atuin binary may also run a server, by running

Terminal window
atuin server start


The config for the server is kept separate from the config for the client, even though they are the same binary. Server config can be found at ~/.config/atuin/server.toml.

It looks something like this:

host = ""
port = 8888
open_registration = true

Alternatively, configuration can also be provided with environment variables.

Terminal window
hostThe host to listen on (default:
portThe TCP port to listen on (default: 8888)
open_registrationIf true, accept new user registrations (default: false)
db_uriA valid PostgreSQL URI, for saving history (default: false)
pathA path to prepend to all routes of the server (default: false)


The server supports TLS through the [tls] section:

enable = true
cert_path = "/path/to/letsencrypt/live/fully.qualified.domain/fullchain.pem"
pkey_path = "/path/to/letsencrypt/live/fully.qualified.domain/privkey.pem"