docs/versioned_docs/version-1.11.0/Components/bundles-openai-compatible.mdx
import Icon from "@site/src/components/icon";
The OpenAI Compatible bundle includes no components.
It instead adds a provider through the providers[] block in its extension.json manifest, which is included in the global model provider registry.
Point Langflow's model provider at any OpenAI-compatible endpoint, and Langflow discovers available models live from the /v1/models endpoint.
The OpenAI Compatible provider installs automatically with uv pip install langflow.
For more information, see Langflow Extensions overview.
Configure Langflow to connect to your OpenAI-compatible provider by providing a Base URL and optional API Key. To find your Base URL, see your provider's documentation.
To open the Model Providers pane, click your profile icon, select Settings, and then click <Icon name="Brain" aria-hidden="true"/> Model Providers.
Select the OpenAI Compatible model provider.
Set the following fields:
| Field | Environment variable | Required | Description |
|---|---|---|---|
| Base URL | OPENAI_COMPATIBLE_BASE_URL | Yes | Base URL of the OpenAI-compatible endpoint from your provider's documentation, such as https://openrouter.ai/api/v1. |
| API Key | OPENAI_COMPATIBLE_API_KEY | No | Bearer token for the endpoint. Leave empty for local servers that do not require authentication. |
Click Save.
Langflow validates the connection to the endpoint's /v1/models route and discovers available models.
Discovered models appear under Language Models and Embedding Models.
Enable the models you want to use.
In any Language Model, Embedding Model, or Agent field, select OpenAI Compatible and a discovered model.
Langflow enables SSRF protection by default.
Loopback and private addresses such as localhost, 127.0.0.1, and ::1 are blocked unless you allow them.
Before you save a Base URL like http://localhost:8000/v1, set LANGFLOW_SSRF_ALLOWED_HOSTS to include that hostname:
export LANGFLOW_SSRF_ALLOWED_HOSTS=localhost
You can also allowlist an IP address or CIDR range, for example 127.0.0.1 or 10.0.0.0/8.
For more information, see SSRF protection.