openspec config
Manages global configuration settings stored in the user’s config directory.
openspec config <command> [options]Commands
Section titled “Commands”| Command | Description |
|---|---|
show | Display current configuration |
set <key> <value> | Set a configuration value |
get <key> | Get a specific value |
reset | Reset to defaults |
Configuration Location
Section titled “Configuration Location”Configuration is stored following XDG Base Directory specification:
| Platform | Location |
|---|---|
| Linux/macOS | $XDG_CONFIG_HOME/openspec/ or ~/.config/openspec/ |
| Windows | %APPDATA%\openspec\ |
Examples
Section titled “Examples”Show all settings
Section titled “Show all settings”$ openspec config show
{ "defaultTools": ["claude", "cursor"], "strictValidation": true}Set a value
Section titled “Set a value”openspec config set strictValidation falseGet a value
Section titled “Get a value”$ openspec config get defaultTools["claude", "cursor"]Reset to defaults
Section titled “Reset to defaults”$ openspec config reset
Reset all configuration to defaults? [y/N]: y✓ Configuration resetAvailable Settings
Section titled “Available Settings”| Key | Type | Description |
|---|---|---|
defaultTools | array | Tools to select by default in init |
strictValidation | boolean | Use strict mode by default |
Exit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Invalid key or value |