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.
// Add one import. That's it. import "@grislabs/agentmeter/auto"; // Your code stays exactly the same import Anthropic from "@anthropic-ai/sdk"; const client = new Anthropic(); const msg = await client.messages.create({ model: "claude-sonnet-4", max_tokens: 1024, messages: [{ role: "user", content: q }], }); // ^ cost tracked automatically
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.
One Import
Add one line. All Anthropic and OpenAI calls are tracked. No wrappers, no callbacks.
import "@grislabs/agentmeter/auto"Workflow Tracing
Wrap agent logic in trace() for per-task, per-customer cost attribution.
trace("resolve-ticket", tags, fn)Zero Code Changes
Use a CLI flag and env var. No file changes at all.
node --require @grislabs/agentmeter/register app.jsCLI 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.