Langflow
Protect your Langflow pipelines with Trappr in minutes — configure the OpenAI component to use the Trappr Gateway endpoint and gateway key. All security controls apply automatically.
Setup
1
Open your flow in Langflow
Locate the OpenAI or ChatOpenAI component in your flow.
2
Update the component settings
In the component, set:
| Field | Value |
|---|---|
| OpenAI API Key | Your Trappr Gateway key (cht_gw_*) |
| OpenAI API Base | https://gateway.trappr.net/v1 |
3
Run your flow and verify
Execute the flow. In the Trappr dashboard under Gateway → Logs, confirm the request appears with model and token details.
Self-hosted Langflow
Shell
# Set environment variables before starting Langflow export OPENAI_API_KEY="cht_gw_XXXX" export OPENAI_API_BASE="https://gateway.trappr.net/v1" langflow run
When set via environment variables, the Trappr Gateway applies to all OpenAI components in all flows globally — no per-component configuration needed.