Loading...
Loading...
Check and stream Convex deployment logs from the CLI. Use when debugging Convex actions, 401/500 errors, failed queries or mutations, or when you need to see what functions ran and their output.
npx skill4agent add openagentsinc/openagents convex-logsnpx convexconvexconvex/apps/webnpx convex dashboardconvex logsconvex env--prodnpx convex logsnpx convex logs --prodnpx convex env listnpx convex env list --prod# From the app that has convex/ (e.g. apps/web)
cd apps/web
# Stream logs (default: dev). Use Ctrl+C to stop.
npx convex logs
# Stream production logs
npx convex logs --prod
# Show last N log entries then exit (no streaming). Good for quick checks.
npx convex logs --prod --history 30
# Include successful executions (default is failures only in some contexts)
npx convex logs --prod --history 25 --success| Option | Meaning |
|---|---|
| Use the production deployment (required for prod debugging). |
| Show the last |
| Include successful function runs in the output. |
| Output raw log events as JSONL. |
| Target a specific deployment (e.g. |
| Use env file for CONVEX_DEPLOYMENT or similar. |
.env.local# List env vars on dev (default)
npx convex env list
# List env vars on production
npx convex env list --prod
# Get a single variable (e.g. confirm OA_INTERNAL_KEY is set; value is hidden in output)
npx convex env get OA_INTERNAL_KEY --prodOA_INTERNAL_KEYPUBLIC_API_URLcd apps/web
npx convex logs --prod --history 30 --success[CONVEX A(openclawApi:getRuntimeStatus)] [ERROR] ... 401 'unauthorized'successful-mongoose-647npx convex env list --prod--prodnpx convex env set ...Watching logs for production deployment successful-mongoose-647...
2/4/2026, 12:39:06 PM [CONVEX A(openclawApi:getInstance)] Function executed in 434 ms
2/4/2026, 12:39:06 PM [CONVEX A(openclawApi:getRuntimeStatus)] [ERROR] '[openclawApi getRuntimeStatus] API error response:' 401 'unauthorized'
2/4/2026, 12:39:06 PM [CONVEX A(openclawApi:getRuntimeStatus)] Uncaught Error: unauthorized ...getInstancegetRuntimeStatusOA_INTERNAL_KEY--prodOA_INTERNAL_KEYPUBLIC_API_URLnpx convex env set OA_INTERNAL_KEY "..." --prodnpx wrangler secret put OA_INTERNAL_KEY--history N--deployment-name <name>dev:effervescent-anteater-82