sentry-setup-ai-monitoring

Detect installed AI SDKs and configure Sentry AI Agent Monitoring.

246|29|Updated Nov 10, 2025
One-click install
npx skills add https://github.com/getsentry/sentry-for-claude --skill sentry-setup-ai-monitoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-setup-ai-monitoring
Source: https://github.com/getsentry/sentry-for-claude/tree/main/skills/sentry-setup-ai-monitoring
Command: npx skills add https://github.com/getsentry/sentry-for-claude --skill sentry-setup-ai-monitoring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill configures Sentry AI Agent Monitoring to track LLM calls, agent executions, tool usage, and token consumption, enabling end-to-end visibility into AI workflows.

Core Features & Use Cases

  • AI SDK Detection: Detects installed AI SDKs (OpenAI, Anthropic, LangChain, etc.) and suggests integrations.
  • Automatic Instrumentation: Enables appropriate Sentry integrations to capture prompts, responses, and usage metrics.
  • Manual Instrumentation Option: Guidance for manual instrumentation if automatic detection isn’t available.

Quick Start

Detect your AI SDKs and enable an OpenAI integration to start capturing prompts and responses in Sentry.

Frequently Asked Questions about sentry-setup-ai-monitoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor LLM calls and token consumption in my application?

Monitor LLM calls and token consumption by configuring Sentry AI Agent Monitoring to automatically instrument your AI SDKs. The Skill detects installed libraries like OpenAI and Anthropic, then enables Sentry integrations to capture prompts, responses, and usage metrics end-to-end.

What AI SDKs and frameworks does Sentry AI Agent Monitoring support?

Sentry AI Agent Monitoring supports OpenAI, Anthropic, Vercel AI, LangChain, Google GenAI, and LangGraph. The Skill auto-detects which SDKs are installed in your JavaScript, TypeScript, or Python project and configures appropriate integrations for each.

Can I use Sentry AI monitoring with my existing LLM integration?

Yes. Sentry AI Agent Monitoring works with existing LLM integrations by detecting your installed AI SDKs and enabling tracing without replacing your current setup. It adds observability for agent executions, tool usage, and token consumption alongside your existing code.

How do I set up automatic instrumentation for AI monitoring?

Set up automatic instrumentation by running the Skill, which detects your installed AI SDKs, verifies minimum versions, and presents detection results before applying per-SDK integration setups. It enables tracing and configures Sentry to capture LLM interactions automatically.

What visibility does AI Agent Monitoring provide into agent workflows?

AI Agent Monitoring provides end-to-end visibility into agent workflows by tracking LLM calls, agent executions, tool usage, and token consumption. You see prompts, responses, and usage metrics in Sentry to understand how agents behave and consume resources.

Can I manually instrument AI monitoring if automatic detection doesn't work?

Yes. The Skill provides guidance for manual instrumentation when automatic SDK detection isn't available. Manual setup lets you configure Sentry integrations directly in your code to monitor LLM interactions and agent behavior.