Skip to content

Repository Setup

Initialize Warden in each repository:

Terminal window
npx @sentry/warden init

This creates:

FilePurpose
warden.tomlConfiguration with skills and triggers.
.github/workflows/warden.ymlGitHub Actions workflow.

Add the provider credentials used by your configured model:

SecretPurpose
WARDEN_MODELPi model selector.
WARDEN_OPENAI_API_KEYOpenAI key for OpenAI Pi models.
WARDEN_ANTHROPIC_API_KEYAnthropic key for Anthropic Pi models or Claude runtime.
WARDEN_SENTRY_DSNOptional telemetry DSN.

By default, comments come from github-actions. Use a GitHub App for a branded bot identity:

Terminal window
npx @sentry/warden setup-app --org your-org

Add the generated app secrets:

SecretPurpose
WARDEN_APP_IDGitHub App ID.
WARDEN_PRIVATE_KEYFull PEM private key contents.

Then use actions/create-github-app-token and pass the app token to Warden.