Instead of passing CLI flags every time, Inspectr can be configured using a .inspectr.yaml file. This is useful for saving common setups and sharing configurations across teams.
The file should be named .inspectr.yaml by default
You can specify a different file with --config
CLI flags always override YAML values if both are present
backend : ' http://localhost:3000 '
mockBackend : ' ./openapi.yaml '
storePath : ' .inspectr.db '
Key Type Description listenstring Port to listen on (e.g. ":8080") backendstring URL to forward requests to catchboolean Enable catch mode
Key Type Description mockBackendstring Path to OpenAPI spec for mocking mockDynamicboolean Enable dynamic mock generation
Key Type Description exposeboolean Enable public exposure via Ingress channelstring Custom subdomain on in-spectr.dev channelCodestring Security code for accessing your public endpoint
Key Type Description appboolean Enable Inspectr App UI appPortstring Port to serve the App UI
Key Type Description authEnabledboolean Enable API key authentication on all requests authSecretstring Guard secret used to generate API keys authTokenTtlinteger Guard token expiration time in hours (default 24)
Key Type Description apiSecretstring Secret for securing Inspectr’s internal API storePathstring Path to database file storeInMemoryboolean Store operations in memory only
Key Type Description httpTimeoutinteger Timeout in seconds when forwarding requests logLevelstring Log verbosity: debug, info, warn, error, etc. backendCorsboolean Allow backend to handle CORS requests
Commit .inspectr.yaml to version control for team use
Avoid storing sensitive tokens (use env vars or secrets management)
Use different configs per environment (e.g. .inspectr.dev.yaml, .inspectr.prod.yaml)