Skip to content

Container Configuration

The container options below can be used to authenticate to use the software (HL_LICENSE), to send data to the platform (HL_LLM_PROXY_CLIENT_ID and HL_LLM_PROXY_CLIENT_SECRET), or to configure networking behavior.

Variables

Environment KeyRequiredExample ValueDescription
HL_LICENSETrueLicense for use obtained from HiddenLayer.
HL_LLM_PROXY_ENABLE_UNSECURED_ROUTE_PASSTHROUGHTrueFlag to handle unmapped routes, the AIDR supports passing through all HTTP endpoints that are not explicitly mapped.
HL_LLM_PROXY_CLIENT_IDFalseThe HiddenLayer API key. Required for an AIDR hybrid deployment.
HL_LLM_PROXY_CLIENT_SECRETFalseThe HiddenLayer API secret. Required for an AIDR hybrid deployment.
HL_LLM_PROXY_HTTP_HOSTFalse0.0.0.0
HL_LLM_PROXY_HTTP_PORTFalse8000Default: 8000.

While the port range is 1-65535, the recommended port range is 1025-65535 since opening ports 1-1024 requires root permissions.
HL_LLM_PROXY_LOG_LEVELFalseDEBUG
HL_LLM_PROXY_DOWNSTREAM_TIMEOUT_SECONDSFalse600
HL_LLM_PROXY_MLDR_RETRY_COUNTFalse3
HL_LLM_PROXY_MLDR_CONNECTION_TYPEFalsehybrid or disabledDefault: hybrid. Hybrid mode enables metadata to be sent to HiddenLayer to power the console experience. In hybrid mode, HL_LLM_PROXY_CLIENT_ID and HL_LLM_PROXY_CLIENT_SECRET must be set. Setting to disabled will remove any connections back to HiddenLayer.
HL_LLM_PROXY_MLDR_BASE_URLFalsehttps://api.us.hiddenlayer.ai
HL_LLM_PROXY_MLDR_DEFAULT_REQUESTERFalseunknown
HL_LLM_PROXY_MLDR_COLLECT_PROMPTFalsefalseDefault true.

Collects prompts and response with the security analysis sent to the Console. This allows the review and evaluation of Interactions on the AISec Platform in the context of the user's prompt and response.

Setting to false disables this. If this setting is not configured, the default behavior is set to true.
HL_LLM_PROXY_TOKEN_URLFalsehttps://auth.hiddenlayer.ai
HL_LLM_PROXY_MLDR_ENABLE_REMOTE_CONFIGURATIONFalsefalseEnables ruleset support. Setting to false disables Ruleset support for AIDR.

Default: true