Agent Plugin
Install the Sentry plugin for your AI coding assistant so it can set up Sentry, find and fix production issues, and configure monitoring, all from a prompt.
Whether you're adding Sentry to a new project, debugging a spike in errors, or wiring up alerts, just ask. The plugin gives your assistant the context it needs to do it right.
Supports Claude Code, Cursor, Codex, and Grok.
Run one of these in your terminal:
npx @sentry/agent-plugin install
npx @sentry/agent-plugin install
npx @sentry/dotagents add getsentry/agent-plugin
@sentry/agent-plugin detects which assistants you have on your machine, lets you pick the ones you want, and wires the plugin into each. Already have it? The same command updates you to the latest version.
dotagents is an alternative if you already manage agent tooling that way.
Restart your AI tools afterward so they load the plugin.
The plugin configures the Sentry MCP server for you during install, so there's nothing else to connect. A few workflow tasks also need the GitHub CLI (gh) for reading and replying to PR comments.
Set up Sentry in any project. The plugin detects your stack, recommends the right features, and walks through the whole installation, so you're not copy-pasting from docs.
> Add Sentry to my Next.js app
> Set up Sentry in my Rails project
> Add error monitoring to my iOS app
> Add Sentry to my Next.js app
> Set up Sentry in my Rails project
> Add error monitoring to my iOS app
Find and fix production issues. Query your Sentry environment, triage errors, and fix them in place.
> What are the top errors in the last 24 hours?
> Which issues are affecting the most users?
> Fix the recent Sentry errors
> What are the top errors in the last 24 hours?
> Which issues are affecting the most users?
> Fix the recent Sentry errors
Review code with Sentry context. Resolve the bugs that Sentry and Seer flag in your pull request comments.
> Review PR #123 and fix the Sentry comments
> Review PR #123 and fix the Sentry comments
Configure monitoring. Set up alerts, instrument your AI and LLM calls, and connect OpenTelemetry pipelines.
> Create a Slack alert for new high-priority issues
> Monitor my OpenAI calls with Sentry
> Set up an OTel Collector with the Sentry exporter
> Create a Slack alert for new high-priority issues
> Monitor my OpenAI calls with Sentry
> Set up an OTel Collector with the Sentry exporter
npx @sentry/agent-plugin remove
npx @sentry/agent-plugin remove
This only offers the assistants that currently have the plugin and removes just the Sentry plugin, leaving each tool's marketplace registered. Restart your AI tools afterward to drop it.
The plugin is built from the sentry-for-ai repository, the source of truth for every skill and command. To add a skill or fix an existing one, open a pull request there. Skills follow the Agent Skills specification: each is a directory with a SKILL.md file that holds YAML frontmatter and markdown instructions.
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").