config
Manage gcop-rs configuration.
Synopsis:
gcop-rs config [SUBCOMMAND]If no subcommand is provided, it defaults to gcop-rs config edit.
Subcommands:
config edit
Open configuration file in your default editor with validation.
Usage:
gcop-rs config editOpens: User-level config file (platform-specific location) in $VISUAL / $EDITOR (platform default if not set)
Validation: After saving, the configuration is automatically validated (like visudo). If validation fails, you'll see a menu:
✗ Config validation failed: TOML parse error...
? What would you like to do?
> ✎ Re-edit the config file
↩ Keep original config
⚠ Ignore errors and save anyway (dangerous)Recovery: Even if your config file is corrupted, config edit will still work, allowing you to fix it.
When to use: Modify API keys, models, or custom prompts.
Tip: Always use
gcop-rs config editinstead of editing the config file directly to benefit from automatic validation.
config validate
Validate configuration and test provider connection.
Usage:
gcop-rs config validateChecks:
- Loads and parses effective configuration (defaults + user config + optional project config +
GCOP__*overrides + optional CI overrides) - Lists configured providers (as loaded from config)
- Builds provider chain from
default_provider+fallback_providers(providers that fail to instantiate are skipped) - Validates provider connections through the instantiated provider chain
- Succeeds if at least one instantiated provider validates
Example output:
[1/2] Loading configuration...
✓ Configuration loaded successfully
Configured providers:
• claude
[2/2] Testing provider connection...
✓ Provider 'claude' validated successfullyWhen to use:
- After editing configuration
- Troubleshooting connection issues
- Verifying API keys
See Also
- Provider Health Checks - Validation flow and endpoint checks
- Configuration Guide - Full configuration reference
- LLM Providers - Provider setup examples