Anthropic SDK
Use @blyp/core/ai/anthropic when you want direct Anthropic SDK instrumentation without going through the Vercel AI SDK abstraction.
Install
Install the Anthropic SDK in the app that uses the traced client:
bun add @anthropic-ai/sdkwrapAnthropic()
import Anthropic from "@anthropic-ai/sdk";
import { wrapAnthropic } from "@blyp/core/ai/anthropic";
const anthropic = wrapAnthropic(
new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY }),
{
operation: "summarize_ticket",
}
);
await anthropic.messages.create({
model: "claude-sonnet-4-5",
max_tokens: 512,
messages: [
{ role: "user", content: "Summarize this support ticket" },
],
});wrapAnthropic() covers:
messages.create()
It emits one normalized ai_trace record per traced call with provider, model, operation, usage, finish reason, timing, and best-effort tool-call events.
Shared controls
Use AI Privacy & Capture for the shared capture, exclude, and limits controls.