Quick Start
Prerequisites
Section titled “Prerequisites”- Bun 1.2+
- Wrangler 4+
- A Cloudflare account (Workers Paid plan)
- A GitHub personal access token with
reposcope
Install
Section titled “Install”Clone the repository and install dependencies:
git clone https://github.com/danielbodnar/auto-sre-agents.gitcd auto-sre-agentsbun installConfigure Secrets
Section titled “Configure Secrets”Copy the example environment file and fill in your values:
cp .dev.vars.example .dev.varsEdit .dev.vars:
GITHUB_TOKEN=ghp_your_token_hereANTHROPIC_API_KEY=sk-ant-your_key_hereCLOUDFLARE_API_TOKEN=your_cf_api_tokenCLOUDFLARE_ACCOUNT_ID=your_account_idGenerate Types
Section titled “Generate Types”Generate the TypeScript types from your Wrangler configuration:
bunx wrangler@latest typesInitialize the Database
Section titled “Initialize the Database”Create the D1 tables locally:
bun run db:migrateStart Development
Section titled “Start Development”bun run devThis starts a local Wrangler development server. The Orchestrator API is available at http://localhost:8787.
Register a Service
Section titled “Register a Service”Tell Sentinel which Worker to monitor:
curl -X PUT http://localhost:8787/api/config/services/my-worker \ -H "Content-Type: application/json" \ -d '{ "serviceName": "my-worker", "repoUrl": "https://github.com/your-org/my-worker", "repoBranch": "main", "enabled": true }'Verify
Section titled “Verify”Check the health endpoint:
curl http://localhost:8787/api/healthList monitored services:
curl http://localhost:8787/api/config/servicesRun Tests
Section titled “Run Tests”bun testNext Steps
Section titled “Next Steps”- Configuration — tune polling intervals, error filters, and LLM models
- Architecture — understand how the agents communicate
- Deployment — deploy to Cloudflare Workers