Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

trustlog-guard

bởi anouartrust

Coding Agents & IDEs
259Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Financial governance for OpenClaw agents.

Mô tả

Kỹ năng này làm gì

Reads OpenClaw agent session logs to track API spending by model and session. Enforces daily and monthly budgets, detects anomalies like runaway loops and model escalations, and produces formatted cost reports. All processing is local with no external connections.

Unlike cloud-based cost monitoring tools, it reads spend data directly from local session files with no external accounts, API keys, or data transmission required.

Khi nào nên dùng

  • Reviewing total API spend after a long agent session
  • Setting a daily budget limit to prevent unexpected charges
  • Spotting an agent stuck in a message loop before costs escalate
  • Identifying which AI model is consuming the most budget
  • Finding which sessions drove the highest spending this month

Quy trình ví dụ

ĐẦU VÀO

User asks: /trustlog

AGENT
  1. 1

    Scans ~/.openclaw/agents/{agent}/sessions/*.jsonl for cost records

  2. 2

    Groups message costs by today, this week, and this month

  3. 3

    Ranks top sessions by total spend and message count

  4. 4

    Runs anomaly checks for burn rate spikes, rapid-fire loops, and model escalations

  5. 5

    Appends optimization tips based on model usage patterns and cache efficiency

ĐẦU RA

Full financial report with spending overview, cost breakdown by model, top sessions, anomaly scan results, and one actionable optimization tip

Cài đặt

clawhub install anouartrust/trustlog-guard

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết