返回顶部
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
安全检测
已通过
744
下载量
0
收藏
概述
安装方式
版本历史

budget-tracker

# 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 ```bash python3 {baseDir}/scripts/budget.py log --amount 10.00 --merchant "Namecheap" --category "domain" --note "arcself.com registration" ``` ### Check balance ```bash python3 {baseDir}/scripts/budget.py balance ``` ### View spending summary ```bash python3 {baseDir}/scripts/budget.py summary ``` ### View recent transactions ```bash python3 {baseDir}/scripts/budget.py history --limit 10 ``` ### Set budget limit ```bash python3 {baseDir}/scripts/budget.py set-budget --total 200.00 ``` ### Set alert threshold (warn when balance drops below this) ```bash python3 {baseDir}/scripts/budget.py set-alert --threshold 50.00 ``` ### Check if a purchase is safe ```bash python3 {baseDir}/scripts/budget.py check --amount 25.00 ``` ### Export to CSV ```bash 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: ```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" } ] } ``` ## 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

标签

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

下载 Zip 包

⬇ 下载 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
返回顶部