@agentmeter/sdk. It auto-instruments supported provider clients and emits server-priced telemetry to AgentMeter.
Initialize
endpoint for self-hosted deployments. Omit it for AgentMeter Cloud.
Auto-instrumentation
Importing the SDK patches supported provider clients in the host process. Current coverage:- OpenAI.
- Anthropic.
- Vercel AI.
customer_id, and step_name when a tracking context is active.
Tracking context
track uses async context so metadata follows nested awaits without manual argument threading.
Non-LLM usage
Budget hard stops
Webhook verification
sha256= prefixed signatures.