selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Atuin logo

Self-host Atuin

v18.24.8

Magical shell history search with encrypted sync

ReleaseOpen SourceMIT
docker run -d -v "$CONFIG:/config" ghcr.io/atuinsh/atuin:<LATEST TAGGED RELEASE> start
Updated7 hours ago
LanguageRust
Setup difficultyEasy
Stars
32 346
Port
8888 (atuin-server sync API HTTP port)
Docker
ghcr.io/atuinsh/atuin
Atuin screenshot 1

What is Atuin?

Atuin replaces your shell's plain history file with a SQLite database that records extra context for every command — exit code, working directory, hostname, session and duration — and adds a full-screen (or inline) search UI bound to ctrl-r and the up arrow. Search works in prefix, fulltext, fuzzy and daemon-backed modes, and results can be filtered to the current session, directory, host, workspace or globally. History import from existing shell files, command statistics, theming, secret-redaction filters and quick-jump key bindings round out the CLI side. Optional end-to-end encrypted sync keeps history identical across machines; you can use the hosted Atuin server or run your own atuin-server as a binary, Docker Compose stack or Kubernetes deployment against PostgreSQL, MySQL or SQLite, pointing clients at it with sync_address. A terminal-based AI assistant ships with the same install and is free while in testing. Install on Unix or Windows with the setup script, or grab prebuilt binaries for Linux, macOS and Windows.

Atuin alternatives

All self-hosted alternatives to Fzf → All self-hosted alternatives to Hishtory → All self-hosted alternatives to Mcfly →

Should you self-host Atuin?

Atuin scores 82/100 on selfhost.directory (how scoring works) and ranks #1 of 3 in CLI Tools. It has 32 346 GitHub stars, +385 in the last 30 days.

It shipped 26 stable releases in the past year. The latest, v18.24.8, came out on 13 November 2026. New versions land roughly every 6 days.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Rust.

Its closest alternative on selfhost.directory is twin (53/100, 1 074 stars). Atuin scores higher overall. See Atuin vs twin side by side.

Features

  • Background daemon
  • Colour themes
  • Command statistics
  • Context-rich history logging
  • Encrypted history sync across machines
  • Full-screen history search UI
  • Import existing shell history
  • Multiple search modes
  • Multi-shell support
  • Quick-jump and edit/run keys
  • Scoped history filtering
  • Secret redaction filters
  • Self-hosted sync server
  • SQLite-backed history store
  • Terminal AI assistantFree while in testing.

Atuin README

Text changing depending on mode. Light: 'So light!' Dark: 'So dark!'

magical shell history


Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands. Additionally, it provides optional and fully encrypted synchronisation of your history between machines, via an Atuin server.

animated

exit code, duration, time and command shown

As well as the search UI, it can do things like this:

# search for all successful `make` commands, recorded after 3pm yesterday
atuin search --exit 0 --after "yesterday 3pm" make

You may use either the server I host, or host your own! Or just don't use sync at all. As all history sync is encrypted, I couldn't access your data even if I wanted to. And I really don't want to.

Features

  • rebind ctrl-r and up (configurable) to a full screen history search UI
  • store shell history in a sqlite database
  • back up and sync encrypted shell history
  • the same history across terminals, across sessions, and across machines
  • log exit code, cwd, hostname, session, command duration, etc
  • calculate statistics such as "most used command"
  • old history file is not replaced
  • quick-jump to previous items with Alt-<num>
  • switch filter modes via ctrl-r; search history just from the current session, directory, or globally
  • enter to execute a command, tab to edit

Documentation

Supported platforms

Atuin supports zsh, bash, fish, nushell, xonsh, and PowerShell. See Supported platforms for the full matrix and what each tier means.

Community

Forum

Atuin has a community forum, please ask here for help and support: https://forum.atuin.sh/

IRC

We're also available via #atuin on libera.chat

Discord

Atuin also has a community Discord, available here

Quickstart

This will sign you up for the Atuin Cloud sync server. Everything is end-to-end encrypted, so your secrets are safe!

Read the docs for an offline setup, self-hosted server, and more.

curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh

atuin register -u <USERNAME> -e <EMAIL>
atuin import auto
atuin sync

Then restart your shell!

Note

For Bash users: The above sets up bash-preexec for necessary hooks, but bash-preexec has limitations. For details, please see the Bash section of the shell plugin documentation.

Related projects

Please open a PR for any others!

Contributors

Made with contrib.rocks.

How to install Atuin

Install Atuin with Docker

Environment variables
ATUIN_HOST, ATUIN_PORT, ATUIN_OPEN_REGISTRATION, ATUIN_DB_URI, RUST_LOG
CONFIG="$HOME/.config/atuin"
mkdir "$CONFIG"
chown 1000:1000 "$CONFIG"
docker run -d -v "$CONFIG:/config" ghcr.io/atuinsh/atuin:<LATEST TAGGED RELEASE> start

Self-hosted atuin-server image; docs also give a docker-compose.yml with a postgres:18 db service and ports 8888:8888, and an optional systemd unit to manage the compose service.

How to configure Atuin

  • host127.0.0.1server.toml: the host to listen on
  • port8888server.toml: the TCP port to listen on
  • open_registrationfalseserver.toml: if true, accept new user registrations

    values: true/false

  • db_uriserver.toml: a valid database URI, for saving history (required, no default)
  • pathserver.toml: a path to prepend to all routes of the server

Atuin releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

I'm not using sync — why is Atuin connecting to api.atuin.sh?

That is the update checker, which looks up the latest release at most once an hour and sends no history or personal data. Set update_check = false to disable it.

I've forgotten my password! How can I reset it?

There is no password reset system; if you are still logged in on at least one machine you can delete and re-create the account.

How do I delete my account?

Run atuin account delete, which removes your account and all history from the remote server but leaves local data untouched; it does not ask for confirmation.

How do I edit a command instead of running it immediately?

Press tab; enter executes by default. Setting enter_accept = false in the config makes enter edit instead.

How do I remove the default question mark binding for Atuin AI?

Add the --disable-ai flag to the atuin init line in your shell config.

How do I remove the default up arrow binding?

Add --disable-up-arrow to the atuin init line in your shell config, e.g. eval "$(atuin init zsh --disable-up-arrow)".

How do I exclude certain commands from my history?

Set history_filter regexes in ~/.config/atuin/config.toml; you can also exclude directories with cwd_filter or prefix a command with a space.

Why isn't Atuin recording commands in my IDE's terminal?

IDEs often start non-interactive shells that never source your shell config, so Atuin's hooks are not installed. Configure the IDE to launch an interactive shell, e.g. /bin/bash -i.

Can I self-host Atuin?

Yes, you can run your own sync server to keep control of the infrastructure and data.

How is my data protected?

History is encrypted on your machine before it syncs, so only you can read your commands.

Does Atuin slow down my shell?

No — it is written in Rust and is built to stay out of the way while making history search faster.

Can I use Atuin with my existing shell?

Yes, Atuin works with bash, zsh, fish and others without taking over your existing shell setup.

Is Atuin really free?

Yes — Atuin is open source, and you can either self-host the sync server or use the hosted service. Atuin AI is free while it is in testing.

More in CLI Tools

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…