Environment variables
The environment variables Diffgazer reads and sets in packaged mode.
Diffgazer reads a handful of environment variables, and it sets a few internal values when it runs packaged. Most settings live in configuration rather than the environment, so reach for these only when you need to override where files live, how much it logs, or which port it binds.
Hosted products can also be configured through environment references instead of stored literals. In that case Diffgazer records only that the credential comes from the environment, resolves the product's canonical variable name below on the server, and reads the live value at runtime.
Variables you set
Example hosted reference without storing a literal in Diffgazer files:
Export the variable before you launch, then choose the environment-reference option during setup — Use environment reference in the web wizard, Use environment variable in the TUI (Import from Env in the Configure Provider dialog). You never type the variable name: each product is bound to the canonical name in the table above, and Diffgazer stores only that reference, never the value.
Note: Google Gemini reads GOOGLE_API_KEY, not GEMINI_API_KEY. The name follows the server-side credential map for the product.
Development-only escape hatch
DIFFGAZER_DEV_UNSAFE_PROJECT_ROOT=1 tells the standalone development server to trust the project-root request header. Packaged mode ignores it. Never enable it outside local development.
Optional split-development security
DIFFGAZER_SHUTDOWN_TOKEN enables the API token gate in every mode. The packaged CLI creates and sets it automatically. When you run the server and web app separately, set the same token on both sides.
Configure both values together so the client and server use the same token.
Set automatically
The packaged CLI sets these itself. Do not set them by hand.
Related
- Providers: the canonical support matrix and credential kinds.
- Configuration: V2 configuration actions and readiness gates.
- Troubleshooting: port, credential, and shutdown issues.