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?
~/.atuinProgram and data folderatuin setup adds an init line to your shell's config file (e.g. .zshrc); every command after that is recorded.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.
› curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | shIf you prefer a package manager, there are also brew install atuin, pacman -S atuin and cargo install atuin --locked; then run atuin setup.
› winget install -e Atuinsh.Atuin
atuin setupSetup adds the init line to both the PowerShell 7 and the Windows PowerShell profile. To install for all users, add --scope machine.
!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 do | What you get |
|---|---|
| Ctrl+R or the up arrow, then a few letters | Full-screen search; the command you pick goes into your shell |
| Pressing Ctrl+R again in the search window | The filter cycles: everywhere (default), this machine, this session, this folder, this repository |
| atuin import auto | This machine's old history file is imported |
| atuin search --exit 0 --after "yesterday 3pm" make | make commands that succeeded since yesterday afternoon (README example) |
| atuin output search connection refused | If 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.
› atuin setup --only --agent-historyPer 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.
› atuin setup --only --mcp› code --add-mcp '{"name":"atuin","command":"atuin","args":["mcp"]}'Tools: atuin_history, atuin_output, atuin_output_search, atuin_threads_search, atuin_threads_list, atuin_threads_read. Per the docs they are all read-only: they can't change or delete history, and the data stays on your machine. Manual setup examples for Cursor, Gemini CLI, Claude Desktop, Zed and Windsurf are in the docs.
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.
- Turn on capture:
atuin setup --only --threads --daemon - Import older sessions:
atuin threads import(running it again imports only what's new) - Search:
atuin threads search "flaky test" - 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-resumeto theatuin initline
| Threads (capture, search, resume)Yes | Part of the open-source release, opt-in; since 18.24 per the blog announcement. |
|---|---|
| Threads for teamsBeta | Opt-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.
› atuin setup --sync cloud› atuin keyOn the second machine you sign in with atuin account login; the key is asked for there too. To sync right away, atuin sync.
The sync server is open source too; you can run it on your own infrastructure and point the client at it. Setup details are in the "self-hosting" section of the docs.
!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, LinuxYes | Install script, Homebrew, pacman, Nix, MacPorts or cargo. |
|---|---|
| WindowsYes | With WinGet; PowerShell 7 and Windows PowerShell. |
| ShellsYes | Zsh, Bash, fish, Nushell, Xonsh, PowerShell |
| Turkish interfaceNo | The 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.
- 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)
- Assuming the software comes with a warranty: MIT provides it "as is"
Common stumbling points
| Situation | What the documentation says |
|---|---|
| The shell got slow | SQLite 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 search | Search 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 internet | The 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?
- Remove it from shells and agents:
atuin setup --only --no-shell-history --no-daemon --no-agent-history --no-mcp --no-threads - Delete the data: Delete the
~/.atuinfolder (and~/.config/atuin,~/.local/share/atuinleft by older versions). - Remove the package: If you installed with a package manager, remove it with that (e.g.
brew uninstall atuin). - Sync account: If you also want the server data deleted, run
atuin account deletebefore 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
- atuinsh/atuin (GitHub, README)
- Atuin docs: Getting Started
- Atuin docs: Installation
- Atuin docs: Sync
- Atuin docs: AI Agent Hooks
- Atuin docs: Capturing Command Output
- Atuin docs: Threads
- Atuin docs: MCP Server
- Atuin docs: Uninstalling
- Atuin docs: Known Issues
- Atuin for agents
- Atuin: Sync shell history across machines
- Atuin blog: Threads announcement (October 27, 2026)
- Releases (GitHub)
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.





