Atuin replaces your shell history with a SQLite database that records exit codes, working directories, hostnames, and command durations. It provides a Ctrl+R search UI and CLI for finding any command across all your machines. It also captures AI agent sessions (Claude Code, Codex, OpenCode) as threads that can be resumed on different machines or harnesses, with an optional MCP server for agent access. Sync is end-to-end encrypted via Atuin Hub or a self-hosted server, and works offline.
Install & use
Install
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
Usage
atuin search --exit 0 --after "yesterday 3pm" make
atuinsh/atuin is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.
Features
SQLite-based shell history with exit codes, directories, hosts, durations
Ctrl+R interactive search UI and CLI search (atuin search)
End-to-end encrypted sync across machines via Atuin Hub or self-hosted server
Agent thread capture for Claude Code, Codex, OpenCode with cross-machine resume
Built-in MCP server for agent access to history and threads
Supports zsh, bash, fish, nushell, xonsh, and PowerShell
Best for
Searching and filtering shell history across multiple machines
Syncing terminal history securely between devices
Resuming AI agent sessions on different machines or harnesses
Giving AI agents context from your full terminal history