Diagnostics Export
Bundle config, plugin list, agent list, recent audit entries, gateway logs into one JSON file you can attach to a bug report. Secrets auto-redacted.
Generating
curl http://127.0.0.1:18789/diag
# Returns the report inline (large JSON)
curl -X POST http://127.0.0.1:18789/diag/export
# {"ok": true, "path": "~/.openvesper/openvesper-diag-1737475200000.json"}What's in the report
- Gateway version, Node version, platform, uptime
- Config (with secrets redacted)
- Bundled + installed agents
- Installed OAuth providers (names only, no tokens)
- Today's audit stats + last 100 entries
- Last 100 lines of gateway log
Redacted keys
These are replaced with "<REDACTED>" before writing:
apiKey, api_key, token, secret, password, auth,
ANTHROPIC_API_KEY, OPENAI_API_KEY, GROQ_API_KEY,
GEMINI_API_KEY, TELEGRAM_BOT_TOKEN, GITHUB_TOKEN,
SLACK_BOT_TOKEN, HELIUS_API_KEY,
accessToken, refreshToken, clientSecretPlus any field whose name contains those substrings (case-insensitive).
Before sharing
Always open the exported JSON before sharing it. Redaction is best-effort โ review for anything sensitive specific to your setup before posting publicly.
Source
Implementation: apps/gateway/src/diagnostics.ts