> ## Documentation Index
> Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sentry Integration: Error Tracking for Agents

> Agents can read errors, manage issues, and track releases in Sentry. OAuth credentials are injected automatically.

## Overview

OneCLI connects AI agents to Sentry through OAuth. Agents can read error events, manage issues, view project and team info, and work with releases. The gateway injects OAuth credentials into requests to the Sentry API automatically.

<Note>
  Sentry is a cloud-only integration, available on the Team plan.
</Note>

## Setup

<Steps>
  <Step title="Go to Connections">
    Open the OneCLI dashboard and navigate to **Connections** > **Sentry**.
  </Step>

  <Step title="Authorize">
    Click **Connect Sentry**. You'll be redirected to Sentry to authorize OneCLI. Review the requested permissions and click **Authorize**.
  </Step>

  <Step title="Verify">
    After authorization, you'll be redirected back to the dashboard. The connection will show as **Connected** with your Sentry account email.
  </Step>
</Steps>

## What agents can do

| Area                       | Description                                                                                 |
| -------------------------- | ------------------------------------------------------------------------------------------- |
| **Events & Issues (read)** | Read errors, exceptions, and performance events. View issue details, tags, and stack traces |
| **Manage Issues (write)**  | Resolve, archive, and update issues. Assign issues to team members                          |
| **Projects**               | View project info, settings, and configurations                                             |
| **Releases**               | Manage releases, source maps, and deploys                                                   |
| **Organization**           | Read organization data and settings                                                         |
| **Teams & Members**        | View team membership, settings, and organization member info                                |

## Use cases

* Coding agents that check for regressions after deploying
* On-call agents that triage and resolve Sentry issues
* Monitoring agents that track error rates and alert on spikes
* Release management agents that tag deploys and upload source maps

## Controlling access with rules

Use OneCLI's [rules engine](/guides/rules) to control what agents can do. For example, allow read-only access to issues without letting agents resolve or archive them. Rules are evaluated before credential injection.
