AI小队极致预算财务追踪引擎
简介
为AI多智能体小队打造的极致预算财务追踪引擎,实时监控API/Gas成本、单智能体支出归因与$7种子资金ROI,零依赖Python实现。
原始描述
Track detailed AI agent expenses, revenues, budgets, and ROI with per-agent attribution and alerts for efficient micro-budget financial management.
通过你的 Agent 添加
安装目录:aoineco-ledger-ai-agent-financial-tracking-engine/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Aoineco Ledger 是专为极端预算场景设计的AI智能体财务追踪引擎,核心解决"AI花钱但不算账"的痛点。采用纯Python 3.10+实现,零外部依赖,单文件即可运行。
关键操作流:
- 初始化引擎:
AoinecoLedger()自动创建JSONL追加式账本 - 记录支出:
log_api_cost()/log_gas()记录API调用与链上Gas,支持智能体标签归因 - 记录收入:
log_revenue()追踪MoltLaunch等收入来源 - 设置预算:
set_budget()按类别/周期设定限额,80%预警/100%拦截 - 获取指标:
get_bootstrap_metrics()输出$7种子资金全维度健康度
核心指标 IPD(Intelligence per Dollar):每美元可执行的操作次数,直接量化智能体运营效率。
显著优点
- 极端轻量:单文件、零依赖,契合$7 Bootstrap Protocol的"每字节计数"哲学
- 多智能体归因:解决 squad 场景"谁花了什么"的追踪难题
- 实时财务感知:内置跑道(runway)、日燃速(burn rate)、ROI%计算
- 防损存储:JSONL追加式日志,崩溃后可逐行恢复,避免数据库损坏风险
- 即开即用:预配置AI运营专用分类(API/LLM、Gas/Blockchain、Revenue/Gig等)
潜在缺点与局限性
- 无云端同步:本地JSONL存储,多机部署需自行解决数据聚合
- 无UI界面:纯代码/CLI交互,非技术用户上手门槛高
- 简单统计:缺乏高级财务分析(现金流预测、敏感性分析)
- 手动集成:需在每个API调用点埋点,无法自动拦截无SDK的服务
- 币种单一:假设全美元计价,未内置多币种/加密资产波动处理
适合人群
- 运行多智能体小队的独立开发者/AI研究员
- 践行$7 Bootstrap Protocol的极简启动者
- 需精确追踪API/Gas支出的DeFi/区块链自动化运营者
- 为智能体 squad 构建共享财务感知的基础设施开发者
常规风险
风险类型
说明
数据丢失
本地文件损坏未备份时,历史账目不可恢复
预算漂移
80%预警依赖定期查询,长时间不检查可能错过拦截窗口
归因误差
agent参数传递错误导致成本归属混乱
精度累积
大量微交易($0.0001级)浮点运算可能产生分位偏差
合规盲区
未内置税务申报格式,需自行导出CSV后处理
- 无云端同步:本地JSONL存储,多机部署需自行解决数据聚合
- 无UI界面:纯代码/CLI交互,非技术用户上手门槛高
- 简单统计:缺乏高级财务分析(现金流预测、敏感性分析)
- 手动集成:需在每个API调用点埋点,无法自动拦截无SDK的服务
- 币种单一:假设全美元计价,未内置多币种/加密资产波动处理
适合人群
- 运行多智能体小队的独立开发者/AI研究员
- 践行$7 Bootstrap Protocol的极简启动者
- 需精确追踪API/Gas支出的DeFi/区块链自动化运营者
- 为智能体 squad 构建共享财务感知的基础设施开发者
常规风险
风险类型
说明
数据丢失
本地文件损坏未备份时,历史账目不可恢复
预算漂移
80%预警依赖定期查询,长时间不检查可能错过拦截窗口
归因误差
agent参数传递错误导致成本归属混乱
精度累积
大量微交易($0.0001级)浮点运算可能产生分位偏差
合规盲区
未内置税务申报格式,需自行导出CSV后处理
| 风险类型 | 说明 |
|---|---|
| 数据丢失 | 本地文件损坏未备份时,历史账目不可恢复 |
| 预算漂移 | 80%预警依赖定期查询,长时间不检查可能错过拦截窗口 |
| 归因误差 | agent参数传递错误导致成本归属混乱 |
| 精度累积 | 大量微交易($0.0001级)浮点运算可能产生分位偏差 |
| 合规盲区 | 未内置税务申报格式,需自行导出CSV后处理 |
技能正文
Aoineco Ledger — AI Agent Financial Tracking Engine
Version: 1.0.0
Author: Aoineco & Co.
License: MIT
Tags: finance, expense-tracking, budget, roi, bootstrap, multi-agent, accounting
Description
Financial tracking engine built for AI agents operating on extreme budgets. Tracks every API call, gas fee, and revenue stream with per-agent cost attribution. Native support for the $7 Bootstrap Protocol.
Rebuilt from agentledger (Node.js) into Python with major enhancements for multi-agent squads and micro-budget operations.
Core metric: Intelligence per Dollar (IPD) — how many operations you get per cent spent.
Problem
AI agents spend money (API calls, gas fees, subscriptions) but rarely track it. When you're running a 9-agent squad on a $7 seed budget, every fraction of a cent matters. You need:
- Real-time visibility into burn rate and runway
- Per-agent cost attribution (who's spending what?)
- Budget alerts BEFORE you overspend
- Revenue tracking to measure actual ROI
Features
Feature
Description
Transaction Logging
Log expenses, revenue, API costs, gas fees with one-liner methods
$7 Bootstrap Metrics
Seed tracking, ROI%, runway days, daily burn rate, IPD
Per-Agent Cost Attribution
Track spending by squad member (oracle, blue-sound, etc.)
Budget Alerts
Set limits per category/period — warns at 80%, blocks at 100%
Category System
Pre-configured for AI ops: API/LLM, Gas/Blockchain, Revenue/Gig, etc.
CSV/JSON Export
Full transaction export for tax, audit, or analysis
JSONL Storage
Append-only transaction log — fast, corruption-resistant
Period Filtering
Query by today, this-week, this-month, this-year, or all
Quick Start
from ledger_engine import AoinecoLedger
ledger = AoinecoLedger()
# Log API cost
ledger.log_api_cost(0.0042, "Google", "gemini-3-flash", tokens_used=150000, agent="oracle")
# Log gas fee
ledger.log_gas(0.0003, chain="base", tx_hash="0xabc123", agent="blue-sound")
# Log revenue
ledger.log_revenue(0.01, "MoltLaunch", "Tier-1 Intel Report", category="Revenue/Gig")
# Set budget
ledger.set_budget("API/LLM", limit=3.00, period="daily")
# Check $7 Bootstrap metrics
metrics = ledger.get_bootstrap_metrics()
# → Seed: $7.00, Burn: $0.02/day, Runway: 300 days, IPD: 257.5 ops/$
Bootstrap Metrics Output
💰 Seed Amount: $7.00
📈 Total Revenue: $0.0150
📉 Total Expenses: $0.0233
🤖 API/LLM Cost: $0.0230
💵 Net Profit: $-0.0083
📊 ROI: -0.1%
💎 Remaining Balance: $6.9917
🔥 Daily Burn Rate: $0.0233/day
⏱️ Runway: 300 days
🧠 IPD: 257.5 ops/$
Pre-Configured Categories
API/LLM — OpenAI, Anthropic, Google API costs
Gas/Blockchain — On-chain transaction fees
Revenue/Gig — MoltLaunch gig income
Revenue/DeFi — Meteora, LP yields
Revenue/Music — claw.fm royalties
Infrastructure, Marketing, Tools, Subscriptions, Other
File Structure
aoineco-ledger/
├── SKILL.md # This file
└── scripts/
└── ledger_engine.py # Main engine (zero external dependencies)
Zero Dependencies
| Feature | Description |
|---|---|
| Transaction Logging | Log expenses, revenue, API costs, gas fees with one-liner methods |
| $7 Bootstrap Metrics | Seed tracking, ROI%, runway days, daily burn rate, IPD |
| Per-Agent Cost Attribution | Track spending by squad member (oracle, blue-sound, etc.) |
| Budget Alerts | Set limits per category/period — warns at 80%, blocks at 100% |
| Category System | Pre-configured for AI ops: API/LLM, Gas/Blockchain, Revenue/Gig, etc. |
| CSV/JSON Export | Full transaction export for tax, audit, or analysis |
| JSONL Storage | Append-only transaction log — fast, corruption-resistant |
| Period Filtering | Query by today, this-week, this-month, this-year, or all |
from ledger_engine import AoinecoLedger
ledger = AoinecoLedger()
# Log API cost
ledger.log_api_cost(0.0042, "Google", "gemini-3-flash", tokens_used=150000, agent="oracle")
# Log gas fee
ledger.log_gas(0.0003, chain="base", tx_hash="0xabc123", agent="blue-sound")
# Log revenue
ledger.log_revenue(0.01, "MoltLaunch", "Tier-1 Intel Report", category="Revenue/Gig")
# Set budget
ledger.set_budget("API/LLM", limit=3.00, period="daily")
# Check $7 Bootstrap metrics
metrics = ledger.get_bootstrap_metrics()
# → Seed: $7.00, Burn: $0.02/day, Runway: 300 days, IPD: 257.5 ops/$
Bootstrap Metrics Output
💰 Seed Amount: $7.00
📈 Total Revenue: $0.0150
📉 Total Expenses: $0.0233
🤖 API/LLM Cost: $0.0230
💵 Net Profit: $-0.0083
📊 ROI: -0.1%
💎 Remaining Balance: $6.9917
🔥 Daily Burn Rate: $0.0233/day
⏱️ Runway: 300 days
🧠 IPD: 257.5 ops/$
Pre-Configured Categories
API/LLM — OpenAI, Anthropic, Google API costs
Gas/Blockchain — On-chain transaction fees
Revenue/Gig — MoltLaunch gig income
Revenue/DeFi — Meteora, LP yields
Revenue/Music — claw.fm royalties
Infrastructure, Marketing, Tools, Subscriptions, Other
File Structure
aoineco-ledger/
├── SKILL.md # This file
└── scripts/
└── ledger_engine.py # Main engine (zero external dependencies)
Zero Dependencies
💰 Seed Amount: $7.00
📈 Total Revenue: $0.0150
📉 Total Expenses: $0.0233
🤖 API/LLM Cost: $0.0230
💵 Net Profit: $-0.0083
📊 ROI: -0.1%
💎 Remaining Balance: $6.9917
🔥 Daily Burn Rate: $0.0233/day
⏱️ Runway: 300 days
🧠 IPD: 257.5 ops/$
API/LLM— OpenAI, Anthropic, Google API costsGas/Blockchain— On-chain transaction feesRevenue/Gig— MoltLaunch gig incomeRevenue/DeFi— Meteora, LP yieldsRevenue/Music— claw.fm royaltiesInfrastructure,Marketing,Tools,Subscriptions,Other
File Structure
aoineco-ledger/
├── SKILL.md # This file
└── scripts/
└── ledger_engine.py # Main engine (zero external dependencies)
Zero Dependencies
aoineco-ledger/
├── SKILL.md # This file
└── scripts/
└── ledger_engine.py # Main engine (zero external dependencies)
Pure Python 3.10+. No pip install needed. Designed for the $7 Bootstrap Protocol — every byte counts.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。