Files
owlen/crates/platform/config/README.md

19 lines
895 B
Markdown

# Owlen Config Agent
Configuration management for the Owlen AI agent.
## Overview
This crate handles loading, parsing, and persisting configuration settings. It uses a hierarchical approach, allowing global user settings to be overridden by project-specific configurations and environment variables.
## Features
- **Hierarchical Configuration:** Merges defaults, user config, project config, and env vars.
- **Strong Typing:** Provides a type-safe `Settings` struct for application-wide use.
- **Provider Preferences:** Manage model selections and provider-specific URLs.
- **Permission Mapping:** Integrates with the `permissions` crate to define tool-use policies.
## Usage
Configuration is typically loaded via `load_settings()`, which looks for:
1. `~/.config/owlen/config.toml` (Global)
2. `<project_root>/.owlen.toml` (Project-specific)
3. `OWLEN_*` environment variables (Overriding)