Audit Logs
Append-only record of tool calls, approval decisions, commitments, tasks, and other significant events. Rotated daily. Lives locally.
What gets logged
tool-call/tool-resultapprovaldecisionscommitment-created/commitment-fulfilledtask-created/task-completestanding-ordercreate/remove/toggle/firedsession-resetcompactionagent-switcherror
Reading
# Last 100 entries
curl http://127.0.0.1:18789/audit?limit=100
# Specific date range
curl "http://127.0.0.1:18789/audit?from=2026-05-20&to=2026-05-21"
# Today's stats
curl http://127.0.0.1:18789/audit/stats
# {
# "date": "2026-05-21",
# "total": 342,
# "byKind": {
# "tool-call": 145,
# "tool-result": 145,
# "approval": 8,
# "task-created": 12
# }
# }
# Available dates
curl http://127.0.0.1:18789/audit/datesFile layout
~/.openvesper/audit/
โโโ 2026-05-19.jsonl # mode 0600
โโโ 2026-05-20.jsonl
โโโ 2026-05-21.jsonl # today, currently being appendedJSONL entry format
{
"timestamp": 1737475200000,
"isoTime": "2026-05-21T14:30:00.000Z",
"event": {
"kind": "tool-call",
"sessionKey": "user-123",
"agent": "bags-hunter",
"tool": "bags_token_score",
"input": {"address": "ABC..."},
"permission": "read"
}
}Privacy
Audit logs stay local. Useful for: debugging, security review, understanding what your agents did while you were away.
Source
Implementation: apps/gateway/src/audit.ts