Diagnostics flags let you enable targeted debug logs without turning on verbose logging everywhere. Flags are opt-in and have no effect unless a subsystem checks them.Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
How it works
- Flags are strings (case-insensitive).
- You can enable flags in config or via an env override.
- Wildcards are supported:
telegram.*matchestelegram.http*enables all flags
Enable via config
Env override (one-off)
Timeline artifacts
Thetimeline flag writes structured startup and runtime timing events for
external QA harnesses:
OPENCLAW_DIAGNOSTICS_TIMELINE_PATH. When timeline is enabled only from
config, the earliest config-loading spans are not emitted because OpenClaw has
not read config yet; subsequent startup spans use the config flag.
OPENCLAW_DIAGNOSTICS=1, OPENCLAW_DIAGNOSTICS=all, and
OPENCLAW_DIAGNOSTICS=* also enable the timeline because they enable every
diagnostics flag. Prefer timeline when you only want the JSONL timing
artifact.
Timeline records use the openclaw.diagnostics.v1 envelope. Events can include
process ids, phase names, span names, durations, plugin ids, dependency counts,
event-loop delay samples, provider operation names, child-process exit state,
and startup error names/messages. Treat timeline files as local diagnostics
artifacts; review them before sharing outside your machine.
Where logs go
Flags emit logs into the standard diagnostics log file. By default:logging.file, use that path instead. Logs are JSONL (one JSON object per line). Redaction still applies based on logging.redactSensitive.
Extract logs
Pick the latest log file:openclaw logs --follow (see /cli/logs).
Notes
- If
logging.levelis set higher thanwarn, these logs may be suppressed. Defaultinfois fine. brave.httplogs Brave Search request URLs/query params, response status/timing, and cache hit/miss/write events. It does not log API keys or response bodies, but search queries can be sensitive.- Flags are safe to leave enabled; they only affect log volume for the specific subsystem.
- Use /logging to change log destinations, levels, and redaction.