> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://hiddenlayer.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://hiddenlayer.ferndocs.com/_mcp/server.

# Databricks OpenAI

AI Runtime Security can be configured to route traffic to a Databricks OpenAI instance.

* Replace `<name>` with the Databricks OpenAI instance name. Example: `databricks-prod`.
* Replace `<route_prefix>` with the route prefix for the model used. Example: `/serving-endpoint/gpt-model`.
* Replace `<base_url>` with the URL for the instance. Example: `https://upstream.provider.com`.
* Set the enrich response to true to return the upstream LLM response enriched with HiddenLayer’s detections and analysis. Set to false to disable the HiddenLayer’s detections and analysis.
* Replace `<api_key>` with a Databricks API key.

```
HL_LLM_PROXY_OPENAI_ROUTES_DATABRICKS="<name>"
HL_LLM_PROXY_OPENAI_ROUTES_DATABRICKS_ROUTE_PREFIX="<route_prefix>"
HL_LLM_PROXY_OPENAI_ROUTES_DATABRICKS_BASE_URL="<base_url>"
HL_LLM_PROXY_OPENAI_ROUTES_DATABRICKS_ENRICH_RESPONSE="<true|false>"
HL_LLM_PROXY_OPENAI_ROUTES_DATABRICKS_API_KEY="<api_key>"
```

| Environment Key                                              | Description                                            | Default | Required |
| ------------------------------------------------------------ | ------------------------------------------------------ | ------- | -------- |
| HL\_LLM\_PROXY\_OPENAI\_ROUTES\_DATABRICKS                   | The name of the Databricks OpenAI instance.            | False   |          |
| HL\_LLM\_PROXY\_OPENAI\_ROUTES\_DATABRICKS\_ROUTE\_PREFIX    | The route prefix for the model used.                   | False   |          |
| HL\_LLM\_PROXY\_OPENAI\_ROUTES\_DATABRICKS\_BASE\_URL        | The base URL for the instance.                         | False   |          |
| HL\_LLM\_PROXY\_OPENAI\_ROUTES\_DATABRICKS\_ENRICH\_RESPONSE | Set AI Runtime Security as a forward or reverse proxy. | False   |          |
| HL\_LLM\_PROXY\_OPENAI\_ROUTES\_DATABRICKS\_API\_KEY         | Databricks API key.                                    | False   |          |