Stop Guessing your
AI Costs
Track per-task, per-workflow, per-customer costs across LLM calls, MCP tools, and agent payments. Know what each agent task actually costs.
import Anthropic from "@anthropic-ai/sdk"; import { init, patchAnthropic } from "@grislabs/agentmeter"; // One line to start tracking init({ apiKey: process.env.AM_KEY }); const client = patchAnthropic(new Anthropic()); // Every call is now tracked const msg = await client.messages.create({ model: "claude-sonnet-4", max_tokens: 1024, messages: [{ role: "user", content: q }], });
AI Agent Cost Tracking
for Engineering Teams.
Your agents make 15+ LLM calls, 8 tool calls, and trigger payments per task. We tell you what each task actually costs — per workflow, per customer.
Cost by Customer
Know what each customer costs you. “Customer X spent $42.10 on 89 agent tasks this month.” Price your AI features with real data.
Workflow Attribution
Per-task cost with percentiles. “resolve-ticket costs $0.13 at p50, but $4.82 at p95 — you have a runaway problem.”
Budget Controls
Kill runaway agents before they drain your budget. Per-run, daily, and monthly limits across LLM + tools + payments.
Beyond LLM Costs
Track MCP tool costs, Stripe MPP payments, API calls, and compute. All cost types in one view.
LLM Cost Monitoring,
Three Ways.
From zero-config to full workflow tracing. Pick the level that fits.
Auto-Patch
Patch your Anthropic or OpenAI client. Every call tracked automatically.
patchAnthropic(client)Workflow Tracing
Wrap agent logic in trace() for per-task cost attribution with customer tags.
trace("resolve-ticket", tags, fn)MCP Middleware
Auto-track all MCP tool calls with per-tool cost configuration.
createMCPMiddleware(client, costs)CLI Included
Check your agent costs from the terminal.
- ✓status — total spend, top workflows, daily trend
- ✓workflows — cost percentiles (p50/p95) per workflow
- ✓customers — cost breakdown per customer
Stop Overpaying for AI Agent Infrastructure.
Start tracking your AI unit economics in 3 minutes. Open source SDK. Hosted API.