The SignalWire Agents SDK uses a layered configuration system. Settings can come from constructor parameters, environment variables, JSON config files, or sensible defaults. The layers are resolved in priority order:
When no explicit config_file is provided, the SDK searches for JSON config
files in this order:
config.jsonagent_config.jsonswml_config.json.swml/config.json~/.swml/config.json/etc/swml/config.jsonSee ConfigLoader for
the full file discovery logic and environment variable substitution syntax.
Complete reference for all environment variables used by the SDK.
JSON config file loading with environment variable substitution.
SSL, CORS, host allowlists, rate limiting, and HSTS configuration.
HTTP Basic Auth, Bearer tokens, and API key authentication for FastAPI and Flask.