
Research
/Security News
GlassWASM: WebAssembly Malware Found in Trojanized Open VSX Extensions
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.
Track what your AI agents actually spend. Real-time cost monitoring for Claude, OpenAI, and other LLM APIs.
Stop guessing what AI costs you. Real-time cost monitoring for Claude, OpenAI, and Gemini APIs.
You run Claude Code overnight. You wake up. Your API bill is $247. You have no idea which session burned it, which model was used, or whether prompt caching saved you anything.
agentmoney shows you exactly where every dollar goes.
npm install -g agentmoney
Or run directly:
npx agentmoney demo
# How much does a Sonnet call with 5K input / 1K output cost?
agentmoney calc -m claude-sonnet-4-6 -i 5000 -o 1000
# With prompt caching
agentmoney calc -m claude-sonnet-4-6 -i 5000 -o 1000 --cache-read 3000
# 50 API calls, ~3K input / ~800 output each
agentmoney estimate -m claude-sonnet-4-6 -c 50 --avg-input 3000 --avg-output 800
agentmoney models
# Start the proxy on port 8999
agentmoney proxy --port 8999 --alert 5.00
# Then point your API client at the proxy:
ANTHROPIC_BASE_URL=http://localhost:8999 your-app
# View live dashboard at http://localhost:8999/dashboard
# View cost JSON at http://localhost:8999/costs
# Last 7 days
agentmoney usage
# Last 30 days, JSON output
agentmoney usage --days 30 --json
agentmoney demo
agentmoney demo
Simulating 8 API calls...
........
agentmoney summary
──────────────────────────────────────────────────
Total cost: $0.1842
Total calls: 8
Sessions: 1
By provider:
anthropic $0.1732 (7 calls)
openai $0.0110 (1 calls)
By model:
claude-sonnet-4-6 $0.1041 (4 calls, 37.8K tokens)
claude-opus-4-6 $0.0750 (1 calls, 5.8K tokens)
claude-haiku-4-5 $0.0027 (2 calls, 3.0K tokens)
gpt-4o $0.0110 (1 calls, 2.6K tokens)
| Command | Description |
|---|---|
agentmoney | Show quick start guide and available commands |
agentmoney demo | Simulate 8 API calls and see the cost breakdown |
agentmoney calc | Calculate cost for a single API call |
agentmoney estimate | Estimate cost for a multi-call session |
agentmoney models | List all supported models and pricing |
agentmoney proxy | Start a local proxy with web dashboard + cost tracking |
agentmoney usage | Fetch real usage data from the Anthropic API |
The proxy sits between your application and the AI API, intercepting responses to extract token usage and calculate costs in real-time.
Your App → agentmoney proxy (localhost:8999) → api.anthropic.com
↓
Cost tracking
Web dashboard (Chart.js)
JSONL call log
Session reports
| Path | Description |
|---|---|
GET /dashboard | Web dashboard with Chart.js charts (cost per agent/day, model breakdown, hourly trends) |
GET /health | Proxy status + total cost (JSON) |
GET /costs | Full cost breakdown (JSON API) |
* /* | All other requests proxied to the target |
# Warn when session cost exceeds $5
agentmoney proxy --alert 5.00
Pricing is current as of March 2026. Fuzzy model name matching handles date suffixes (claude-sonnet-4-6-20260301) and provider prefixes (anthropic/claude-sonnet-4-6). Unknown models default to Sonnet-tier pricing ($3/$15).
| Model | Input/MTok | Output/MTok | Cache Read/MTok | Cache Write/MTok |
|---|---|---|---|---|
| claude-opus-4-6 | $5.00 | $25.00 | $0.50 | $6.25 |
| claude-opus-4-5 | $5.00 | $25.00 | $0.50 | $6.25 |
| claude-sonnet-4-6 | $3.00 | $15.00 | $0.30 | $3.75 |
| claude-sonnet-4-5 | $3.00 | $15.00 | $0.30 | $3.75 |
| claude-haiku-4-5 | $1.00 | $5.00 | $0.10 | $1.25 |
| claude-opus-4-1 | $15.00 | $75.00 | $1.50 | $18.75 |
| claude-3-5-haiku | $0.80 | $4.00 | $0.08 | $1.00 |
| claude-3-haiku | $0.25 | $1.25 | $0.03 | $0.30 |
| Model | Input/MTok | Output/MTok | Cache Read/MTok |
|---|---|---|---|
| gpt-4.1 | $2.00 | $8.00 | $0.50 |
| gpt-4.1-mini | $0.40 | $1.60 | $0.10 |
| gpt-4.1-nano | $0.10 | $0.40 | $0.025 |
| gpt-4o | $2.50 | $10.00 | $1.25 |
| gpt-4o-mini | $0.15 | $0.60 | $0.075 |
| o3 | $2.00 | $8.00 | $0.50 |
| o4-mini | $1.10 | $4.40 | $0.275 |
| o1 | $15.00 | $60.00 | — |
| Model | Input/MTok | Output/MTok |
|---|---|---|
| gemini-2.0-flash | $0.10 | $0.40 |
| gemini-2.0-pro | $1.25 | $5.00 |
| gemini-1.5-flash | $0.075 | $0.30 |
agentmoney saves reports to .agentmoney/:
calls.jsonl — Every API call as a JSON line (append-only log)report-YYYY-MM-DD.json — Daily cost report (structured data)report-YYYY-MM-DD.md — Daily cost report (markdown, shareable)| Flag | Default | Description |
|---|---|---|
--port <n> | 8999 | Proxy port |
--target <url> | https://api.anthropic.com | Target API URL |
--alert <amount> | none | Warn when session cost exceeds this (USD) |
--json | false | Output as JSON (calc, models, usage) |
--model <id> | required | Model name for calc/estimate |
--days <n> | 7 | Days to fetch for usage command |
Fetch your real API spending directly from Anthropic (no proxy needed):
agentmoney usage --days 30
Calls the Anthropic /v1/usage endpoint and calculates costs using the same pricing engine. Requires ANTHROPIC_API_KEY with admin-level permissions.
usage block (input_tokens, output_tokens, cache tokens), calculates cost using built-in pricing tables, logs to JSONL, serves web dashboardPRs welcome. Especially:
MIT
FAQs
Track what your AI agents actually spend. Real-time cost monitoring for Claude, OpenAI, and other LLM APIs.
The npm package agentmoney receives a total of 1 weekly downloads. As such, agentmoney popularity was classified as not popular.
We found that agentmoney demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.