Use case

Give your coding agents a memory

Every agent session starts from zero. Atuin Threads records every prompt, reply and tool call from your coding agents alongside every command run in your shell, into one local SQLite database. Search it from the terminal or over MCP, and sync it end-to-end encrypted across every machine.

install.sh
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
atuin threads search — desktop
$ atuin threads search "migration sandbox"
ID HARNESS UPDATED MATCH
5d02b9f4 claude-code 2h ago Fix the flaky migration test
42 msgs · ~/src/hub · fix/flaky-migrations
later, in Codex via MCP
atuin_threads_search {"query": "flaky migration"}
hit 5d02b9f4 · claude-code · desktop · 2h ago
atuin_history {"query": "mix ecto.migrate", "filter_modes": ["workspace"]}
exit 0 · 2s · ~/src/hub · claude-code

Every prompt, tool call and command in one local database

Atuin records both layers of what happens on a developer machine: coding-agent transcripts through Atuin Threads, and shell commands through Atuin's shell hooks. Both live in indexed SQLite databases on your machine with no history retention limits (large individual tool payloads in Threads are clipped around 64 KiB so one command dump can't bloat the store).

Need to pick up where an earlier session stopped? Run atuin resume. Just want your current agent to look up what an earlier session learned? Connect the built-in MCP server.

How it works
  1. 01

    Prompts and tool calls captured automatically

    Atuin Threads watches your local coding agents (Claude Code, Codex, opencode, Copilot CLI, Grok Build, Hermes Agent, Kiro, Pi, oh-my-pi, Mistral Vibe and Amp) and indexes every prompt, reply and tool call into SQLite.

  2. 02

    Shell commands recorded with full context

    Anything you or an agent runs in a shell is recorded with its exit code, working directory, duration, hostname and author. Filter to commands that actually worked with atuin search --cwd . --exit 0, or separate human and agent activity with --author.

  3. 03

    Searchable in the terminal or over MCP

    Run atuin threads search yourself, or connect atuin mcp so any MCP-compatible agent can search your past threads, read transcripts, and inspect shell history and command output directly.

Search past sessions over MCP

Atuin ships a local stdio MCP server (atuin mcp) that exposes your shell history and captured threads as structured tools. Run atuin setup to connect it to every coding agent installed on your machine.

Once connected, an agent can check what a previous Claude Code or Codex session tried on another machine before touching a file, without you copying transcripts or resuming the old session.

Want to pick up a session on another machine or in a different agent? Read the resume agent sessions guide.

Built-in MCP tools
  1. 01

    atuin_threads_search & atuin_threads_read

    Full-text search across every captured prompt, reply and tool call, then read matching turns and subagents in context.

  2. 02

    atuin_threads_list

    List recent coding-agent sessions filtered by harness, working directory or activity time.

  3. 03

    atuin_history & atuin_output_search

    Query shell commands by directory, exit code or author, and search captured terminal output when debugging failures.

Where your data lives

Atuin is local-first, written in Rust, and backed by indexed SQLite databases on your machine that handle millions of records without expiring old history.

Sync is optional. When enabled, both shell history and Atuin Threads are encrypted client-side before upload with a key that never leaves your devices, so the sync server stores only ciphertext. Use Atuin's free hosted sync service or self-host the open-source sync server on your own infrastructure. Threads for teams (beta) is opt-in and shares selected workspace threads with your organization on the web and over MCP.

Atuin vs shell defaults and local transcripts
With AtuinDefault files
Agent prompts & tool calls ✓Indexed in SQLite across 11 coding agents, searchable via CLI and MCP —Scattered per-agent JSONL or SQLite files on one machine
Retention ✓Kept indefinitely; survives Claude Code's 30-day transcript cleanup —Truncated history files and auto-expired transcripts
Shell command context ✓Exit code, directory, duration, host and author (--exit 0, --author) —Raw command text, often missing agent-run commands
Cross-machine sync ✓End-to-end encrypted, hosted or self-hosted, works offline —None
Session resume & handoff ✓atuin resume restores transcripts on another machine or continues in another agent —Native resume only works on the same machine in the same agent

Set up once, works for every agent

Run atuin setup to turn on Threads capture, the MCP server, agent shell hooks and optional sync for every coding agent installed on your machine. New to Atuin? Use the install command above — it runs atuin setup for you.

sh
atuin setup

See the agent hooks guide or the Threads docs for configuration options.

Frequently asked questions

FAQ
How do agents search past prompts and shell commands in Atuin?

Connect Atuin's built-in MCP server with atuin setup. Agents get native tools to search past threads (atuin_threads_search, atuin_threads_read) and shell history (atuin_history, atuin_output_search). Any agent with shell access can also run atuin search and atuin threads search directly.

Which coding agents does Atuin support?

Atuin Threads captures and resumes sessions from Claude Code, Codex, opencode, GitHub Copilot CLI, Grok Build, Hermes Agent, Kiro, Pi, oh-my-pi, Mistral Vibe and Amp. See the full per-agent matrix for resume, fork and continue-in details. For shell history, any agent that runs commands through your shell can also search Atuin.

How is Atuin different from Langfuse, LangSmith or Arize Phoenix?

Those platforms trace deployed LLM applications in production (API spans, evals, dashboards). Atuin is built for developer machines: recording local coding-agent sessions and shell history into SQLite, syncing them end-to-end encrypted, and resuming sessions across machines or agents.

Can I tell agent commands apart from my own?

Yes. Every shell history record notes its author. Interactive ctrl-r search hides agent-run commands by default so your own search stays clean, and you or your agent can filter specifically with atuin search --author.

Is my history or transcript data sent to an AI provider?

No. Both shell history and Atuin Threads live in SQLite databases on your machine, and sync is end-to-end encrypted so the server stores only ciphertext. Data only reaches a model when an agent you run queries it locally in your session.

Can I stop agents being recorded, or exclude sensitive commands?

Yes. Threads capture is opt-in, agent hooks can be uninstalled per harness, and shell patterns matching history_filter are excluded from the database entirely.

Won't agent sessions and commands make my database huge?

Both shell history and Threads live in indexed local SQLite databases built to handle millions of records without expiring old history (large individual tool payloads in Threads are clipped around 64 KiB), so search stays instant.