Skip to content

CLI utilities for OpenClaw — tail logs, inspect sessions, and more.

License

Notifications You must be signed in to change notification settings

Codesushi-com/openclaw-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openclaw-cli

CLI utilities for OpenClaw — tail logs, inspect sessions, and more.

ocli tail in action

Install

# Run directly (no install needed)
uvx openclaw-cli tail

# Or install globally
uv tool install openclaw-cli

Commands

ocli tail

Tail session logs across all agents in real time. Shows user and assistant messages with agent ID, model, cost, and message text.

ocli tail                      # Tail all agents, live
ocli tail -a main              # Tail only the "main" agent
ocli tail -n 20                # Show last 20 messages, then follow
ocli tail -n 10 --no-follow    # Show last 10 messages and exit
ocli tail --deleted             # Include deleted sessions

Output format:

14:23:01 [main] (b80790f1) USER  what's the weather like?
14:23:05 [main] (b80790f1) AI(claude-sonnet-4-20250514) $0.0032 It's currently 65°F and sunny...

Each line shows:

  • Timestamp — local time
  • Agent — which agent (e.g. main, penny)
  • Session — first 8 chars of the session ID
  • RoleUSER or AI(model)
  • Cost — per-response cost (assistant only)
  • Text — message content (collapsed to one line)

Development

# Clone and set up
git clone https://github.com/openclaw/openclaw-cli.git
cd openclaw-cli
uv sync

# Run locally
uv run ocli tail -n 5 --no-follow

# Lint
uv run ruff check src/

License

MIT

About

CLI utilities for OpenClaw — tail logs, inspect sessions, and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages