Atuin

•
33k
•

Capture, search, sync, and resume shell history and AI agent sessions across multiple machines.

Atuin enhances your terminal by replacing traditional shell history with an encrypted SQLite database that tracks rich execution metadata, including exit codes, directories, hostnames, and durations. Beyond standard interactive shell history, Atuin integrates seamlessly with modern development workflows by recording AI agent threads from tools like Claude Code and Codex, allowing developers to switch environments and resume sessions across different machines. With a built-in Model Context Protocol (MCP) server, it grants AI agents direct context over historical terminal interactions and previous task threads, all backed by optional end-to-end encrypted synchronization.

Key Features

01Context-rich shell history capturing exit codes, directories, durations, and hostnames in SQLite
02Interactive terminal UI and powerful CLI search with flexible filtering by exit code, time, and command
0332,847 GitHub stars
04AI agent thread persistence and cross-machine session resumption for harnesses like Claude Code and Codex
05Built-in MCP server enabling AI agents to search command history and session context
06End-to-end encrypted sync across multiple machines with support for self-hosting or offline operation

Use Cases

01Quickly locating and re-executing past complex terminal commands across multiple machines and shells
02Handing off in-progress AI coding agent sessions from a local workstation to a remote server
03Providing AI coding assistants with terminal execution history and context through the Model Context Protocol