← 返回
未分类

Budget

Track agent spending, set budgets and alerts, and prevent surprise bills. Use when the agent needs to log expenses, check remaining budget, set spending limi...
跟踪代理支出,设置预算和警报,防止意外账单。适用于代理需要记录费用、查看剩余预算、设置支出限额等场景。
rogerscristo
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 236
下载
💾 1
安装
1
版本
#latest

概述

Budget Tracker

Track every cent your agent spends. Set hard limits. Get alerts before you blow your budget.

Why This Exists

Autonomous agents with access to APIs, domains, and services can rack up unexpected bills. This skill gives you a financial safety net — log every transaction, enforce spending limits, and always know exactly where you stand.

Commands

Log a transaction

python3 {baseDir}/scripts/budget.py log --amount 10.00 --merchant "Namecheap" --category "domain" --note "arcself.com registration"

Check balance

python3 {baseDir}/scripts/budget.py balance

View spending summary

python3 {baseDir}/scripts/budget.py summary

View recent transactions

python3 {baseDir}/scripts/budget.py history --limit 10

Set budget limit

python3 {baseDir}/scripts/budget.py set-budget --total 200.00

Set alert threshold (warn when balance drops below this)

python3 {baseDir}/scripts/budget.py set-alert --threshold 50.00

Check if a purchase is safe

python3 {baseDir}/scripts/budget.py check --amount 25.00

Export to CSV

python3 {baseDir}/scripts/budget.py export --format csv

Data Storage

Budget data is stored in ~/.openclaw/budget-tracker/budget.json by default. Override with --data-dir /path/to/dir.

The JSON structure:

{
  "budget": {"total": 200.00, "alert_threshold": 50.00},
  "transactions": [
    {
      "id": "txn_001",
      "timestamp": "2026-02-15T14:00:00Z",
      "amount": 10.00,
      "merchant": "Namecheap",
      "category": "domain",
      "note": "arcself.com"
    }
  ]
}

Categories

Use consistent categories: domain, hosting, api, tool, subscription, marketing, other.

Alerts

When balance drops below the alert threshold, the skill outputs a warning. When a purchase would exceed the remaining budget, it blocks and warns.

Tips

  • Log transactions immediately after spending — don't batch them
  • Use check before any purchase to verify budget safety
  • Run summary at the start of each day for awareness
  • Set --alert-threshold to 25% of your total budget

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 06:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,225 📥 267,635
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,078 📥 808,418
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,376 📥 320,161