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. WARDEN_MODEL is a fallback when warden.toml does not set a model; see Models and Runtimes.

WARDEN_MODELstring
Fallback model selector.
WARDEN_OPENAI_API_KEYsecret
OpenAI key for OpenAI Pi models.
WARDEN_ANTHROPIC_API_KEYsecret
Anthropic key for Anthropic Pi models or Claude runtime.
WARDEN_SENTRY_DSNoptional
Optional 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:

WARDEN_APP_IDstring
GitHub App ID.
WARDEN_PRIVATE_KEYsecret
Full PEM private key contents.

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