Observe AI agents that call Anthropic.
Your agent calls Claude Opus, Sonnet, or Haiku via the Messages API. Trefur auto-instruments the SDK and captures each call as a span on the agent trace — with prompts, completions, tool cycles, and any retries in between.
What you see.
Why it matters.
For engineers
One line at startup auto-instruments the Anthropic SDK. Existing Messages and tool-use code keeps working; the trace shows every call with the prompt the model saw and the completion it returned.
For platform teams
Roll up Anthropic usage per agent, per environment. One trace shape across Anthropic, OpenAI, Bedrock, Azure so dashboards keep working when teams swap vendors.
For business operators
Know which workflows depend on Claude models and what they cost. Catch silent model upgrades or downgrades that drift cost-per-run.
For SRE
Anthropic overloaded and rate-limit errors land on the span. Envelope alerts catch retry-rate spikes and route to oncall with the trace already attached.
How it works.
The Trefur SDK wraps the Anthropic client. TrefurObserve.init() and patch_anthropic(obs) at startup register the hooks; every messages.create call emits a span with the prompt, the completion, tokens, USD per current pricing, and any tool-use cycle as children. The collector can run inside your network if you want prompt content to stay local.
See what your Claude agents are actually doing.
Free tier. No card required. First trace in under five minutes.