Configuration Overview¶
AgentLedger works out of the box with sensible defaults. All configuration is optional — the proxy starts with OpenAI and Anthropic enabled, SQLite storage, and the dashboard on.
Config File Locations¶
AgentLedger looks for config in these locations (in order):
- Path passed via
--config/-cflag ./agentledger.yaml./configs/agentledger.yaml~/.config/agentledger/agentledger.yaml/etc/agentledger/agentledger.yaml
Minimal Config¶
No config file is needed for basic usage. To customize:
listen: ":8787"
providers:
openai:
upstream: "https://api.openai.com"
enabled: true
anthropic:
upstream: "https://api.anthropic.com"
enabled: true
storage:
driver: "sqlite"
dsn: "data/agentledger.db"
Environment Variable Overrides¶
All settings can be overridden with environment variables prefixed AGENTLEDGER_:
Full Reference¶
See Full Reference for every configuration option with descriptions and defaults.