# Environment variables

Set these on the **worker** host (e.g. in the service's environment file) to
configure providers and tune behaviour.

## Provider keys (BYOK)

| Variable | Purpose |
|---|---|
| `ANTHROPIC_API_KEY` | claude via Anthropic API (or use a Claude subscription login) |
| *(provider‑specific)* | opencode / pi / tau per that tool's configuration |

AM never reads these on the panel — they're used only by the local harness. See
[BYOK](/docs/byok-provider-keys).

## Verification gate

| Variable | Default | Purpose |
|---|---|---|
| `AM_VERIFY_TIMEOUT` | 10m | Max time for a single verify run |
| `AM_VERIFY_MAX_ITERATIONS` | 3 | Fix‑loop attempts before giving up |

## Agents & runs

| Variable | Default | Purpose |
|---|---|---|
| `AM_AGENT_IDLE_TIMEOUT` | 360s | Idle backstop before an agent is considered stuck |
| `AM_SCOUT_TIMEOUT` | 6m | Max time for an [explore](/docs/explore-mode) scout to produce candidates |

## Notes

- After changing any provider key, **restart the worker** so probes refresh.
- `GITHUB_TOKEN` for pushes/PRs is provided per‑run by the panel from your
  [GitHub connection](/docs/connect-github) and masked in output — you don't set
  it on the worker.

## Related

- [BYOK provider keys](/docs/byok-provider-keys) · [CLI](/docs/cli)
