[PR #11469] Add basic authentication support to client via env vars #13552

Open
opened 2026-04-13 00:30:03 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11469

State: open
Merged: No


The Ollama CLI lacked user authentication.
This PR adds basic auth support using OLLAMA_USERNAME and OLLAMA_PASSWORD environment variables.
If both are set, an Authorization header is added to client requests.

**Original Pull Request:** https://github.com/ollama/ollama/pull/11469 **State:** open **Merged:** No --- The Ollama CLI lacked user authentication. This PR adds basic auth support using OLLAMA_USERNAME and OLLAMA_PASSWORD environment variables. If both are set, an Authorization header is added to client requests.
GiteaMirror added the pull-request label 2026-04-13 00:30:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13552