Config File Location
--config or by passing a path to load_config().
Full Default Config
This is what ai-blackteam uses when no config file exists:Setting Values
CLI
Python
Direct YAML Edit
Environment Variables
API Keys
Environment variables take precedence over null config values. ai-blackteam checks for{PROVIDER_NAME_UPPER}_API_KEY:
| Provider | Environment Variable |
|---|---|
| Anthropic | ANTHROPIC_API_KEY |
| OpenAI | OPENAI_API_KEY |
GOOGLE_API_KEY | |
| DeepSeek | DEEPSEEK_API_KEY |
| Mistral | MISTRAL_API_KEY |
| HuggingFace | HUGGINGFACE_API_KEY |
Config File References
You can reference environment variables in the config file:${VAR_NAME} syntax is resolved when config is loaded.
Config Resolution Order
- Default config (hardcoded)
- Config file (
~/.ai-blackteam/config.yaml) - merged on top - Environment variables - fill in null API keys
- If the config file has a non-null value, that’s used
- If the config value is null, ai-blackteam checks the environment variable
- If neither exists, the provider will fail with an auth error
Viewing Current Config
...).
Deep Merge
User config is deep-merged with defaults. This means you only need to specify what you want to change:Files and Directories
| Path | Purpose |
|---|---|
~/.ai-blackteam/ | Config directory |
~/.ai-blackteam/config.yaml | Main config file |
~/.ai-blackteam/results.db | SQLite database |
~/.ai-blackteam/datasets/ | Cached dataset files |
~/.ai-blackteam/datasets/{name}.jsonl | Individual dataset cache |
Source
src/ai-blackteam/config.py