Atuin
Active and stableRuns locally ✓No paid APIA smarter shell history that stores commands with local context, adds interactive search, and offers optional encrypted sync across machines.
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | shIdeal use for this tool
Best for developers and operators who move between projects or machines and need to recover a previous command from context. It works locally without an account, with optional encrypted or self-hosted sync. It should not replace a script or runbook for a critical repeatable operation.
Details and illustrated features
You remember running a command that worked last week, but only a fragment of it. A traditional shell history is a sequence of lines; it often cannot tell you where a command ran, whether it succeeded, how long it took, or which machine produced it. Atuin replaces limited shell-history lookup with a local SQLite database that stores commands with context. You can search it interactively, keep it entirely on-device, or optionally sync it with end-to-end encryption. Its practical value is finding the right command from its context and reviewing it before reuse instead of rebuilding it from memory.
🧭 What is Atuin and how does it work?
Atuin is an open-source Rust tool that integrates with your shell and captures interactive commands after they run. It stores the command, working directory, exit code, duration, host, and session locally, then opens a terminal search interface through Ctrl+R or the up arrow, depending on configuration. No account is required for local recording and search.
Sync is optional. You can use Atuin's hosted server or your own server, and the client encrypts history before upload. That does not make every command automatically safe to retain: command lines can contain secrets, the encryption key needs a separate backup, and secret filters are best-effort rather than a guarantee.

Original explanatory diagram, not an Atuin product screenshot.
🎯 How does it help you?
Atuin suits a developer or operator who moves between projects and machines and reuses long Docker, Git, or kubectl commands. Instead of searching a flat history file with one word and trying ambiguous matches, you can narrow results by project, host, success, or duration. When you find one, use Tab to place it on the command line and edit it before execution rather than running it without review.
The added value is a history you can retrieve and understand, not merely a larger archive. Atuin does not document why a command was run, prove that it is safe now, or replace a runbook or script for repeatable operations. A command that succeeded in one environment can be wrong or dangerous in another.
🌟 Key features and capabilities
1. Context-rich search instead of text matching alone
Atuin records fields such as working directory, exit code, duration, host, and session. In the search interface, you type part of a command and navigate results; current documentation also describes query syntax and contextual filters.
- Where: press
Ctrl+Rafter enabling shell integration. - How: type a distinctive term, inspect the directory, host, and outcome, then press
Tabto edit orEnterto run. - Illustrative example: searching for
docker composewithin one project narrows the result more effectively than reading a global history. - Watch out: an old result is not a recommendation. Check its path and options first.

The diagram summarizes documented fields and contains no real user's history.
2. Import old history without deleting the shell file
Atuin starts recording new commands after installation. Run atuin import auto to detect the shell and import earlier history. The documentation says the original history file stays untouched and the shell keeps writing to it, allowing a gradual transition.
- Where: the
atuin importcommand. - How: back up important history files, run automatic import, and sample the results.
- Value: old commands become searchable through the same interface.
- Watch out: an old text history may not contain duration, directory, or exit-code context, so import cannot recreate information that was never recorded.

3. Optional encrypted sync between machines
You can remain local, register for hosted sync, or operate atuin-server. Registration generates an encryption key required on another machine. The current sync protocol uses envelope encryption for records, but losing the key means the Atuin team cannot recover readable history for you.
- Where:
atuin register,atuin sync, andsync_addressfor a self-hosted server. - How: save the value from
atuin keyin a password manager before adding a second machine. - Limit: sync needs a network and an account or server; local history does not.
- Security: omit password and key command-line flags when interactive stdin entry is available.

An explanatory view of end-to-end encryption, not a complete network protocol diagram.
4. Filters that keep sensitive commands out of history
history_filter excludes commands by regular expression, cwd_filter excludes directories, and secrets_filter applies built-in rules for common secret patterns. Recent releases also have command-output controls. Filters affect new recording; changing a setting does not automatically erase old entries.
- Where:
~/.atuin/config.toml, or the location selected throughATUIN_HOME. - How: add patterns for your organization's sensitive commands and directories, then test with dummy data.
- Illustrative example: exclude an internal command that passes a token as an argument and a local secrets directory.
- Watch out: detection can miss unknown formats. Prefer stdin or a protected secret file instead of command-line secrets.

5. Simple local use with a self-hosting path
The basic mode stores history in local SQLite and needs no account. For self-hosting, the project distributes atuin-server and a container image. PostgreSQL and SQLite are tier-one databases, while MySQL support is community tier two. Self-hosting adds patching, backup, TLS, and database-access responsibilities.
- Start local: leave sync off until you understand what you retain.
- Add sync later: choose the hosted service or a small server according to policy.
- Keep the distinction clear: the local client is lightweight; a production sync server is a separate operational service.

