返回顶部
b

budget-tracker预算追踪器

Track agent spending, set budgets and alerts, and prevent surprise bills. Use when the agent needs to log expenses, check remaining budget, set spending limits, or get cost summaries. Essential for autonomous agents with real money.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
788
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

budget-tracker

预算追踪器

追踪你的智能体花费的每一分钱。设置硬性限额。在预算超支前收到警报。

为什么需要这个功能

拥有API、域名和服务访问权限的自主智能体可能会产生意外账单。此技能为你提供财务安全网——记录每一笔交易,强制执行支出限额,并始终清楚你的财务状况。

命令

记录交易

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

查询余额

bash python3 {baseDir}/scripts/budget.py balance

查看支出汇总

bash python3 {baseDir}/scripts/budget.py summary

查看近期交易

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

设置预算限额

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

设置警报阈值(当余额低于此值时发出警告)

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

检查购买是否安全

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

导出为CSV

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

数据存储

预算数据默认存储在~/.openclaw/budget-tracker/budget.json。可通过--data-dir /path/to/dir覆盖。

JSON结构:
json
{
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
}
]
}

分类

使用一致的分类:domain(域名)、hosting(托管)、api(API)、tool(工具)、subscription(订阅)、marketing(营销)、other(其他)。

警报

当余额低于警报阈值时,该技能会输出警告。当购买行为将超出剩余预算时,会阻止并发出警告。

提示

  • - 消费后立即记录交易——不要批量处理
  • 在任何购买前使用check验证预算安全性
  • 每天开始时运行summary以了解情况
  • 将--alert-threshold设置为总预算的25%

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 arc-budget-tracker-1776419946 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 arc-budget-tracker-1776419946 技能

通过命令行安装

skillhub install arc-budget-tracker-1776419946

下载

⬇ 下载 budget-tracker v1.0.0(免费)

文件大小: 4.11 KB | 发布时间: 2026-4-17 18:22

v1.0.0 最新 2026-4-17 18:22
Initial release of arc-budget-tracker.

- Track all agent expenses with detailed logging and categories.
- Set overall spending limits and custom alert thresholds to avoid overages.
- View real-time balance, history, and summaries of spending.
- Check if new purchases are allowed within the current budget.
- Export transaction data to CSV and customize data storage location.
- Warnings for low balance and blocked transactions over budget.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部