Self-host Atuin
v18.24.8Magical shell history search with encrypted sync
docker run -d -v "$CONFIG:/config" ghcr.io/atuinsh/atuin:<LATEST TAGGED RELEASE> start- Stars
- 32 346
- Port
- 8888 (atuin-server sync API HTTP port)
ghcr.io/atuinsh/atuinWhat 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
skiffSkiff is a self-hosted, open-source SSH manager with searchable command memory, persistent sessions, and encrypted vault. Runs via Docker or Node.js with SQLite.Compareskiff with Atuin
AizenAizen is a self-hosted AI coding agent as a single 34 MB Rust binary. Connects to any OpenAI-compatible endpoint, reads/edits code, runs tests, verifies work.CompareAizen with Atuin
OliveTinOliveTin turns shell commands into safe web buttons. Lightweight open-source tool for home labs and admins needing simple command execution without SSH access.CompareOliveTin with Atuin
mainSelf-hosted pastebin alternative with browser encryption, VS Code–like editor, file sharing, whiteboard drawings, and peer connections.Comparemain with Atuin
winktermSelf-hosted AI terminal where an LLM writes commands directly into your PTY. Supports SSH, file transfer, BYO LLM, Docker and desktop apps.Comparewinkterm with Atuin
UniSSHCross-platform SSH client with encrypted vaults that run locally. Optional self-hosted sync server for multi-device and team sharing. Built with Rust and Tauri.CompareUniSSH with Atuin
AttuneAttune is a self-hosted, open-source tool for publishing APT repositories with local GPG signing, incremental index rebuilds, and S3-compatible storage.CompareAttune with Atuin
BukuAn open-source, self-hosted command-line bookmark manager with encrypted portable databases, browser import, and an optional Bukuserver web UI with REST API.CompareBuku with Atuin
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
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.
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.
- rebind
ctrl-randup(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
Atuin supports zsh, bash, fish, nushell, xonsh, and PowerShell. See Supported platforms for the full matrix and what each tier means.
Atuin has a community forum, please ask here for help and support: https://forum.atuin.sh/
We're also available via #atuin on libera.chat
Atuin also has a community Discord, available here
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.
Please open a PR for any others!
Made with contrib.rocks.
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
AxeOpen-source, self-hosted CLI that runs focused AI agents defined in TOML files, triggered from pipes, cron, or git hooks, with local Ollama or cloud LLM providers.
bbarit-ossA terminal AI coding agent distributed as one Rust binary with 15+ LLM providers and 1,000+ models — a self-hosted alternative to Claude Code.
BubBub is a self-hosted, open-source agent runtime for developers to build and customize AI agents with a plugin system, tape-based context, and channel-agnostic design.
ClaudePantheonSelf-hosted Docker app running persistent Claude Code in a browser with web terminal, file manager, WebDAV, and MCP integrations via a single port.
crawliecrawlie is a self-hosted, open-source technical SEO and GEO crawler with 57+ checks. Runs locally via CLI, MCP server, or Tauri desktop app.
ctxctx is a self-hosted, open-source CLI tool for managing AI coding agent conversations with workstreams, transcript binding, and local SQLite storage.
Deadend CLIDeadend CLI is a self-hosted, open-source CLI for autonomous web app pentesting using feedback-driven AI with any LiteLLM model, achieving ~80% on XBOW.
EntrolyEntroly is a self-hosted, open-source tool that reduces AI token usage by picking relevant code evidence within a budget and providing auditable receipts.
ffmpeg-over-ipOpen-source, self-hosted client and server that run GPU-accelerated ffmpeg on a remote machine and tunnel file I/O back, dropping GPU passthrough and NFS/SMB shares.
leatherleather is a self-hosted, open-source local agent runtime running declarative AI agents from a single zero-dependency Go binary.
ManagarrManagarr is a self-hosted, open-source terminal interface and CLI for managing Radarr, Sonarr, Lidarr, and Readarr from one unified tool.
MyCoderMyCoder is a self-hosted, open-source command-line AI agent for developers. Runs locally via npm, uses multiple AI providers, integrates with GitHub.


0 comments