Documentation
Agentrails CLI.
Set up the local archive, connect approved providers, run background capture, and search agent history without opening the desktop app.
Quick start
Install, initialize, connect.
The CLI requires Node.js 22.13 or newer. Install the package globally, initialize the archive, then inspect the provider catalog before you connect anything.
npm install --global @agentrails/cli
agentrails init
agentrails providers catalog
agentrails providers connect io.agentrails.codex
agentrails service installagentrails providers setup <provider-id> if you want to make the configuration change yourself.Commands
The commands you will use.
agentrails initCreate the local archive and print its data directory.
agentrails providers listShow installed provider packages and connection state.
agentrails providers catalogList known agent surfaces and their capture modes.
agentrails providers connect io.agentrails.codexInstall the approved Codex completion hook and enable its provider.
agentrails syncReconcile documented local history and drain the capture queue.
agentrails threadsList archived threads with provider and coverage information.
agentrails search "deployment"Search the redacted local full-text index.
agentrails service installStart the background archive service when you sign in.
agentrails service statusCheck whether the background service is installed and running.
Import a provider export
Choose the provider package and the file explicitly. Imports are limited to 512 MiB and the selected source enters the encrypted archive before normalization.
agentrails providers import \
io.agentrails.openai-export \
conversations.zipCapture sources
Documented inputs only.
Agentrails does not scrape signed-in web apps. Every provider declares its capture method and coverage. A provider without an approved source remains unsupported.
After completed work
Codex CLI, Claude Code, Cursor, Gemini CLI, Windsurf, Copilot CLI
At startup and on your schedule
Codex CLI, Claude Code, Gemini CLI
Only when you pick a file
ChatGPT, Claude, Cursor, OpenCode, Cline, Aider, Continue, Roo
Next
