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
| Key | Type | Description | Example |
|---|---|---|---|
llm.provider | string | LLM provider for enhanced analysis | openai, anthropic, gemini, ollama |
llm.api_key | string | API key for the configured LLM provider | sk-... |
llm.model | string | Model override (uses provider default if unset) | gpt-4, claude-3-sonnet-20240229 |
defaults.namespace | string | Default Kubernetes namespace for generated manifests | default |
defaults.registry | string | Default container image registry | ghcr.io/my-org |
defaults.org_name | string | Organization name used in labels and naming | my-company |
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.