Use .relay.json for CLI defaults: socket path or URL, app, env, branch.
Use relay.config.json for buildpack overrides: install_cmd, build_cmd, start_cmd.
Use relay.json when the app needs companion services (Postgres, Redis, etc.).
Use .relayignore to exclude generated or irrelevant paths from sync uploads without changing Relay's built-in ignores.
Use relay secrets add for environment variables that should not live in a config file.
If you run the agent beyond localhost, set explicit `RELAY_CORS_ORIGINS`, keep Docker as the default engine, and remember that dev and staging lanes default to Relay Login unless you change the access policy.