config
The config command group helps you understand and manage AgentPool's layered configuration system.
Overview¶
AgentPool automatically discovers and merges configuration from multiple sources:
- Global config (
~/.config/agentpool/agentpool.yml) - Custom config (
AGENTPOOL_CONFIGenvironment variable) - Project config (
agentpool.ymlin project/git root) - Explicit config (CLI argument)
These commands help you inspect which configs are being loaded and create new ones.
Commands¶
Examples¶
Inspect Configuration¶
# Show which config files are found and what they contain
agentpool config show
# Show with a specific explicit config included
agentpool config show my-agents.yml
# Output as YAML for scripting
agentpool config show --format yaml
View Config Paths¶
Create New Config¶
# Create a starter config in current project
agentpool config init
# Create a global config for user-wide preferences
agentpool config init global
# Create at a specific path
agentpool config init ./configs/my-agents.yml
# Overwrite existing config
agentpool config init --force
Use Cases¶
Setting Global Preferences¶
Create a global config to set preferences that apply to all projects:
Then edit ~/.config/agentpool/agentpool.yml:
# Global preferences
model_variants:
fast:
type: string
identifier: openai:gpt-4o-mini
smart:
type: anthropic
identifier: claude-sonnet-4-5
storage:
provider: sql
database_url: sqlite:///~/.local/share/agentpool/history.db
Project-Specific Agents¶
Create a project config that inherits global settings:
Then edit ./agentpool.yml:
agents:
coder:
model: smart # Uses global model_variant
system_prompt: "You are an expert in this codebase."
tools:
- type: file_access
- type: bash
Debugging Config Issues¶
If your agent isn't behaving as expected, check which configs are being loaded:
This shows: - Which config files were found - What keys each layer contributes - The final merged result