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:
Ollama doesn’t need an 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
Source
src/ai-blackteam/config.py