Environment Variables
The healing stack is configured through a single .env at the repo root
(start from .env.example).
Service
| Variable | Default | Description |
|---|---|---|
SERVICE_PORT | 4400 | Port the coordination service listens on. |
SERVICE_URL | http://localhost:4400 | How other components reach the service. |
AUTOWRIGHT_DB_PATH | /data/autowright.db | SQLite database location (persisted volume in Docker). |
AUTOWRIGHT_DEDUPE_TTL_MS | 86400000 (24h) | Window during which repeat incidents with the same error hash are deduplicated. |
Fixer
| Variable | Default | Description |
|---|---|---|
ANTHROPIC_API_KEY | — | Required for fixing. Powers the Claude agent. |
GITHUB_TOKEN | — | Required for PRs. Used to clone repos and open pull requests. |
SLACK_WEBHOOK_URL | — | Optional. Fix-proposed / needs-attention notifications with cost breakdowns. |
POLL_INTERVAL_MS | 5000 | How often the fixer polls the service for pending jobs. |
MAX_CONCURRENT_FIXES | 2 | Fix jobs processed in parallel. |
Artifact storage
| Variable | Default | Description |
|---|---|---|
STORAGE_ENDPOINT | http://localhost:9000 | S3-compatible endpoint (local MinIO by default). |
STORAGE_BUCKET | autowright-artifacts | Bucket for evidence bundles. |
MINIO_ACCESS_KEY | autowright | Access key. |
MINIO_SECRET_KEY | autowright-secret | Secret key. |
Dashboard
| Variable | Default | Description |
|---|---|---|
AUTOWRIGHT_SERVICE_URL | http://localhost:4400 | Service URL the dashboard reads stats and fixes from. |
Demo / testing
| Variable | Default | Description |
|---|---|---|
TARGET_URL | http://localhost:3000 | Demo target site URL. |
CHAOS | false | When true, the demo site renames its login button to force a deterministic SELECTOR_NOT_FOUND — the fastest way to watch a fix happen end-to-end. |