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

# Sentry

The Sentry integration syncs error tracking data from your selected projects into Mains. Use Sentry issues as context when asking agents to investigate and fix bugs.

## **Authentication**

Sentry uses an **Auth Token** with an **Organization Slug** for authentication. Generate a token from your Sentry organization's settings under **Auth Tokens**.

<Note>
  Mains stores your Sentry credentials encrypted in the local database. They never leave your machine.
</Note>

## **Setup**

<Steps>
  <Step title="Connect Sentry">
    Go to **Settings > Connections** and click **Connect** next to Sentry. Enter your Auth Token and Organization Slug.
  </Step>

  <Step title="Select projects">
    After authentication, choose which Sentry projects to sync.
  </Step>

  <Step title="Initial sync">
    Mains fetches existing issues from the selected projects. Subsequent syncs happen incrementally.
  </Step>
</Steps>

## **Revoking access**

To disconnect Sentry, go to **Settings > Connections** and click **Revoke** next to Sentry. This removes all synced Sentry data and deletes the stored credentials.
