Configuration
Savfox uses a layered configuration system with support for profiles, CLI overrides, and feature flags.
Config File Location
Alternative primary formats are also supported:
On Windows:
Startup auto-detect order is:
config.tomlconfig.yamlconfig.yml
If multiple files exist, the highest-priority file above is used.
YAML Format
Savfox accepts native YAML config files with the same schema as TOML:
Use the CLI to migrate from TOML to YAML:
When converting from TOML, Savfox preserves the leading comment block when possible.
Environment Variable Substitution
String values support environment-variable expansion before validation:
${VAR}: useVAR, empty string when unset.${VAR:-default}: usedefaultwhenVARis unset or empty.${VAR:?error message}: fail config loading ifVARis unset or empty.
Examples:
Supported variables:
- Any environment variable available to the running Savfox process is supported.
- Common examples in config files:
SAVFOX_MODEL,SAVFOX_GATEWAY_TOKEN,SAVFOX_HOME,PATH,HOME/USERPROFILE.
Config Sections
Authentication
For ChatGPT-managed authentication (recommended), use savfox login instead of setting API keys manually.
Model Selection
Sandbox Policy
Gateway Server
Chat Bridges
MCP Servers
Skills
Shell Preferences
Git Integration
CLI Overrides
Override any config value from the command line with -c:
Multiple overrides can be stacked:
Configuration Profiles
Use named profiles to switch between different configurations:
Feature Flags
Feature flags control access to experimental and in-development functionality.
Stages
- under-development — Not yet ready for general use
- experimental — Available but may change
- stable — Production-ready
- deprecated — Will be removed in a future version
Managing Feature Flags
From the CLI:
Or via command-line flags:
Config Layer Priority
Configuration is resolved in this order (later overrides earlier):
- System defaults — Built-in defaults
- User config —
~/.savfox/config.toml - Workspace config — Project-level
.savfox/config.toml - Profile — Named profile overrides
- CLI overrides —
-c key=valueflags - Cloud requirements — Enterprise/managed settings (if applicable)
JSON Schema
Export the config schema for editor integration:
This produces a JSON Schema file that editors can use for autocompletion and validation of config.toml.