config.yaml while overriding specific values with environment variables in CI.
Configuration methods
CLI flags
Pass options directly to each command. Highest priority — always overrides other sources.
Environment variables
Set
ARCHEO_* variables in your shell or process environment. Override YAML and defaults.YAML file
Place a
config.yaml (or config.yml / .archeo-cluster.yaml) in your project directory.Precedence order
When the same setting is supplied from multiple sources, Archeo-Cluster applies the following priority (highest to lowest):- CLI flags — values passed directly on the command line
- Environment variables —
ARCHEO_*variables in the process environment - YAML config file — the first matching file found during directory traversal
- Built-in defaults — hardcoded defaults from the application models
Environment variable overrides are only applied when no YAML config file is found. If a config file is loaded successfully, environment variables for that session are ignored.
Config file lookup
Archeo-Cluster searches for a configuration file starting from the current working directory and walking up to each parent directory in turn. The first matching filename wins. Filenames checked (in order):Check current directory
Archeo-Cluster looks for each filename in the directory where you run the command.
Walk up to parent directories
If no file is found, it repeats the search in each parent directory until the filesystem root.
Default configuration values
The table below lists all settings and their built-in defaults.Detection
| Field | Default | Description |
|---|---|---|
detection.target_color | "#A98876" | Target color in hex format |
detection.min_area | 50 | Minimum contour area in pixels |
detection.max_area | 5000 | Maximum contour area in pixels |
detection.kernel_size | [5, 5] | Morphological operation kernel size |
detection.hue_offset | 10 | Hue tolerance for HSV color matching (0–90) |
detection.saturation_offset | 50 | Saturation tolerance for HSV color matching (0–127) |
detection.value_offset | 50 | Value tolerance for HSV color matching (0–127) |
Clustering
| Field | Default | Description |
|---|---|---|
clustering.max_k | 10 | Maximum clusters evaluated by the elbow method |
clustering.random_state | 42 | Random seed for reproducibility |
clustering.min_samples_per_cluster | 2 | Minimum samples required to form a cluster |
clustering.compute_silhouette | true | Compute silhouette scores alongside the elbow method |
Paths
| Field | Default | Description |
|---|---|---|
paths.data_dir | ./data | Base directory for input data |
paths.results_dir | ./results | Directory for output results |
paths.plots_dir | ./plots | Directory for generated plots |
Application
| Field | Default | Description |
|---|---|---|
debug | false | Enable debug mode |
log_level | "INFO" | Logging level (DEBUG, INFO, WARNING, ERROR) |
Next steps
YAML configuration
Full annotated example covering every available field.
Environment variables
Reference for all supported
ARCHEO_* environment variables.