AI & LLM integrations
Trace the model calls, agent steps, and tool calls in your AI application. Instrument the SDK or library you already use, or connect a hosted telemetry source such as OpenRouter Broadcast. The resulting spans show up in Logfire with prompts, tokens, cost, and latency where the integration captures them.
Pydantic AIOpenAIOROpenRouter BroadcastGoogle Gen AIAnthropicClaude PlatformLangChainLiLiteLLMDSPyMCPLlamaIndexMirascopeMaMagenticPxPixeltable
Any OpenTelemetry-compatible LLM SDK can send to Logfire. See Alternative clients for the generic pattern.