Clawdbot Logs
Analyze Clawdbot logs and diagnostics. Use when the user asks about bot performance, response times, errors, session stats, token usage, API costs, or wants to debug slow responses…
satriapamudji
@satriapamudji
What This Skill Does
Analyzes Clawdbot logs and diagnostics to inspect bot performance, response times, errors, session stats, token usage, and API costs. Provides shell commands and journalctl queries for debugging slow responses and configuration issues.
Replaces manually grepping through multiple log files and systemd journals by providing ready-made diagnostic scripts and targeted filtering patterns.
When to Use It
- Check recent response times for the last 20 messages
- Find errors or failures in the last hour of gateway logs
- View current session token count and decide if a session compact is needed
- Validate the Clawdbot configuration file for syntax errors
- Parse session JSONL files to extract recent user messages
- Monitor gateway service status and session state changes
Install
$ openclaw skills install @satriapamudji/clawdbot-logsClawdbot Logs & Diagnostics
Analyze Clawdbot performance, errors, and session data.
Quick Commands
Response Times (last N messages)
scripts/response-times.sh [count]
Recent Errors
journalctl --user -u clawdbot-gateway.service --no-pager --since "1 hour ago" | grep -iE "(error|fail|invalid)" | tail -20
Session Stats
scripts/session-stats.sh
Gateway Status
systemctl --user status clawdbot-gateway.service --no-pager
Config Validation
cat ~/.clawdbot/clawdbot.json | jq . > /dev/null && echo "Config valid" || echo "Config invalid"
Log Sources
| Source | Location | Contains |
|---|---|---|
| Journal | journalctl --user -u clawdbot-gateway.service | Session state, errors, tool exec |
| Daily log | /tmp/clawdbot/clawdbot-YYYY-MM-DD.log | Detailed JSON logs |
| Session file | ~/.clawdbot/agents/main/sessions/*.jsonl | Full conversation, token usage, costs |
| Sessions meta | ~/.clawdbot/agents/main/sessions/sessions.json | Current session state, model info |
Common Diagnostics
Slow Responses
- Check response times:
scripts/response-times.sh 20 - Check token count in sessions.json:
jq '.["agent:main:main"].totalTokens' ~/.clawdbot/agents/main/sessions/sessions.json - If tokens > 30000, run
/compactin Telegram or start new session
Config Errors
journalctl --user -u clawdbot-gateway.service --no-pager --since "10 minutes ago" | grep -i "invalid config"
API Costs (from session)
scripts/session-stats.sh
Useful Patterns
Filter journal by category
# Session state changes
journalctl --user -u clawdbot-gateway.service | grep "session state"
# Tool execution
journalctl --user -u clawdbot-gateway.service | grep "\[tools\]"
# Telegram activity
journalctl --user -u clawdbot-gateway.service | grep "\[telegram\]"
Parse session file for recent messages
tail -20 ~/.clawdbot/agents/main/sessions/*.jsonl | jq -r 'select(.message.role=="user") | .message.content[0].text' 2>/dev/null | tail -10
Top skills in this category
Agent Browser
@matrixyHeadless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection
Auto-Updater Skill
@maximepradesAutomatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed.
Free Ride - Unlimited free AI
@shaivpidadiManages free AI models from OpenRouter for OpenClaw. Automatically ranks models by quality, configures fallbacks for rate-limit handling, and updates opencla...
Automation Workflows
@jk-0001Design and implement automation workflows to save time and scale operations as a solopreneur. Use when identifying repetitive tasks to automate, building workflows across tools, setting up triggers and actions, or optimizing existing automations. Covers automation opportunity identification, workflow design, tool selection (Zapier, Make, n8n), testing, and maintenance. Trigger on "automate", "automation", "workflow automation", "save time", "reduce manual work", "automate my business", "no-code automation".
Desktop Control
@matagulAdvanced desktop automation with mouse, keyboard, and screen control