/agent:usagefrom ClawCode
Shows usage cost summary (session, today, last 30d) in OpenClaw-compatible format. Falls back to agent resource stats when cost data is unavailable.
Ships in ClawCode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
21 skills in this plugin
/aboutShow the plugin source — name, version, and repo URL. Works from CLI or messaging. Triggers on /about, /version, /agent:about, /agent:version, "qué versión", "what version", "about the plugin", "about clawcode"./channelsShow messaging channel status (WhatsApp, Telegram, Discord, iMessage, Slack, Fakechat) and the launch command to load them. Triggers on /agent:channels, /agent:channels list, /agent:channels status, /agent:channels launch, "ver canales", "estado de canales", "cómo lanzo con whatsapp", "channel status", "messaging status"./compactFlush important session context to daily log (manual memory flush). Does NOT invoke native /compact. Triggers on /compact, /agent:compact, /flush, "guarda memoria", "flush".npx claudepluginhub crisandrews/clawcode --plugin agentOther plugins' skills for the same job