Skip to main content
Sentry CLI integrates with Seer AI to provide automated root cause analysis and solution planning for issues. The AI analyzes your error data, stack traces, and code context to identify what caused the issue and suggest how to fix it.

Prerequisites

  • GitHub integration configured for your organization
  • Code mappings set up for your project
  • Seer AI enabled in your organization settings
Seer AI is available on Business and Enterprise plans. Visit your organization’s Settings > Seer to enable it.

Commands

Explain: Root Cause Analysis

The issue explain command analyzes an issue and identifies the root cause:
The analysis provides:
  • Identified root causes
  • Reproduction steps
  • Relevant code locations
To create a plan, run: sentry issue plan 123456789

Issue ID Formats

You can reference issues in multiple ways:

Force Fresh Analysis

Use --force to trigger a new analysis even if one exists:

Plan: Solution Generation

The issue plan command generates a solution plan with implementation steps:
The plan command automatically runs root cause analysis if needed, so you don’t need to run explain first.

Selecting a Root Cause

If multiple root causes are identified, you must specify which one to plan for:
Then specify the cause ID:

Regenerate a Plan

Use --force to create a new plan even if one exists:

Scripting with JSON Output

Both commands support --json for automation:

Troubleshooting

Seer Not Enabled

If you see an error about Seer not being enabled:
Visit your organization settings to enable Seer AI.

No Budget Remaining

Contact your billing admin or wait for the next billing cycle.

GitHub Integration Required

Seer requires GitHub integration and code mappings to analyze your code:
  1. Install the GitHub integration in Settings > Integrations
  2. Configure code mappings in your project settings
  3. Try the command again

Analysis Takes Too Long

The first analysis may take several minutes. Progress is shown with a spinner:
If it times out, try again - subsequent analyses use cached results and complete faster.