[GH-ISSUE #9731] Allow custom headers configuration for remote Ollama hosts #54291

Closed
opened 2026-05-05 16:04:41 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @aperepel on GitHub (Feb 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9731

Feature Request

Is your feature request related to a problem? Please describe.
I have several remote Ollama hosts exposed via Cloudflared tunnels. The endpoints are protected, but accept service authentication for API invocation. These are configured as custom headers on the call, but there is no way to add them via the UI.

Describe the solution you'd like
Add additional headers config experience for Ollama endpoints.

Describe alternatives you've considered
Not much to consider. I can invoke via API, but remote Ollama with security can't be configured in Open WebUI.

Additional context
Add any other context or screenshots about the feature request here.

Here's the code snippet which takes care of authentication.

client = ollama.Client(
    host=OLLAMA_HOST,
    headers={
        "CF-Access-Client-Id": "some_client_id_long_value.access",
        "CF-Access-Client-Secret": userdata.get('OLLAMA_REMOTE_TOKEN'),
    },
)
Originally created by @aperepel on GitHub (Feb 10, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/9731 # Feature Request **Is your feature request related to a problem? Please describe.** I have several remote Ollama hosts exposed via Cloudflared tunnels. The endpoints are protected, but accept service authentication for API invocation. These are configured as custom headers on the call, but there is no way to add them via the UI. **Describe the solution you'd like** Add additional headers config experience for Ollama endpoints. **Describe alternatives you've considered** Not much to consider. I can invoke via API, but remote Ollama with security can't be configured in Open WebUI. **Additional context** Add any other context or screenshots about the feature request here. Here's the code snippet which takes care of authentication. ```python client = ollama.Client( host=OLLAMA_HOST, headers={ "CF-Access-Client-Id": "some_client_id_long_value.access", "CF-Access-Client-Secret": userdata.get('OLLAMA_REMOTE_TOKEN'), }, ) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#54291