搜索

PythonReactSEOPDF
OpenClaw

agentledger

Expense tracking and accounting for AI agents. Log purchases, set budgets, generate spending reports, and manage multi-currency finances — all stored locally. Privacy.com card import, natural language queries, CSV/JSON export. Use when agents make purchases and need a financial audit trail.

c-goro0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install c-goro/agentledger

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

AgentLedger - AI Agent Expense Tracking

Overview

AgentLedger is an accounting skill that logs every transaction you make, tracks spending across multiple accounts, and provides detailed reports. Use this to maintain a complete financial record of your purchases.

Important: Always log transactions immediately after making purchases. This skill is designed for AI agents to track their own expenses (API costs, tool subscriptions, etc.).

Core Functions

1. Log a Transaction

When you make any purchase, immediately log it:

// In Node.js context, require the ledger
const AgentLedger = require('./src/ledger.js');
const ledger = new AgentLedger();

// Log a transaction
await ledger.logTransaction({
  amount: 29.99,
  currency: 'USD',
  vendor: 'OpenAI',
  description: 'GPT-4 API credits',
  category: 'API/Services',
  account: 'privacy-card-1',
  context: 'Needed additional tokens for user project analysis',
  receiptUrl: 'https://platform.openai.com/receipts/xyz',
  confirmationId: 'sub_1234567890'
});

CLI Usage (supports both positional and named parameters):

# Positional style
node src/cli.js log 29.99 "OpenAI" "GPT-4 API credits" --category="API/Services"

# Named parameter style  
node src/cli.js log --amount=29.99 --vendor="OpenAI" --description="GPT-4 API credits" --category="API/Services" --context="Monthly API refill"
2. Check Current Spending
// Get spending summary
const summary = await ledger.getSummary('this-month');
console.log(`Total spent this month: $${summary.total}`);

// Check specific category
const apiSpending = await ledger.getCategorySpending('API/Services', 'this-month');
3. Generate Reports
// Monthly report
const report = await ledger.generateReport('monthly', { month: '2024-01' });

// Custom date range
const customReport = await ledger.generateReport('custom', {
  startDate: '2024-01-01',
  endDate: '2024-01-31'
});
4. Budget Management

来源信息

Source
github
Repository
openclaw/skills
Path
skills/c-goro/agentledger
Version
—
Commit
d8afbcf7314e9f05966783cda4d645c1cb3d9995
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

AgentLedger

AI Agent Expense Tracking & Accounting for OpenClaw

AgentLedger is a comprehensive expense tracking skill that helps AI agents maintain detailed financial records of purchases and spending. Perfect for tracking API costs, subscription services, infrastructure expenses, and any other purchases made by AI agents.

🌟 Features

Core Functionality
  • Transaction Logging - Log every purchase with amount, vendor, description, category, and context
  • Multi-Currency Support - Track spending in different currencies
  • Account Management - Manage multiple payment methods and cards
  • Budget Tracking - Set spending limits and get alerts when approaching them
  • Natural Language Queries - Ask questions like "How much did I spend on API keys this month?"
  • Detailed Reports - Generate monthly, category, vendor, and trend reports
  • Data Export - Export transactions to CSV or JSON formats
  • Receipt Storage - Store receipt URLs and confirmation numbers
Categories

Pre-defined spending categories for consistent tracking:

  • API/Services - API credits, SaaS subscriptions
  • Infrastructure - Hosting, domains, CDN
  • Marketing - Advertising, social media tools
  • Tools - Software licenses, utilities
  • Subscriptions - Recurring services
  • Other - Miscellaneous expenses
Smart Features
  • Privacy.com Integration - Import transactions from Privacy card exports
  • Budget Alerts - Automatic warnings when approaching spending limits
  • Trend Analysis - Track spending patterns over time
  • Vendor Analysis - See spending patterns by vendor
  • Time Period Filtering - Support for natural language time periods

🚀 Quick Start

Installation
# Clone or copy the skill to your workspace
cp -r agentledger /home/claw/.openclaw/workspace/

# Initialize the ledger
cd /home/claw/.openclaw/workspace/agentledger
node src/cli.js init
Basic Usage
Log a Transaction
# Command...

