Skip to content
TTariq AlwalidiAI Developer Tools Directory
A

Atuin

Active and stableRuns locally ✓No paid API

A 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 | sh
💡

Ideal 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.

Diagram showing shell commands entering Atuin's local database, search, and optional sync
Diagram showing shell commands entering Atuin's local database, search, and optional sync

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+R after enabling shell integration.
  • How: type a distinctive term, inspect the directory, host, and outcome, then press Tab to edit or Enter to run.
  • Illustrative example: searching for docker compose within 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.
Diagram of Atuin search narrowing by text, directory, status, and host
Diagram of Atuin search narrowing by text, directory, status, and host

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 import command.
  • 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.
Diagram showing Bash, Zsh, and Fish histories imported into Atuin's local database
Diagram showing Bash, Zsh, and Fish histories imported into Atuin's local database

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, and sync_address for a self-hosted server.
  • How: save the value from atuin key in 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.
Diagram showing Atuin history encrypted on-device before reaching a sync server and second machine
Diagram showing Atuin history encrypted on-device before reaching a sync server and second machine

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 through ATUIN_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.
Diagram showing commands passing through history, directory, and secret filters before storage
Diagram showing commands passing through history, directory, and secret filters before storage

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.
Comparison of local-only Atuin, hosted sync, and self-hosted sync
Comparison of local-only Atuin, hosted sync, and self-hosted sync

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.

  1. Install Atuin from a trusted package or review the official install script before running it, then restart the shell.
  2. Press Ctrl+R and confirm that new commands show a working directory and exit code.
  3. Run atuin import auto if you want old history, then inspect results rather than assuming complete context.
  4. Search for kubectl rollout and narrow by directory or host.
  5. Press Tab to place the command on the prompt, then review the namespace, resource name, and current context.
  6. Add history_filter rules for secret-bearing commands in your environment and test with dummy values.
  7. If you need history on another machine, enable sync and back up the encryption key somewhere separate.
Diagram showing search, review, editing, and execution of an old command
Diagram showing search, review, editing, and execution of an old command

⚖️ What changes compared with manual shell history?

TaskTraditional shell historyWith Atuin
Find a commandLimited text searchText plus directory, outcome, duration, host, and session
Judge a resultA line with little contextContext helps select the relevant result
Move to another machineCopy files manuallyOptional encrypted sync or a self-hosted server
Protect historyShell-specific rulesConfigurable history, directory, and secret filters
ReuseQuick execution can be wrongPut 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_mode and filter_mode for search behavior and scope.
  • history_filter and cwd_filter to 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.