ollama/ollama-python
Official Python client library for Ollama, a platform for running large language models locally.

Not currently ranked — collecting fresh signals.
star history
The Ollama Python library provides Python 3.8+ bindings to interact with Ollama’s LLM runtime. It exposes chat functionality with support for streaming responses, model management via pull operations, and a Client class for flexible API access. The library handles both local models (running on the Ollama runtime) and cloud model offloading, returning typed response objects for easy consumption.
Frequently asked
- What is ollama/ollama-python?
- Official Python client library for Ollama, a platform for running large language models locally.
- Is ollama-python open source?
- Yes — ollama/ollama-python is open source, released under the MIT license.
- What language is ollama-python written in?
- ollama/ollama-python is primarily written in Python.
- How popular is ollama-python?
- ollama/ollama-python has 10.3k stars on GitHub.
- Where can I find ollama-python?
- ollama/ollama-python is on GitHub at https://github.com/ollama/ollama-python.