[]

Activity Ledger

Append-only audit trail for every agent operation. Every tool call, swap, transfer, alert, and tunnel action is logged with timestamps, wallet, chain, and status. SQLite-backed, queryable, and exportable.

Why

Autonomous agents need accountability. When an agent swaps tokens, sets alerts, or approves tunnel proposals, you need a record of what happened, when, and whether it succeeded. The ledger logs every tool invocation automatically and stores it locally at ~/.config/owl/ledger.db

CLI Commands

# show recent entries owl ledger list # filter by tool, wallet, or chain owl ledger list -t mp_token_swap -w main # show entries since a date owl ledger list -s 2026-03-21 # show only errors owl ledger list --status error
FlagDescription
-n, --limitNumber of entries to show (default 20)optional
-t, --toolFilter by tool nameoptional
-w, --walletFilter by wallet nameoptional
-c, --chainFilter by chainoptional
-s, --sinceShow entries since date (ISO format)optional
--statusFilter by status (ok or error)optional

Statistics

# overall stats owl ledger stats # stats for today owl ledger stats -s 2026-03-21

Returns total operations, error count, breakdown by tool and chain.

Export

JSON

Full structured export with all fields.

owl ledger export -f json

CSV

Spreadsheet-friendly format for analysis.

owl ledger export -f csv -s 2026-03-01

Clear

# clear entries before a date owl ledger clear --before 2026-03-01 # clear all entries owl ledger clear

What Gets Logged

FieldDescription
timestampISO 8601 date and time of the operation
toolTool name (e.g. mp_token_swap, owl_alert_add)
argsJSON arguments passed to the tool
resultTool output (truncated to 2000 chars)
walletWallet used (if applicable)
chainChain used (if applicable)
statusok or error
agentAgent identifier (provider/model)

MCP Tools

ToolDescription
owl_ledger_queryQuery ledger entries with filters
owl_ledger_statsGet summary statistics
owl_ledger_exportExport as JSON or CSV
owl_ledger_clearClear entries