You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/agentic-usage.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,17 @@ title: Agentic Usage
3
3
description: Enable AI coding agents to use the Sentry CLI
4
4
---
5
5
6
-
AI coding agents like Claude Code can use the Sentry CLI through the skill system. This allows agents to interact with Sentry directly from your development environment.
6
+
AI coding agents like Claude Code and Cursor can use the Sentry CLI through the skill system. This allows agents to interact with Sentry directly from your development environment.
7
7
8
-
## Adding the Skill
8
+
## Automatic Installation
9
9
10
-
Add the Sentry CLI skill to your agent:
10
+
When you install the CLI (via `curl`, Homebrew, or a package manager), `sentry cli setup` automatically installs agent skills into any detected agent root directories (`~/.claude`, `~/.agents`). Skills are also refreshed on `sentry cli upgrade`. No network fetch is needed — skill files are embedded in the binary.
11
+
12
+
To skip automatic skill installation, pass `--no-agent-skills` to `sentry cli setup`.
13
+
14
+
## Manual Installation
15
+
16
+
Add the Sentry CLI skill to your agent manually:
11
17
12
18
```bash
13
19
npx skills add https://cli.sentry.dev
@@ -43,4 +49,4 @@ The skill uses your existing CLI authentication, so you'll need to run `sentry a
43
49
## Requirements
44
50
45
51
- An authenticated Sentry CLI installation (`sentry auth login`)
46
-
- An AI coding agent that supports the skills system (e.g., Claude Code)
52
+
- An AI coding agent that supports the skills system (e.g., Claude Code, Cursor, or any agent using `~/.agents`)
The stored OAuth token takes priority because it supports automatic refresh. To override this and force environment tokens to win, set `SENTRY_FORCE_ENV_TOKEN=1`.
86
88
87
89
When a token comes from an environment variable, the CLI skips expiry checks and automatic refresh.
"Authentication token for the Sentry API. This is the primary way to authenticate in CI/CD pipelines and scripts where interactive login is not possible.\n\nYou can create auth tokens in your [Sentry account settings](https://sentry.io/settings/account/api/auth-tokens/). When set, this takes precedence over any stored OAuth token from `sentry auth login`.",
35
+
"Authentication token for the Sentry API. This is the primary way to authenticate in CI/CD pipelines and scripts where interactive login is not possible.\n\nYou can create auth tokens in your [Sentry account settings](https://sentry.io/settings/account/api/auth-tokens/). By default, a stored OAuth token from `sentry auth login` takes priority over this variable. Set `SENTRY_FORCE_ENV_TOKEN=1` to give environment tokens precedence instead.",
0 commit comments