360 Secure SkillHub
360 安全技能中心

Agentfinobs

Python 库,用于 AI Agent 财务可观测性:SpendTracker 记录并结算交易,BudgetManager 按时间窗口设支出上限并告警,AnomalyDetector 标记异常支出,MetricsEngine 计算 ROI、胜率、消耗速率与资金续航,内置 HTTP 监控面板,支持导出到 JSONL、Webhook 与 Prometheus。支付渠道仅以字符串标签表示,未做实际对…

分类:数据
oc127
oc127
热度 42.26
最近更新 2026-05-17 12:59:06

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add oc127/agentfinobs
兼容性
通用兼容
联网要求
不联网
数据出网
可选出网
Metadata
name
agentfinobs
description
AI Agent Financial Observability — monitor, budget, and analyze spending across any AI agent. Track costs, set budgets, detect anomalies, and export metrics across payment rails including x402/USDC, Stripe/ACP, Polymarket CLOB, and more.

agentfinobs

AI Agent Financial Observability — monitor, budget, and analyze spending across any AI agent.

What it does

  • SpendTracker — Record and settle transactions across any payment rail
  • BudgetManager — Set spending limits with automatic alerts
  • AnomalyDetector — Flag unusual spending patterns
  • MetricsEngine — Track ROI, win rate, burn rate, and runway
  • Dashboard — Built-in HTTP server for live monitoring
  • Exporters — Forward data to JSONL, webhooks, or Prometheus

Usage

from agentfinobs import SpendTracker, BudgetManager, BudgetRule

tracker = SpendTracker(agent_id="my-agent")
budget = BudgetManager(rules=[
    BudgetRule(name="hourly", max_amount=10.0, window_seconds=3600)
])
tracker.add_listener(budget)

tx = tracker.record(amount=2.50, rail="x402_usdc", counterparty="api-provider")
tracker.settle(tx.tx_id, status="confirmed", revenue=5.0)

Install

pip install agentfinobs

Requirements

  • Python 3.10+