[GH-ISSUE #3234] is it possible to use ollama as a library , not through network #48504

Closed
opened 2026-04-28 08:45:29 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @aizimuji on GitHub (Mar 19, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3234

What are you trying to do?

i want to know if it's possible to call ollama function like some library, for example by dll in windows
so other developer can develop some gui or related software with this library
not to run ollama as a stand-alone server

How should we solve this?

it's easier to build related gui or other third party software based on ollama

What is the impact of not solving this?

No response

Anything else?

No response

Originally created by @aizimuji on GitHub (Mar 19, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3234 ### What are you trying to do? i want to know if it's possible to call ollama function like some library, for example by dll in windows so other developer can develop some gui or related software with this library not to run ollama as a stand-alone server ### How should we solve this? it's easier to build related gui or other third party software based on ollama ### What is the impact of not solving this? _No response_ ### Anything else? _No response_
GiteaMirror added the question label 2026-04-28 08:45:29 -05:00
Author
Owner

@BruceMacD commented on GitHub (Mar 21, 2024):

Hi @aizimuji Ollama isn't packaged for use as a library (at this point).

If you'd like to package Ollama into an application it is possible, but you would have to package the executable and run it as a sub-process. Here is an example of how to do that:
https://github.com/BruceMacD/chatd

Let me know if you have any more questions, happy to help.

<!-- gh-comment-id:2012342663 --> @BruceMacD commented on GitHub (Mar 21, 2024): Hi @aizimuji Ollama isn't packaged for use as a library (at this point). If you'd like to package Ollama into an application it is possible, but you would have to package the executable and run it as a sub-process. Here is an example of how to do that: https://github.com/BruceMacD/chatd Let me know if you have any more questions, happy to help.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#48504