来源内容

SKILL.md
# AgentLedger - AI Agent Expense Tracking

## Overview
AgentLedger is an accounting skill that logs every transaction you make, tracks spending across multiple accounts, and provides detailed reports. Use this to maintain a complete financial record of your purchases.

**Important**: Always log transactions immediately after making purchases. This skill is designed for AI agents to track their own expenses (API costs, tool subscriptions, etc.).

## Core Functions

### 1. Log a Transaction
When you make any purchase, immediately log it:

```javascript
// In Node.js context, require the ledger
const AgentLedger = require('./src/ledger.js');
const ledger = new AgentLedger();

// Log a transaction
await ledger.logTransaction({
  amount: 29.99,
  currency: 'USD',
  vendor: 'OpenAI',
  description: 'GPT-4 API credits',
  category: 'API/Services',
  account: 'privacy-card-1',
  context: 'Needed additional tokens for user project analysis',
  receiptUrl: 'https://platform.openai.com/receipts/xyz',
  confirmationId: 'sub_1234567890'
});
```

**CLI Usage** (supports both positional and named parameters):
```bash
# Positional style
node src/cli.js log 29.99 "OpenAI" "GPT-4 API credits" --category="API/Services"

# Named parameter style  
node src/cli.js log --amount=29.99 --vendor="OpenAI" --description="GPT-4 API credits" --category="API/Services" --context="Monthly API refill"
```

### 2. Check Current Spending
```javascript
// Get spending summary
const summary = await ledger.getSummary('this-month');
console.log(`Total spent this month: $${summary.total}`);

// Check specific category
const apiSpending = await ledger.getCategorySpending('API/Services', 'this-month');
```

### 3. Generate Reports
```javascript
// Monthly report
const report = await ledger.generateReport('monthly', { month: '2024-01' });

// Custom date range
const customReport = await ledger.generateReport('custom', {
  startDate: '2024-01-01',
  endDate: '2024-01-31'
});
```

### 4. Budget Management
```ja...
README
# AgentLedger

**AI Agent Expense Tracking & Accounting for OpenClaw**

AgentLedger is a comprehensive expense tracking skill that helps AI agents maintain detailed financial records of purchases and spending. Perfect for tracking API costs, subscription services, infrastructure expenses, and any other purchases made by AI agents.

## 🌟 Features

### Core Functionality
- **Transaction Logging** - Log every purchase with amount, vendor, description, category, and context
- **Multi-Currency Support** - Track spending in different currencies
- **Account Management** - Manage multiple payment methods and cards
- **Budget Tracking** - Set spending limits and get alerts when approaching them
- **Natural Language Queries** - Ask questions like "How much did I spend on API keys this month?"
- **Detailed Reports** - Generate monthly, category, vendor, and trend reports
- **Data Export** - Export transactions to CSV or JSON formats
- **Receipt Storage** - Store receipt URLs and confirmation numbers

### Categories
Pre-defined spending categories for consistent tracking:
- **API/Services** - API credits, SaaS subscriptions
- **Infrastructure** - Hosting, domains, CDN
- **Marketing** - Advertising, social media tools  
- **Tools** - Software licenses, utilities
- **Subscriptions** - Recurring services
- **Other** - Miscellaneous expenses

### Smart Features
- **Privacy.com Integration** - Import transactions from Privacy card exports
- **Budget Alerts** - Automatic warnings when approaching spending limits
- **Trend Analysis** - Track spending patterns over time
- **Vendor Analysis** - See spending patterns by vendor
- **Time Period Filtering** - Support for natural language time periods

## 🚀 Quick Start

### Installation
```bash
# Clone or copy the skill to your workspace
cp -r agentledger /home/claw/.openclaw/workspace/

# Initialize the ledger
cd /home/claw/.openclaw/workspace/agentledger
node src/cli.js init
```

### Basic Usage

#### Log a Transaction
```bash
# Command...

相关技能

OpenClaw

xint

0xnyk

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

flightclaw

jackculpan

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

OpenClaw

openclaw-trading-assistant

openclaw-trade

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime...