Configuration
Thewafer config command manages CLI settings, API configuration, and user preferences.
Quick Start
Commands
wafer config init
Initialize configuration with defaults:| Option | Description |
|---|---|
--env, -e | Initial API environment: staging, prod, local |
wafer config show
Display current configuration:wafer config set
Set a configuration value:| Key | Description | Example |
|---|---|---|
api_env | API environment | prod, staging |
default_target | Default GPU target | local, my-h100 |
default_gpu | Default GPU for roofline | H100, A100 |
default_dtype | Default data type | float16, float32 |
wafer config get
Get a configuration value:Configuration File
Configuration is stored in YAML format:| Platform | Location |
|---|---|
| macOS | ~/.wafer/config.yaml |
| Linux | ~/.wafer/config.yaml |
| Windows | %USERPROFILE%\.wafer\config.yaml |
Environment Variables
Configuration can be overridden with environment variables:| Variable | Description |
|---|---|
WAFER_API_KEY | API key for Wafer services |
WAFER_API_ENV | API environment |
WAFER_DEFAULT_TARGET | Default GPU target |
ANTHROPIC_API_KEY | Anthropic API key (for —no-proxy) |
Subcommand Configuration
wafer config targets
Manage GPU targets. See Targets.wafer config specs
Manage GPU specifications. See Specs.wafer config ssh-keys
Manage SSH keys for workspace access.wafer config billing
Manage billing and credits.Reset Configuration
Reset to defaults:Troubleshooting
Config file not found
Config file not found
Initialize configuration:
Settings not applied
Settings not applied
Check for environment variable overrides:
Permission denied
Permission denied
Check write permissions: