AgentLens gives you instant visibility into every LLM call your agent makes — costs, latency, cache hit rate, and actionable recommendations to cut spend. One import change. No infra.
# Before from anthropic import Anthropic # After — one line change from agentlens import Anthropic client = Anthropic(agentlens_key="al_live_...")
One import change. No code instrumentation, no proxies, no config files. Works with Anthropic and OpenAI.
Per model, per endpoint, per session. See exactly which part of your agent is driving spend.
Automatically detects over-sized system prompts, missed caching opportunities, and expensive model choices.
$0 / month
$19 / month
Get started in under 2 minutes. No credit card required.
Create free account