Skip to content

Quick Start

  • Bun 1.2+
  • Wrangler 4+
  • A Cloudflare account (Workers Paid plan)
  • A GitHub personal access token with repo scope

Clone the repository and install dependencies:

Terminal window
git clone https://github.com/danielbodnar/auto-sre-agents.git
cd auto-sre-agents
bun install

Copy the example environment file and fill in your values:

Terminal window
cp .dev.vars.example .dev.vars

Edit .dev.vars:

GITHUB_TOKEN=ghp_your_token_here
ANTHROPIC_API_KEY=sk-ant-your_key_here
CLOUDFLARE_API_TOKEN=your_cf_api_token
CLOUDFLARE_ACCOUNT_ID=your_account_id

Generate the TypeScript types from your Wrangler configuration:

Terminal window
bunx wrangler@latest types

Create the D1 tables locally:

Terminal window
bun run db:migrate
Terminal window
bun run dev

This starts a local Wrangler development server. The Orchestrator API is available at http://localhost:8787.

Tell Sentinel which Worker to monitor:

Terminal window
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
}'

Check the health endpoint:

Terminal window
curl http://localhost:8787/api/health

List monitored services:

Terminal window
curl http://localhost:8787/api/config/services
Terminal window
bun test