Skip to content

YAML Configuration

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

listen: ":8080"
backend: "http://localhost:3000"
print: true
app: true
appPort: "4004"
expose: false
mockBackend: "./openapi.yaml"
mockDynamic: true
storePath: ".inspectr.db"
apiSecret: "changeme"

KeyTypeDescription
listenstringPort to listen on (e.g. ":8080")
backendstringURL to forward requests to
catchbooleanEnable catch mode
KeyTypeDescription
mockBackendstringPath to OpenAPI spec for mocking
mockDynamicbooleanEnable dynamic mock generation
KeyTypeDescription
exposebooleanEnable public exposure via Ingress
channelstringCustom subdomain on in-spectr.dev
channelCodestringSecurity code for accessing your public endpoint
KeyTypeDescription
appbooleanEnable Inspectr App UI
appPortstringPort to serve the App UI
KeyTypeDescription
apiSecretstringSecret for securing Inspectr’s internal API
storePathstringPath to database file
storeInMemorybooleanStore operations in memory only
KeyTypeDescription
httpTimeoutintegerTimeout in seconds when forwarding requests
logLevelstringLog verbosity: debug, info, warn, error, etc.
backendCorsbooleanAllow 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)