Command Reference
Authentication
login
Authenticate with AgentLogs using device authorization.logout
Remove stored authentication credentials.- With a hostname, logs out only from that host.
- Without a hostname, logs out from all configured hosts.
status
Show current authentication status and account info.Upload
upload
Interactively browse and upload transcripts from any agent (Claude Code, Codex, OpenCode, Pi).directory- Optional. Filter to transcripts from this directory
-s, --source <source>- Filter by source:claude-code,codex,opencode, orpi-l, --latest- Upload the most recent transcript without showing picker
- Discovers transcripts from all installed agents
- Shows an interactive picker to select a transcript
- Displays time, source, directory, and preview for each transcript
- Uploads the selected transcript
Claude Code
claudecode sync
Sync all local Claude Code transcripts to AgentLogs.claudeDir- Optional. Path to Claude data directory. Defaults to~/.claude
--cwd <path>- Only upload transcripts from sessions in a specific working directory
- Scans for transcript files in the Claude directory
- Skips already-uploaded transcripts (deduplication via SHA256)
- Respects your allow/deny settings
claudecode upload
Upload a specific transcript file.transcript- Path to the JSONL transcript file
claudecode hook
Hook entry point for Claude Code integration. Called automatically by Claude Code hooks.Codex (Experimental)
codex upload
Upload a Codex transcript file.transcript- Path to the JSONL transcript file
mcp
Run as an MCP server for Codex integration.- Ensures the background service is running
- Connects to the service to keep it alive
- Exposes no tools or prompts (lifecycle management only)
service start
Start the background service.~/.codex/sessions for transcript changes and uploads them automatically.
service stop
Stop the background service.service status
Show background service status.service logs
Tail the watcher event logs.Ctrl+C to stop.
OpenCode
opencode upload
Upload an OpenCode session.sessionId- The OpenCode session ID to upload
~/.local/share/opencode/storage/.
Example:
opencode hook
Hook entry point for OpenCode plugin integration. Called automatically by the OpenCode plugin.- tool.execute.before - Intercepts git commits to add transcript links
- tool.execute.after - Tracks commit metadata (SHA, branch, title)
- session.idle - Uploads the complete transcript
Pi
pi upload
Upload a Pi session transcript.sessionIdOrPath- Optional. Session ID or path to session file
- With no argument: lists recent Pi sessions
- With session ID: finds and uploads that session
- With file path: uploads the specified JSONL file
~/.pi/agent/sessions/.
Examples:
pi hook
Hook entry point for Pi extension integration. Called automatically by the Pi extension.- tool_call - Intercepts git commits to add transcript links
- tool_result - Tracks commit metadata (SHA, branch, title)
- agent_end - Uploads the transcript after each agent turn completes
- session_shutdown - Uploads the complete transcript
Settings
settings
View or modify repository settings.--mode <mode>- Set capture mode:denylistorallowlist--json- Output settings as JSON
allow
Allow a repository to be captured.path- Path to the repository
--visibility <level>- Set visibility:private,team, orpublic
deny
Deny a repository from being captured.path- Path to the repository
Global Options
These options work with any command:| Option | Description |
|---|---|
--help | Show help for a command |
--version | Show CLI version |