Skip to content

Environment Variables

The healing stack is configured through a single .env at the repo root (start from .env.example).

Service

VariableDefaultDescription
SERVICE_PORT4400Port the coordination service listens on.
SERVICE_URLhttp://localhost:4400How other components reach the service.
AUTOWRIGHT_DB_PATH/data/autowright.dbSQLite database location (persisted volume in Docker).
AUTOWRIGHT_DEDUPE_TTL_MS86400000 (24h)Window during which repeat incidents with the same error hash are deduplicated.

Fixer

VariableDefaultDescription
ANTHROPIC_API_KEYRequired for fixing. Powers the Claude agent.
GITHUB_TOKENRequired for PRs. Used to clone repos and open pull requests.
SLACK_WEBHOOK_URLOptional. Fix-proposed / needs-attention notifications with cost breakdowns.
POLL_INTERVAL_MS5000How often the fixer polls the service for pending jobs.
MAX_CONCURRENT_FIXES2Fix jobs processed in parallel.

Artifact storage

VariableDefaultDescription
STORAGE_ENDPOINThttp://localhost:9000S3-compatible endpoint (local MinIO by default).
STORAGE_BUCKETautowright-artifactsBucket for evidence bundles.
MINIO_ACCESS_KEYautowrightAccess key.
MINIO_SECRET_KEYautowright-secretSecret key.

Dashboard

VariableDefaultDescription
AUTOWRIGHT_SERVICE_URLhttp://localhost:4400Service URL the dashboard reads stats and fixes from.

Demo / testing

VariableDefaultDescription
TARGET_URLhttp://localhost:3000Demo target site URL.
CHAOSfalseWhen 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.