atuin README

README проекта с github.com/atuinsh/atuin. Одним файлом markdown: README.md.

The Atuin turtle logo next to the word 'Atuin'

making your terminal magical


Atuin gives you, and your agents, a history of everything that happened in your terminal.

Shell history: Atuin replaces your shell history with a SQLite database that records exit codes, working directories, hosts and durations. Hit Ctrl+R and find any command you've ever run, on any machine.

Agent threads: Atuin captures your Claude Code, Codex, OpenCode and other agent sessions. Start a thread on your laptop, then atuin resume it on a different machine, in a different harness.

Your agents can, optionally, search everything that's ever happened through the built-in MCP server.

Atuin can also sync both history and threads across all of your machines, end-to-end encrypted. Or it can work totally offline!

Quick Start

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

Then, restart your shell.

History

Atuin captures everything you do in the terminal, storing it into a SQLite database. Hitting Ctrl+R opens a pretty pane with all your bash history. Atuin logs your exit codes, working directories, hostnames, command duration and much much more. You can hit Enter to execute a command, Tab to edit any highlighted command.

Searching shell history with ctrl-r, then picking a match

As well as the search UI, atuin has a CLI interface for searching commands:

# search for all successful `make` commands, recorded after 3pm yesterday
atuin search --exit 0 --after "yesterday 3pm" make

Finally, agents can search your history too, through our MCP.

Atuin supports Zsh, Bash, fish, Nushell, Xonsh and PowerShell.

Sync

Atuin can sync all your shell activity, across all your machines (even ephemeral ones). You can either use the official Atuin Hub or you can self-host the sync server. Everything it syncs is end-to-end encrypted.

Threads

Atuin captures what your agents do. Automatically move your context and thread history from one machine to another, or from one harness to another.

With Atuin Threads, your agent has access to your full history, and the built-in Atuin MCP gives your agent context on everything you've ever done.

You can take a session you started on your personal computer in Claude Code, and $ atuin resume it in a remote machine inside Codex.

A Claude Code thread on a laptop, resumed in Codex over ssh on another machine

Similarly to the history index, you can search through your threads:

atuin threads search 'c++'

[!TIP]

AI functionality is completely opt-in: atuin setup will ask you if you want threads support, or, if you want your binary to have zero AI features, disable the ai feature flag during compilation:

cargo install atuin --locked --no-default-features \
  --features client,sync,check-update,daemon,pty-proxy

Supported harnesses are Claude Code, Codex, Opencode, Copilot, Grok, Hermes, and many more.

Atuin does so much more and we have extensive documentation! If you ever need help, reach out to us through our communities.

Please open a PR for any others!

Community

Contributors

We are very grateful to all our contributors!

A grid of the profile pictures of Atuin contributors

Made with contrib.rocks.

atuin (atuinsh/atuin)

Ищем в базе…

32.7K ·GitHub
Что это такое?Atuin заменяет историю вашей командной оболочки на базу данных SQLite, записывает для каждой команды дополнительный контекст и добавляет полноэкранный интерактивный поиск — с опциональной полностью зашифрованной синхронизацией истории между машинами.
Это плагин внутри моей оболочки или отдельная программа?Это самостоятельный CLI на Rust, который встраивается в вашу оболочку: он переназначает ctrl-r и стрелку вверх (настраивается) на полноэкранный поиск по истории, при этом старый файл истории остаётся нетронутым.
Как его запустить?Установите бинарник atuin (в официальной документации по установке описана каждая платформа), затем выполните настройку для своей оболочки, чтобы ctrl-r и стрелка вверх открывали поиск Atuin. В документации есть разделы Quickstart, Import history и Basic usage.
С какими оболочками он работает?Поддерживаются zsh, bash, fish, nushell, xonsh и PowerShell, для каждой — свои хуки настройки; в документации есть полная таблица совместимости.
В bash всё работает так же?Не совсем: поддержка bash реализована через bash-preexec, который предоставляет нужные хуки, а у bash-preexec есть известные ограничения — в других оболочках интеграция более прямая.
Синхронизация вообще обязательна?Нет — можно пользоваться сервером автора, поднять свой или вовсе обойтись без синхронизации; в любом случае история хранится локально в SQLite.
Может ли сервер синхронизации прочитать мою историю?Нет. Вся синхронизация истории зашифрована, так что на сервере хранится только шифротекст — автор заявляет, что даже при желании не смог бы получить доступ к вашим данным.
Что записывается для каждой команды, кроме самой команды?Код возврата, рабочая директория, имя хоста, сессия, длительность и время — всё это логируется, а ещё на этих данных строятся статистики вроде «самой частой команды».
Что я могу сделать с найденным результатом в поиске?Нажмите Enter, чтобы выполнить команду, или Tab, чтобы сначала отредактировать её. Alt-backslash быстро перескакивает к предыдущим элементам, а ctrl-r переключает режимы фильтрации.
Можно искать только в текущей сессии или директории, а не везде?Да — ctrl-r переключает режимы фильтрации, поэтому поиск можно ограничить текущей сессией, текущей директорией или всей историей.
Не потеряю ли я свою существующую историю при переходе на Atuin?Нет — старый файл истории не заменяется, а в документации есть руководство по импорту, которое поможет перенести прошлую историю в базу SQLite.
Какие есть похожие проекты?zoxide, oh-my-posh, inshellisense, asdf, starship, cheat, GoogleUnlimited, awesome-shell
В каких он темах?fish, history, zsh, sync, bash, powershell, search, tui, shell, encryption, sqlite, rust
Автор
atuinsh
Размер
89.6 MB
Звёзды
32.7K
Возраст
6 г
Коммиты · 90 дней