Configuration¶
Interactive Setup¶
The easiest way to configure iam-zero:
iam-zero configure
This prompts you for:
- Anthropic API Key — get one from console.anthropic.com
- GitHub Token (optional) — classic PAT with
reposcope from GitHub Settings - Default AWS Profile (optional) — your AWS profile name
- Default GCP Project (optional) — your GCP project ID
Configuration File¶
Settings are stored in ~/.iam-zero/config.toml:
[anthropic]
api_key = "sk-ant-..."
[github]
token = "ghp_..."
repo = "your-org/your-infra"
[aws]
profile = "default"
[gcp]
project = "my-project"
Environment Variables¶
You can also use environment variables:
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY |
Anthropic API key |
GITHUB_TOKEN |
GitHub PAT |
AWS_PROFILE |
AWS profile name |
GCP_PROJECT |
Default GCP project |
Environment variables take precedence over config file values.