Installing the Sentry plugin was a one-way door — there was no built-in way to take it back out. Add a `remove` subcommand that mirrors install: it reuses the detect and select steps, then uninstalls the plugin from each chosen agent (claude plugin uninstall, codex plugin remove, grok plugin uninstall, and deleting the Cursor checkout). Removal only takes out our own plugin. Any marketplace we registered is left in place — Claude's is Anthropic's shared official one, so deregistering it could pull it out from under other plugins — and the install-time cleanup of conflicting plugins does not run. The UI is factored into a shared runFlow driven by a FlowMode descriptor so install and remove share detection, selection, concurrency, and output streaming while differing only in their tagline, prompt copy, per-agent action, and closing line. The remove flow leads with a static "Neuralyzing your agents of Sentry." header (no shimmer). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2.7 KiB
@sentry/ai
Install the Sentry plugin into your AI coding assistants.
The plugin teaches your assistant Sentry — how to set it up in any project, how to find and fix production issues, and how to configure alerts, AI monitoring, and more. This package detects which assistants you have installed and wires the plugin into each one for you.
Supports Claude Code, Codex, Cursor, and Grok.
npx @sentry/ai install
This detects the AI coding tools on your machine, lets you choose which ones to set up, and installs the Sentry plugin into each. Already have it installed? The same command updates it to the latest version.
Restart your AI tools afterward to load the plugin.
Options
npx @sentry/ai install # interactive — pick which agents to set up
npx @sentry/ai install --no-interactive # install into every detected agent
The non-interactive mode is intended for CI and unattended runs.
What it installs
For each detected assistant, the installer runs that tool's native plugin command:
| Assistant | How it's installed |
|---|---|
| Claude Code | claude plugin install sentry from the official plugin marketplace |
| Codex | codex plugin add sentry from the Sentry plugin marketplace |
| Cursor | Clones getsentry/plugin-cursor into ~/.cursor/plugins/local/sentry |
| Grok | grok plugin install getsentry/plugin-grok |
Each per-agent plugin is built and published from the sentry-for-ai repository, which is the source of truth for all skills and commands.
Removing the plugin
npx @sentry/ai remove # interactive — pick which agents to remove from
npx @sentry/ai remove --no-interactive # remove from every agent that has it
uninstall is an alias for remove. This only offers agents that currently have the plugin, and removes the Sentry plugin itself — each tool's plugin marketplace is left registered. Restart your AI tools afterward to drop the plugin.
Requirements
- Node.js 18 or newer
- The assistant CLI you want to set up must already be installed and on your
PATH gitis required for the Cursor install
License
MIT