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 listen
string Port to listen on (e.g. ":8080"
) backend
string URL to forward requests to catch
boolean Enable catch mode
Key Type Description mockBackend
string Path to OpenAPI spec for mocking mockDynamic
boolean Enable dynamic mock generation
Key Type Description expose
boolean Enable public exposure via Ingress channel
string Custom subdomain on in-spectr.dev
channelCode
string Security code for accessing your public endpoint
Key Type Description app
boolean Enable Inspectr App UI appPort
string Port to serve the App UI
Key Type Description apiSecret
string Secret for securing Inspectr’s internal API storePath
string Path to database file storeInMemory
boolean Store operations in memory only
Key Type Description httpTimeout
integer Timeout in seconds when forwarding requests logLevel
string Log verbosity: debug
, info
, warn
, error
, etc. backendCors
boolean 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
)