zeph-config
Pure-data configuration types for Zeph — all TOML config structs with serde derive, validation, and migration support.
Overview
Central repository for every typed configuration struct used across the Zeph workspace. Loading, parsing, and TOML migration live here; downstream crates pull the types they need without taking a dependency on the full agent stack. Configuration is sourced from a TOML file and can be overridden by ZEPH_* environment variables.
[!WARNING] v0.17.0 breaking change:
[llm.cloud],[llm.openai],[llm.orchestrator], and[llm.router]are replaced by[[llm.providers]]. Runzeph migrate-config --in-placeto upgrade automatically.
The minimal new format:
[]
[[]]
= "ollama"
= "qwen3:8b"
= "qwen3-embedding"
Key types
| Type | TOML section | Description |
|---|---|---|
Config |
root | Top-level aggregate; resolved by Config::load() |
AgentConfig |
[agent] |
Agent loop settings, instruction files, self-learning |
LlmConfig |
[llm] + [[llm.providers]] |
Provider pool, routing strategy, summary provider |
MemoryConfig |
[memory] |
SQLite pool, vector backend, compaction, graph memory |
SkillsConfig |
[skills] |
Prompt mode, trust thresholds, hybrid search weights |
ToolsConfig |
[tools] |
Shell executor, web scrape, audit logging, anomaly detection |
McpConfig |
[mcp] |
MCP server list and transport settings |
OrchestrationConfig |
[orchestration] |
DAG planner, aggregator, confirmation flow |
ComplexityRoutingConfig |
[llm.complexity_routing] |
Per-tier provider pools for complexity triage routing |
SecurityConfig |
[security] |
Content isolation, exfiltration guard, quarantine |
DebugConfig |
[debug] |
Debug dump path and format |
LoggingConfig |
[logging] |
Log file path, level, rotation, retention |
VaultConfig |
[vault] |
Vault backend (env, age) and key path |
Usage
use Path;
use Config;
// Load config from a TOML file (falls back to defaults when the file does not exist).
// Env-var overrides (ZEPH_LLM_PROVIDER, ZEPH_LOG_LEVEL, …) are applied automatically.
let config = load?;
println!;
println!;
Config migration (add missing sections from the canonical default):
Features
| Feature | Description |
|---|---|
deep-link |
Enables zeph:// deep-link config fields (paired with the deep-link feature in zeph-common) |
Environment variable overrides
All configuration fields can be overridden with ZEPH_-prefixed environment variables. Key examples:
| Variable | Config field |
|---|---|
ZEPH_LLM_PROVIDER |
llm.providers[0].type (overrides first entry type) |
ZEPH_LOG_LEVEL |
logging.level |
ZEPH_LOG_FILE |
logging.file |
ZEPH_AUTO_UPDATE_CHECK |
agent.auto_update_check |
ZEPH_ACP_MAX_SESSIONS |
acp.max_sessions |
Installation
Documentation
Full documentation: https://bug-ops.github.io/zeph/
License
MIT