[GH-ISSUE #4888] Exists a way of implements authentication with api-key on Ollama Client? #49595

Closed
opened 2026-04-28 12:22:40 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @claudiocassimiro on GitHub (Jun 7, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4888

With openAi client we can make this:

client = OpenAI(
    api_key=os.environ.get("OPENAI_API_KEY"),
)

why we can't make this with ollama client to?

Someone went make a Discord channel to implements something like this?

Originally created by @claudiocassimiro on GitHub (Jun 7, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4888 With openAi client we can make this: ``` client = OpenAI( api_key=os.environ.get("OPENAI_API_KEY"), ) ``` why we can't make this with ollama client to? Someone went make a Discord channel to implements something like this?
GiteaMirror added the feature request label 2026-04-28 12:22:40 -05:00
Author
Owner

@jmorganca commented on GitHub (Jun 9, 2024):

Hi @claudiocassimiro no API key is require to connect to Ollama - let me know if this helps. For custom auth see https://github.com/ollama/ollama/issues/1053

<!-- gh-comment-id:2156713486 --> @jmorganca commented on GitHub (Jun 9, 2024): Hi @claudiocassimiro no API key is require to connect to Ollama - let me know if this helps. For custom auth see https://github.com/ollama/ollama/issues/1053
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#49595