Global Configuration
The global configuration file stores user-level defaults that apply across all workspaces and projects. It is the lowest-priority file-based configuration source (above environment variables and built-in defaults).File Location
Creating the Global Config
Managing via CLI
Dorgu provides thedorgu config subcommand for managing global configuration without editing the file directly.
Configuration Keys
Example File
Precedence
Global config values are overridden by:- CLI flags — always highest priority
- App
.dorgu.yaml— per-application overrides - Workspace
.dorgu.yaml— per-workspace overrides
- Environment variables — for most settings (API keys are an exception; env vars take precedence)
- Built-in defaults — the lowest priority
For API keys specifically, environment variables (
OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.) take precedence over the global config value. This allows you to store a default key in the config but override it per-session or in CI environments.