Repository Setup
Initialize Warden in each repository:
npx @sentry/warden initThis creates:
| File | Purpose |
|---|---|
warden.toml | Configuration with skills and triggers. |
.github/workflows/warden.yml | GitHub Actions workflow. |
Secrets
Section titled “Secrets”Add the provider credentials used by your configured model. WARDEN_MODEL is a
fallback when warden.toml does not set a model; see Models and Runtimes.
| Secret | Purpose |
|---|---|
WARDEN_MODEL | Fallback model selector. |
WARDEN_OPENAI_API_KEY | OpenAI key for OpenAI Pi models. |
WARDEN_ANTHROPIC_API_KEY | Anthropic key for Anthropic Pi models or Claude runtime. |
WARDEN_SENTRY_DSN | Optional telemetry DSN. |
GitHub App
Section titled “GitHub App”By default, comments come from github-actions. Use a GitHub App for a branded
bot identity:
npx @sentry/warden setup-app --org your-orgAdd the generated app secrets:
| Secret | Purpose |
|---|---|
WARDEN_APP_ID | GitHub App ID. |
WARDEN_PRIVATE_KEY | Full PEM private key contents. |
Then use actions/create-github-app-token and pass the app token to Warden.