A financial monitoring tool for Openclaw Skills that parses session transcripts to calculate per-model spend and enforce strict budget limits.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install agent-session-cost
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install agent-session-cost using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Session Cost skill provides developers with essential visibility into the financial overhead of running autonomous agents. By programmatically parsing local session logs, it enables users to identify expensive workflows and maintain strict control over their AI consumption. This utility is a critical component for anyone scaling agentic operations within the Openclaw Skills ecosystem.
It functions by scanning the standardized directory structure of your agents, extracting usage metadata, and aggregating it into actionable reports. Whether you are running a single agent or a complex swarm, this skill ensures that API costs remain transparent, predictable, and fully audited.
To utilize this skill, ensure your environment is configured for Openclaw Skills and that you have Python 3 installed. You can check the cost of your most recent session immediately by running the following command in your terminal:
LATEST=$(ls -t ~/.openclaw/agents/main/sessions/*.jsonl 2>/dev/null | head -1)
[ -n "$LATEST" ] && python3 -c "
import json
total = 0
with open('$LATEST') as f:
for line in f:
entry = json.loads(line)
cost = entry.get('message',{}).get('usage',{}).get('cost',{}).get('total',0)
if cost: total += cost
print(f'Session cost: ${total:.4f}')
" || echo "No sessions found"
The Session Cost skill interacts with the standard JSONL format used across Openclaw Skills. It maps the following data points:
| Property | Description |
|---|---|
message.model |
The specific LLM model used for a turn, used for per-model breakdowns. |
message.usage.cost.total |
The precise financial cost of an individual turn in the session. |
~/.openclaw/agents/*/sessions/ |
The standard directory path where session data is retrieved. |
mtime |
File modification time used to calculate daily or hourly spend summaries. |
Loading
A comprehensive security hardening suite designed to protect AI agent workspaces from credential leaks and unauthorized access.

Discover AI agents across the internet by scanning domains for Open Agent Discovery Protocol (OADP) signals.

A comprehensive scanning tool for locating AI agent networks, hubs, and active coordination platforms across various protocols.

Agent ID gives AI agents a persistent identity card and discovery signals to ensure they remain findable and reputable across platforms.

A comprehensive foundation that automates workspace setup, memory systems, and network discovery for new autonomous agents.

A crypto wallet and financial management system designed specifically for autonomous AI agents to handle cross-chain assets.








































