Configuration
Kimera merges configuration from four sources. Later sources override earlier ones:
src/kimera/config/default.yaml— the packaged defaults.- A profile file, when one is selected.
- Environment variables.
- Runtime flags passed on the command line.
The merged result is validated against the ToolkitConfig schema before any command runs.
Profiles
Section titled “Profiles”A profile is a YAML file under the config directory’s profiles/ folder. It can set the namespace, the target services, the exploit_mappings that bind an exploit type to a workload, and the network_topology used for NetworkPolicy generation.
-n <namespace> loads profiles/<namespace>.yaml automatically when that file exists, so one namespace keeps one set of target settings. -p <name> selects a profile explicitly and overrides the namespace match. The bundled unguard profile is the worked example.
Config directory
Section titled “Config directory”Configuration ships inside the installed package. To supply your own profiles and checks without editing an installed package, set KIMERA_CONFIG_DIR to a directory laid out the same way. It replaces the packaged directory wholesale, so it needs its own default.yaml.
Environment variables
Section titled “Environment variables”The mappings in src/kimera/config/env_mappings.yaml route these variables into the config:
| Variable | Overrides |
|---|---|
KIMERA_NAMESPACE |
kubernetes.namespace |
KIMERA_CONTEXT |
kubernetes.context |
KIMERA_KUBECONFIG |
kubernetes.kubeconfig_path |
KIMERA_DRY_RUN |
dry_run |
KIMERA_DEBUG |
debug |
KIMERA_VERBOSE |
verbose |
KIMERA_TIMEOUT_ROLLOUT |
timeouts.rollout |
KIMERA_TIMEOUT_STREAM |
timeouts.stream |
KIMERA_TIMEOUT_COMMAND |
timeouts.command |
KIMERA_LOG_LEVEL |
logging.level |
KIMERA_LOG_FILE |
logging.file |
Two more variables are read outside this mapping table: KIMERA_CONFIG_DIR selects the config directory, and KIMERA_LLM_PROVIDER forces a completion backend. The Helm server Deployment sets KIMERA_TARGET_NAMESPACE, but that name is in no mapping and is read nowhere in the source, so it has no effect; see Helm values.
Timeouts
Section titled “Timeouts”The timeouts block sets three limits in seconds: rollout (deployment rollout wait, default 120), stream (stream read, default 1), and command (in-pod command, default 60). Override them in a profile or through the KIMERA_TIMEOUT_* variables.
LLM provider selection
Section titled “LLM provider selection”Commands that call a model, such as remediation generation, pick a backend in this order:
KIMERA_LLM_PROVIDER, when set, forces a backend:anthropic,litellm, orclaude-cli. An unknown value, or one whose requirement is unmet, is an error rather than a silent fallback.- A model identifier containing a slash (
provider/model) routes through litellm. ANTHROPIC_API_KEY, when set, selects the Anthropic SDK.- The signed-in
claudeCLI, when present onPATH.
With none of these available, the command reports that no backend is configured. The default model is claude-sonnet-4-6; litellm needs the litellm extra, and the Anthropic SDK needs the llm extra.
All product names and logos are trademarks of their respective owners, used for identification only. No endorsement is implied.
