Configure a Server environment
Use an explicit environment file when the Server needs inference, scheduling, storage, or deployment settings.
1. Generate the file
powercontext config init --output .envOn macOS and Linux, the guided command writes a private file with mode 0600. Enter provider credentials through your environment or
secret manager, not in command-line arguments.
Windows support is experimental. Before using the file for a personal service, restrict its ACL as described in
Deploy the Server.
2. Inspect and validate it
powercontext config show --env-file .env
powercontext config validate --env-file .envconfig show redacts recognized credentials. Validation accepts minimal Server-only files; when inference models or
inference-dependent runtime features are configured, it also checks the Runtime composition without printing secrets.
3. Run the same configuration
powercontext server run --env-file .envValues in the file override same-named process values. Inherited POWERCONTEXT_SERVER_* values missing from the file
are ignored, so validation and launch use the same Server settings.
The Server starts with the configured capabilities. Use powercontext ready and powercontext capabilities to check
its readiness and enabled features.
For every variable, default, and precedence rule, see Configuration.

