Configuration
Optional eridas.config.json in the project root. Missing config is fine — defaults apply. Never put secrets in the file.
Example
{
"schemaVersion": 1,
"severityThreshold": "low",
"updatePolicy": {
"allowMajor": false,
"verificationCommands": ["npm test"]
},
"ai": {
"enabled": false,
"provider": "openai-compatible",
"model": "your-model",
"baseURL": "http://localhost:11434/v1"
},
"schedule": {
"cron": "0 9 * * 1",
"mode": "scan"
}
}Fields
| Field | Default | Notes |
|---|---|---|
| severityThreshold | low | Minimum severity to report |
| updatePolicy.allowMajor | false | Same as --allow-major |
| updatePolicy.verificationCommands | [] | Shell commands after rescan |
| ai.enabled | false | Or pass --ai |
| ai.provider | openai-compatible | openai, anthropic, google, openai-compatible |
| schedule.cron | 0 9 * * 1 | Used by eridas init |
| schedule.mode | scan | scan or fix |
AI credentials
Credentials come only from environment variables.
| Provider | Default env var |
|---|---|
| openai | OPENAI_API_KEY |
| anthropic | ANTHROPIC_API_KEY |
| GOOGLE_GENERATIVE_AI_API_KEY | |
| openai-compatible | ERIDAS_AI_API_KEY |