From agent
Shows usage cost summary (session, today, last 30 days) with OpenClaw-compatible output format. Works from CLI or messaging channels via /usage, /agent:usage, or cost-related phrases.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent:usageThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Show usage costs in the OpenClaw-compatible format. Works from CLI or messaging channels.
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.npx claudepluginhub crisandrews/clawcode --plugin agentDisplays real token usage and estimated savings for current Claude Code session from session logs—no AI estimation. Invoke via `/genshijin-stats` for session stats, `--all` lifetime totals, `--share` summaries, or `--since` periods.
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.