Skip to content

Sentry

CategoryMonitoring
CLIsentry-cli
AuthAPI key
ConfigSENTRY_AUTH_TOKEN (required), SENTRY_ORG (required), SENTRY_PROJECT (required)

Wraps sentry-cli to give CodeBuddy access to your Sentry error tracking. The agent can view recent errors, analyze frequency and impact, link errors to source code, and triage issues.

Install sentry-cli:

Terminal window
# macOS
brew install getsentry/tools/sentry-cli
# npm (any platform)
npm install -g @sentry/cli
# curl
curl -sL https://sentry.io/get-cli/ | bash

Configure authentication:

Terminal window
export SENTRY_AUTH_TOKEN="your-auth-token"
export SENTRY_ORG="your-org"
export SENTRY_PROJECT="your-project"

Verify:

Terminal window
sentry-cli info
  • Issues — list, view, resolve, unresolve
  • Events — view recent error events and stack traces
  • Releases — create, list, associate commits
  • Source maps — upload, validate
  • Deploys — register deployments
  • “Show the top 5 unresolved errors in production this week”
  • “Find the source code causing the TypeError in the auth module”
  • “Create a new Sentry release for v2.1.0 and associate the latest commits”
  • “Upload source maps for the production build”