Configuration Files & Env
AIO Proxy uses JSONC (JSON with comments) as its core configuration format.
File Locations & Search Precedence
The default configuration file is located at:
- macOS / Linux:
~/.aio-proxy/config.jsonc
You can customize the location using the --config flag or the AIO_PROXY_CONFIG environment variable:
JSON Schema Validation
Add the $schema header at the top of your config.jsonc to enable real-time auto-completion, field validation, and documentation in VS Code, Cursor, and modern editors:
Environment Variable Templating
Never hardcode plain-text API keys or secrets in your configuration files. AIO Proxy supports template interpolation syntax:
{{env.VARIABLE_NAME}}: Reads the specified environment variable at runtime.{{env.VARIABLE_NAME:-default_value}}: Provides a default fallback value if the environment variable is not defined.
config.jsonc
CLI Configuration Management
AIO Proxy CLI provides built-in utilities for inspecting and maintaining configuration files: