From agent
Shows OpenClaw-compatible usage cost summary for session, today, last 30 days. Falls back to agent memory, dreams, and resource stats when costs unavailable. Useful for tracking Claude Code sessions.
npx claudepluginhub crisandrews/clawcode --plugin agentThis skill uses the workspace's default tool permissions.
Show usage costs in the OpenClaw-compatible format. Works from CLI or messaging channels.
Tracks Clawdbot AI model token usage across sessions and estimates costs for Claude (opus/sonnet), GPT, and Codex. Use for daily/weekly cost reports and spending monitoring.
Generates daily cost reports for Claude Code usage including total spend, running sessions, token stats via claude-view MCP tools. Useful for cost, spending, budget queries.
Share bugs, ideas, or general feedback.
Show usage costs in the OpenClaw-compatible format. Works from CLI or messaging channels.
πΈ Usage cost
Session <cost> Β· <tokens> tokens
Today <cost>
Last 30d <cost>
/usage β show the cost summary (default)/usage tokens β compact token display/usage full β verbose token + cost/usage cost β same as defaultDetect surface (CLI vs messaging channel).
Try to read session cost data from Claude Code's session store:
ls ~/.claude/projects/*/\*.jsonl 2>/dev/null | head -3
NOTE: Claude Code stores session data in ~/.claude/projects/<slug>/*.jsonl. The plugin cannot reliably read these because:
Fall back to estimate from memory/dreams:
agent_status MCP tool β get file/chunk countsdu -sh memory/ | awk '{print $1}' β memory dir sizewc -l memory/.dreams/events.jsonl 2>/dev/null | awk '{print $1}' β event countBuild the response in OpenClaw format:
πΈ Usage cost
Session $0.42 Β· 125k tokens
Today $1.23
Last 30d $34.56
πΈ Usage cost
Session n/a (run native /cost or /usage in CLI for tokens)
Today n/a
Last 30d n/a
π Agent resources
Memory: <size>, <N> files, <M> chunks
Dreams: <events> events, <unique> unique memories
Format per surface:
*bold***bold**Reply tool if on messaging channel.
/usage cost format but with the Claude Code limitation documented./usage.