Defend

Environment variables

Process and .env variables read by Defend Settings for ports, model ids, thresholds, API keys, and session tuning.

Settings loads from the environment and optional .env in the working directory (see defend_api/config.py). Declared keys are injected into os.environ so provider SDKs see the same values.

Service

Prop

Type

Models

Prop

Type

Pipeline thresholds

Prop

Type

REGEX_BLOCK_CATEGORIES is a list field with a non-empty default in code; set via environment only if your deployment supports list serialization for settings.

Provider API keys

Prop

Type

Session backend tuning

Prop

Type

See also Configuration for defend.config.yaml fields.