Skip to content

AI: Add support for OLLAMA_API_KEY and OLLAMA_BASE_URL to configure Ollama #5361

Closed

Description

@lastzero

As an Ollama Cloud user, I want to be able to set my API key via OLLAMA_API_KEY and the service base URL via OLLAMA_BASE_URL, rather than having to set them manually in my vision.yml file.

👉 https://docs.ollama.com/cloud#cli

Activity

  1. self-assigned this
    on Dec 3, 2025
  2. added theissue type on Dec 3, 2025
  3. added
    aiArtificial Intelligence, Machine Learning (ML)
    on Dec 3, 2025
  4. added
    configGlobal Configuration, CLI Flags, and Environment Variables
    on Dec 3, 2025
  5. moved this to Preview 🐳 in Roadmap 🚀✨on Dec 3, 2025
  6. lastzero commented on Dec 4, 2025

    @lastzero
    MemberAuthor

    @graciousgrey @omerdduran These changes should ensure that the built-in caption model default/example only runs manually and isn't flagged as a default model. This is to prevent the standard vision config from always sending requests to http://ollama:11434/api/generate during or after indexing, since most users either won't have an Ollama instance, or if they have one, it might use a different URL. Please make sure to double-check that this works! Alternatively, we can remove the built-in caption model default/example.

  7. 5 remaining items

  8. added
    please-testReady for manual testing & feedback
    and removed
    testedChanges have been tested successfully
    on Dec 10, 2025
  9. lastzero commented on Dec 11, 2025

    @lastzero
    MemberAuthor

    You can use our preview build to test this:

    services:
      photoprism:
        image: photoprism/photoprism:preview
        environment:
          OLLAMA_BASE_URL: "http://ollama:11434"         # use "https://ollama.com" for Ollama Cloud
          OLLAMA_API_KEY: ""                             # API key required to access Ollama (optional)
  10. added
    testedChanges have been tested successfully
    and removed
    please-testReady for manual testing & feedback
    on Dec 12, 2025
  11. spotlesscoder commented on Feb 22, 2026

    @spotlesscoder

    is this still only in the preview build?

  12. lastzero commented on Feb 23, 2026

    @lastzero
    MemberAuthor

    Yes, but a new stable release is planned for the end of February or early March.

  13. lastzero commented on Mar 5, 2026

    @lastzero
    MemberAuthor

    @spotlesscoder This is now available as part of our latest stable release:

  14. moved this from Preview 🐳 to Release 🌈 in Roadmap 🚀✨on Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

aiArtificial Intelligence, Machine Learning (ML)configGlobal Configuration, CLI Flags, and Environment VariablesreleasedAvailable in a stable releasetestedChanges have been tested successfully

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions