Skip to content

What Is Atuin? Shell History, Agent Sessions (Threads), MCP, Sync and Is It Free

You install Atuin, press Ctrl+R in the terminal and type "docker"; the long command you typed months ago comes up with the folder it ran in and how long it took. Atuin is an open-source (MIT) command-line tool that replaces your shell's plain history file with a local SQLite database. If you like, you sync that history across your computers, end-to-end encrypted. The Threads feature also records the sessions of Claude Code, Codex and other coding agents: you search an old session and resume it on another machine or in another agent. It is free, and hosted sync is free too.

What is Atuin?

An open-source (MIT) command-line tool that keeps your terminal command history in a local SQLite database, makes it searchable with Ctrl+R and, if you want, syncs it encrypted across computers. The Threads feature also records coding agent sessions.

How do you use Atuin with Claude Code?

atuin setup --only --agent-history adds the commands Claude Code runs to your history, atuin setup --only --mcp gives it MCP tools that search your history, and atuin setup --only --threads --daemon records its sessions.

Is Atuin free?

Yes. It is MIT-licensed and, per the official page, the hosted sync service is free too; you can also run the server yourself. The official page doesn't state a price for the beta team sharing feature.

What it does
Makes command history searchable; records and resumes agent sessions
For whom
Developers who work in the terminal and people who use coding agents
Where
macOS, Linux, Windows; Zsh, Bash, fish, Nushell, Xonsh, PowerShell
Latest release
18.25.1 (November 20, 2026)
Turkish
The interface is in English; Turkish commands and text can be searched
Price
Free (MIT); hosted sync is free

What is Atuin and what does it do?

Shells (Bash, Zsh) keep the commands you type in a plain text file: a limited number of lines, no date or folder information, and it doesn't move between computers. Atuin replaces that file with a local SQLite database. With every command it stores the exit code, duration, the folder it ran in, the session and the machine; Ctrl+R or the up arrow opens a full-screen search window. With agent hooks and Threads (Threads arrived in version 18.24, announced on 27.10.2026) coding agents were added to this: the commands agents run and their whole sessions can be searched in the same place.

Who it's for: developers, server admins and people who work with coding agents such as Claude Code and Codex, especially those who use more than one computer. Who it's not for: people who don't use the terminal; Atuin isn't a graphical app but a tool added to your shell.

The repository is atuinsh/atuin (the Atuin, Inc. organization), developed since 2020; on December 3, 2026 it had 32,810 stars and about 350 contributors. The Threads announcement on the Atuin blog is dated October 27, 2026 and says "starting with Atuin 18.24".

How does Atuin work?

It hooks into the shell~/.atuinProgram and data folderatuin setup adds an init line to your shell's config file (e.g. .zshrc); every command after that is recorded.
It writes to a local databaseThe command, folder, duration, exit code and machine go into SQLite; your old history file is imported and stays as it is.
You search with Ctrl+RThe search window opens with a filter for this folder, this session, this machine or everywhere.
It syncs if you wantRecords are encrypted on your machine before upload; the server holds only ciphertext.
The background daemon is needed only for features such as Threads and output capture; plain history search works without it.

How do you install Atuin? macOS, Linux and Windows

The official install script downloads the program and then runs atuin setup. Setup installs the shell plugin, imports your old history and asks whether you want to turn on sync; sync is optional. Reopen your shell after installing.

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

If you prefer a package manager, there are also brew install atuin, pacman -S atuin and cargo install atuin --locked; then run atuin setup.

The curl … | sh script runs what it downloads directly; you can open and read https://setup.atuin.sh first, or choose the package manager route.

How do you use Atuin? What you type and what you get

What you doWhat you get
Ctrl+R or the up arrow, then a few lettersFull-screen search; the command you pick goes into your shell
Pressing Ctrl+R again in the search windowThe filter cycles: everywhere (default), this machine, this session, this folder, this repository
atuin import autoThis machine's old history file is imported
atuin search --exit 0 --after "yesterday 3pm" makemake commands that succeeded since yesterday afternoon (README example)
atuin output search connection refusedIf output capture is on, the commands that printed this text

Saving command output is off by default; you turn it on with atuin setup --only --output-capture --daemon. When it is on, Ctrl+O in search shows what a command printed, with its colors. Output of full-screen programs such as vim and less, and commands typed with a leading space, aren't saved.

If you don't want a command recorded at all, put a space in front of it. For things you want to keep out permanently, the config file has history_filter and cwd_filter.

How do you use Atuin with Claude Code and other agents? Hooks and MCP

Atuin works with agents in two ways. Hooks: when an agent runs a command in the terminal, Atuin records it in your history under the agent's name; the search window shows only your own commands by default, and you list the agent's on the command line with atuin search --author '$all-agent'. MCP server: the agent searches your history, command output and past sessions. MCP (Model Context Protocol) is a common connection format that lets AI assistants call external tools.

Install hooks for every agent found on this machine› atuin setup --only --agent-history

Per the docs, supported agents are Claude Code (~/.claude/settings.json), Codex, Copilot, Grok Build, Hermes Agent, Kiro CLI, opencode, pi, omp and Amp. Only shell commands are recorded; tool calls such as file writes or web requests don't go through the hook. To pick specific agents, add --agents codex,claude-code.

Have the agent use your history"Find in my Atuin history the command I used to run the tests in this project last week, and run the same one."What you get: if MCP is connected, the agent searches that folder's commands with atuin_history and shows what it found. This is a sample prompt; read the command before you approve it.

What is Atuin Threads? Recording, searching and resuming agent sessions

A thread is a coding agent's session as Atuin recorded it: what you and the agent said, the input and output of tool calls, and the diffs of the edits the agent made. Capture is opt-in and needs the background daemon. Once on, sessions from Claude Code, Codex, Copilot, Grok Build, Hermes Agent, Kiro, Mistral Vibe, opencode, Pi and Amp go into the encrypted record store and sync like your history.

  1. Turn on capture: atuin setup --only --threads --daemon
  2. Import older sessions: atuin threads import (running it again imports only what's new)
  3. Search: atuin threads search "flaky test"
  4. Resume: atuin resume; you pick the session and open it in its own agent or in another one. No key opens it by default; to open it with Ctrl+T, add --bind-ai-resume to the atuin init line
Threads (capture, search, resume)YesPart of the open-source release, opt-in; since 18.24 per the blog announcement.
Threads for teamsBetaOpt-in; shares the workspace sessions you choose with your organization on the web and over MCP. The official page doesn't state a price.

Agent sessions can carry file contents and secrets such as keys: per the docs, Atuin replaces the secrets it recognizes with ****, never records credential files such as .env and SSH keys, and encrypts synced data before upload; a key in a format it doesn't recognize can still be recorded, and you set capture_tools = false under [threads] to stop recording tool output.

A tool call's input or output is clipped at 64 KiB; images aren't stored, and the model's reasoning is kept only as a marker. To turn capture off: atuin setup --only --no-threads.

How does Atuin sync work, and is it encrypted?

Sync is optional; if you don't turn it on, your history stays on that machine only and isn't backed up. If you do, records are encrypted on your machine before upload with a key that never leaves your devices; the server (Atuin's hosted one or your own) stores only ciphertext. Threads sessions sync the same way. By default it syncs once an hour.

Turn on sync by signing in through the browser› atuin setup --sync cloud
Show the encryption key (save it somewhere safe)› atuin key

On the second machine you sign in with atuin account login; the key is asked for there too. To sync right away, atuin sync.

If you lose the key, the encrypted history can't be recovered; don't share the key with anyone.

Where does Atuin run, and does it work in Turkish?

macOS, LinuxYesInstall script, Homebrew, pacman, Nix, MacPorts or cargo.
WindowsYesWith WinGet; PowerShell 7 and Windows PowerShell.
ShellsYesZsh, Bash, fish, Nushell, Xonsh, PowerShell
Turkish interfaceNoThe interface and docs are in English. Commands with Turkish characters and Turkish text in agent sessions can be searched.

Is Atuin free?

Atuin is free and MIT-licensed. The official pages describe the hosted sync service as free too; you can also run your own server. Only the beta Threads for teams feature has no price on the official page.

Allowed
  • Using it for personal and commercial work
  • Using hosted sync for free or running the server yourself
  • Modifying and distributing the code (keeping the MIT notice)
Not allowed
  • Assuming the software comes with a warranty: MIT provides it "as is"

Common stumbling points

SituationWhat the documentation says
The shell got slowSQLite has problems on some ZFS setups and on network file systems such as NFS; keep the data folder on a local disk.
The agent's commands don't show in searchSearch shows only your own commands by default; list the agent's with atuin search --author '$all-agent'. Amp, Kiro, opencode, pi and omp load hooks only on start, so restart them.
Atuin connects to the internetThe update check asks api.atuin.sh at most once an hour; turn it off with update_check = false in the config file.

How do you uninstall Atuin?

  1. Remove it from shells and agents: atuin setup --only --no-shell-history --no-daemon --no-agent-history --no-mcp --no-threads
  2. Delete the data: Delete the ~/.atuin folder (and ~/.config/atuin, ~/.local/share/atuin left by older versions).
  3. Remove the package: If you installed with a package manager, remove it with that (e.g. brew uninstall atuin).
  4. Sync account: If you also want the server data deleted, run atuin account delete before uninstalling.

Frequently asked questions

How do you install Atuin?

On macOS and Linux with the official script: curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh. On Windows, winget install -e Atuinsh.Atuin, then atuin setup. Then reopen your shell.

What is Atuin Threads, and is it in beta?

The feature that records the sessions of Claude Code, Codex and other agents, makes them searchable and lets you resume them on another machine or in another agent. It is opt-in in the open-source release; only team sharing (Threads for teams) is in beta.

Is Atuin sync secure?

Per the official docs, records are encrypted on your machine before upload with a key that never leaves your devices, and the server stores only ciphertext. If you lose the key (atuin key), the data can't be recovered.

Does Atuin work on Windows?

Yes. It installs with WinGet, and setup adds the init line to the PowerShell 7 and Windows PowerShell profiles.

Is Atuin available in Turkish?

The interface and docs are in English. Commands with Turkish characters and Turkish text in agent sessions can be searched.

Related guides

Sources

Not clear in the official sources: The price of Threads for teams and its terms after beta · the Atuin Hub plans on atuin.sh/pricing (the page text isn't published in a readable form). Each is covered in the relevant section along with what you can do.