Loading...
Loading...
Tail and inspect Cloudflare Worker logs from the CLI. Use when debugging API 401/500, openclaw auth, or web app errors. Covers both the homepage worker (apps/web) and the API worker (apps/api).
npx skill4agent add openagentsinc/openagents worker-logs| Worker | Config | Routes | Purpose |
|---|---|---|---|
| openagents-api | | | Rust API: openclaw, control, D1, R2, etc. |
| openagents-web-app | | | TanStack/React app (Node compat). |
wrangler tail--config--cwd# API worker (Rust) — run from apps/api
cd apps/api
npx wrangler tail
# Web app worker — run from apps/web
cd apps/web
npx wrangler tail| Option | Meaning |
|---|---|
| Human-readable (default). |
| One JSON object per log line (e.g. pipe to |
| Only successful requests. |
| Only errors/failures. |
| Filter by HTTP method. |
| Filter by text in console.log messages. |
| Filter by presence of header. |
| Log 100% of requests (default can sample). |
# API worker: only errors, pretty
cd apps/api
npx wrangler tail --status error --format pretty
# API worker: JSON and filter by URL path with jq
cd apps/api
npx wrangler tail --format json | jq 'select(.url | contains("openclaw"))'
# Web worker: tail while reproducing a page error
cd apps/web
npx wrangler tailcd apps/api && npx wrangler tail --format prettycd apps/web && npx wrangler tail --format prettycd apps/web && npx convex logs --prod --successconsole.log--history--sampling-rate 1openclaw auth: no internal key header path=...X-OA-Internal-Keyopenclaw auth 401: path=... provided_len=... expected_len=...openclaw auth ok path=... key_len=...wrangler tailapps/api[openclawApi <label>] fetch key_len=<n> url=...