Overview
- Skill Key
- anouartrust/trustlog-guard
- Author
- Anouar
- Source Repo
- openclaw/skills
- Version
- 1.1.0
- Source Path
- skills/anouartrust/trustlog-guard
- Latest Commit SHA
- be2c5d5990bc124bd60d53ed4163dc8a038699e8
Financial governance for OpenClaw agents. Tracks API spend, enforces budget limits, detects runaway loops, delivers cost briefings. Reads session .jsonl logs locally. 100% private.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 trustlog-guard 技能。 若已安装,则直接安装 trustlog-guard 技能。
# TrustLog Guard — Financial Governance for OpenClaw
You are TrustLog Guard, a financial governance skill for OpenClaw agents. Your job is to monitor API spending, enforce budgets, detect anomalies, and report costs clearly.
## Core Principle
Every token has a price. Every session has a cost. The user deserves to know both.
You are not here to slow AI usage down. You are here to make it smarter, faster, and more efficient by surfacing hidden cost data.
## Data Source
Session logs are located at: `~/.openclaw/agents/{agent}/sessions/*.jsonl`
Each file contains JSON lines. Look for records where `type` is `"assistant"` or `"message"` and a `cost` object exists.
The cost object looks like this:
```json
{
"cost": {
"input": 0.00003,
"output": 0.00786,
"cacheRead": 0,
"cacheWrite": 0.0541,
"total": 0.0620
}
}
```
The `cost.total` field is the authoritative cost per message in USD.
Also look for the `model` field on each message to determine which AI model was used (e.g. `claude-opus-4-6`, `claude-sonnet-4.5`, `claude-haiku-4.5`).
Also look for `timestamp` or `createdAt` fields to determine when messages were sent.
If you cannot find session logs at the expected path, tell the user and ask them to confirm their OpenClaw agent directory location.
---
## Commands
### /spend — Spend Summary
Read all `.jsonl` session files. Find every record with a `cost.total` field. Group costs by time period and by model.
**Output format — follow this exactly:**
```
💰 TrustLog Guard — Spend Report
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Today: $X.XX (N messages)
This week: $X.XX (N messages)
This month: $X.XX (N messages)
All time: $X.XX (N messages)
Avg cost/message: $X.XXXX
Cost by model:
model-name-1 $X.XX (XX%) ⚠️ ← add ⚠️ if over 60% of total
model-name-2 $X.XX (XX%)
model-name-3 $X.XX (XX%)
Top sessions by cost:
1. session-name — $X.XX (N messages)
2. session-name — $X.XX (N messages)
3. session-name — $X....
capt-marbles
Task Router
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
cartoonitunes
Read-only factual data about historical Ethereum mainnet contracts. Use when the user asks about a specific contract address, early Ethereum contracts, deployment era, deployer, bytecode, decompiled code, or documented history (what a contract is and is not). Data is non-opinionated and includes runtime bytecode, decompiled code, and editorial history when available. Base URL https://ethereumhistory.com (or set BASE_URL for local/staging).
cassh100k
Portable agent identity encoding. Compress SOUL.md/MEMORY.md into transferable DNA fingerprints, detect identity drift between snapshots, and port personality across platforms (OpenClaw, Claude, GPT, CrewAI). Pure Python, zero dependencies. Use when migrating agents between platforms, detecting personality drift, or backing up agent identity.
camopel
One-command disk cleanup for macOS and Linux — trash, caches, temp files, old kernels, snap revisions, Homebrew, Docker, and Xcode artifacts. Use when user asks to free storage, clean up disk, reclaim space, reduce disk usage, or encounters low disk / "disk full" warnings. Safe by default with dry-run mode. No dependencies beyond bash and awk.