Install the Sentry plugin in your coding agent
One command installs the Sentry plugin in your coding agent, so it can set up Sentry, fix errors, configure alerts, and more.
Before you start
Tools
- One supported coding agent: Claude Code, Cursor, Codex, Grok, GitHub Copilot (CLI or VS Code), or Google Antigravity
- Node.js and
npxfor the shared installer
Accounts & access
- A Sentry account with access to a project
1 Install the plugin
Run the installer below. It detects which agents you have installed, lets you pick the ones to configure, and wires up the Sentry MCP server and plugin commands for each one. The shared installer supports Claude Code, Cursor, Codex, and Grok. For GitHub Copilot and Google Antigravity, use the native install commands.
Sentry agent plugin documentationnpx @sentry/agent-plugin installDetects Claude Code, Cursor, Codex, and Grok on your machine and configures them in one step.
# Claude Code
claude plugin install sentry@claude-plugins-official
# Cursor
# Open Cursor Settings > Plugins and add getsentry/plugin-cursor
# Codex
codex plugin marketplace add getsentry/plugin-codex
codex plugin add sentry@sentry-plugin-marketplace
# Grok
grok plugin install getsentry/plugin-grok --trust
# GitHub Copilot CLI
copilot plugin marketplace add getsentry/plugin-copilot
copilot plugin install sentry@sentry-copilot-marketplace
# GitHub Copilot in VS Code
# Add "getsentry/plugin-copilot" to the chat.plugins.marketplaces setting,
# then search @agentPlugins in the Extensions view and install sentry
# Google Antigravity
agy plugin install https://github.com/getsentry/plugin-antigravityConfigure each agent individually. GitHub Copilot and Google Antigravity install this way.
2 Run a prompt
Open your agent in a repository connected to your Sentry project and try any of these prompts.
Add Sentry to my Next.js app
What are the top errors in the last 24 hours? Fix the most critical one.
Monitor my OpenAI calls with Sentry
Create a Slack alert for new high-priority issues
Review PR #123 and fix the Sentry comments
3 Go deeper with Seer and custom workflows
The plugin does more than fix errors. Use Seer to get AI root-cause analysis on any issue, or build custom workflows that combine Sentry context with your own tools. See the agent plugin documentation for the full list of capabilities.
Explore all plugin capabilitiesThat's it.
Your agent has production context.
The Sentry plugin gives your coding agent access to errors, traces, logs, and Seer analysis so it can do more than just fix bugs.
- Installed the Sentry plugin in a supported coding agent
- Tried prompts for setup, debugging, monitoring, and code review
- Explored what the plugin can do with Seer and custom workflows
Pro tips
- 💡 The shared installer detects Claude Code, Cursor, Codex, and Grok on your machine. Run it once to configure several agents at the same time.
- 💡 Run prompts from the repository that matches your Sentry project so the agent can connect production context to the right code.
- 💡 Ask the agent to show its diff and verification output before you accept a fix.
Common pitfalls
- ⚠️ Restart your coding agent after installation so it loads the plugin.
- ⚠️ Run the prompt from a repo that has a Sentry project connected, otherwise the agent won't have context to work with.
Frequently asked questions
What's next?
Give your agent production context.
Install the plugin and try a prompt in under 5 minutes.