6. Several shells and operating systems, with different support tiers
zsh, bash, and fish are tier one for search, inline popup, and current Atuin features. nushell, xonsh, and PowerShell have community-tier search support, but not every feature is present. Official packages cover macOS, Linux, and Windows, and the release page provides builds for multiple architectures.
Do not assume feature parity merely because installation succeeds. Check the support matrix for your version, especially with PowerShell, less common shells, pty-proxy, or Atuin AI.
🪜 Illustrative workflow: safely recover an old deployment command
Illustrative example, not executed on a real machine: you work across three repositories and previously ran a long Kubernetes rollout check.
- Install Atuin from a trusted package or review the official install script before running it, then restart the shell.
- Press
Ctrl+Rand confirm that new commands show a working directory and exit code. - Run
atuin import autoif you want old history, then inspect results rather than assuming complete context. - Search for
kubectl rolloutand narrow by directory or host. - Press
Tabto place the command on the prompt, then review the namespace, resource name, and current context. - Add
history_filterrules for secret-bearing commands in your environment and test with dummy values. - If you need history on another machine, enable sync and back up the encryption key somewhere separate.

⚖️ What changes compared with manual shell history?
| Task | Traditional shell history | With Atuin |
|---|---|---|
| Find a command | Limited text search | Text plus directory, outcome, duration, host, and session |
| Judge a result | A line with little context | Context helps select the relevant result |
| Move to another machine | Copy files manually | Optional encrypted sync or a self-hosted server |
| Protect history | Shell-specific rules | Configurable history, directory, and secret filters |
| Reuse | Quick execution can be wrong | Put the command on the prompt and edit it first |
This compares workflows; it is not a measured time-saving claim or a security guarantee.
⚙️ Important configuration
The current default config file is ~/.atuin/config.toml; ATUIN_HOME can move the root. Review these settings first:
search_modeandfilter_modefor search behavior and scope.history_filterandcwd_filterto prevent recording in sensitive cases.secrets_filter, documented as enabled by default.- Sync settings and server address if you self-host.
- Daemon, pty-proxy, and output-capture options. Do not enable output capture before reading its privacy and filtering behavior.
🚀 Installation and first run
The stable version checked here is 18.24.6, released on 10 November 2026. The official quick-start command is:
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
This downloads and executes a script; review it first if your policy disallows curl | sh. Documented alternatives include Homebrew, package managers, and release artifacts with checksums and GitHub artifact attestations. Restart the shell, then press Ctrl+R. To import:
atuin import auto
I did not run installation or import during this verification.
🔗 Integrations and compatibility
Atuin integrates directly with bash, zsh, and fish and supports nushell, xonsh, and PowerShell with different coverage. Sync uses Atuin's service or atuin-server. Recent builds can capture sessions from some coding agents, but this card focuses on stable shell history; agent support changes quickly and should not be assumed equal for every host.
💰 Cost and local operation
The client and server use the MIT license, and local history search can run at no software charge. The official site says Atuin is free and offers hosted or self-hosted sync; it also says Atuin AI is free during testing at the time checked, so AI pricing may change. No paid API is required for command history and local search. Self-hosting can still incur server, database, and maintenance costs.
⚠️ Limitations and when not to use it
- Do not use history as a substitute for a script or runbook for a critical repeatable operation.
- Encryption does not stop a secret from being recorded locally before encryption.
- Losing the sync key can make encrypted history unrecoverable.
- Import cannot recreate context the old shell never stored.
- Features differ by shell, and some newer capabilities are changing quickly.
- A self-hosted server adds database, TLS, backup, and update responsibilities.
🔐 Security and permissions
Atuin reads shell commands, writes a local database and config, and adds shell integration. Sync adds a network connection. If you enable AI or output capture, review what can be stored or sent before using it in a sensitive environment. Protect the Atuin directory with user-only permissions, never share the key, and keep a backup in a separate secret manager.
Built-in filters cover common patterns but are not a guaranteed boundary. Enter passwords and keys through stdin or a secret manager instead of command arguments, exclude sensitive commands and directories, and inspect history before first sync. For a self-hosted server, keep open registration off unless required and do not expose it without TLS and suitable access controls.
📚 Sources and verification date
Checked on 12 November 2026 against the original repository, getting-started guide, support matrix, privacy and filter configuration, sync reference, self-hosting guide, and release 18.24.6. GitHub showed approximately 32.3K stars and 1K forks at the time; these are changing popularity counts, not quality ratings. Installation, sync, and the example were not executed, and future AI pricing after the testing period was not verified.