Ollama
Official Python client for running and interacting with local language models via Ollama.
Model SDKs PyPI MIT
How Ollama is used
Ollama is a dependency in 32 of the 6,208 public GitHub projects set up for AI coding agents that we scanned (2.0% of the 1,622 Python ones), #10 of 79 in model sdks. Counting the projects our scan samples by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983), it appears in 387; those are left out of every share on this page. The most used alternative in our scan is OpenAI Python Library (245 projects). Projects that use it most often also use python-dotenv (78.1%), Pydantic (62.5%), OpenAI Python Library (53.1%).
AgentGid articles about Ollama
Ollama popularity over time
Gid Score 64: downloads 74, use in agent projects 70, GitHub stars 51, downloads trend 55 (each 0-100). How it is calculated.
Often used with Ollama
| python-dotenv | 78.1% of Ollama projects · 8.5× more than average |
|---|---|
| Pydantic | 62.5% of Ollama projects · 7.2× more than average |
| OpenAI Python Library | 53.1% of Ollama projects · 13.5× more than average |
| Requests | 53.1% of Ollama projects · 7.8× more than average |
| FastAPI | 50.0% of Ollama projects · 6.7× more than average |
| NumPy | 50.0% of Ollama projects · 8.6× more than average |
| Uvicorn | 50.0% of Ollama projects · 6.5× more than average |
| Model Context Protocol SDK (Python) | 46.9% of Ollama projects · 5.9× more than average |
By coding agent
| Claude Code | 0.6% of projects set up for it |
|---|---|
| GitHub Copilot | 0.5% of projects set up for it |
| Cursor | 0.4% of projects set up for it |
Share of public repos configured for each agent that list Ollama as a dependency.
Install
| Package | pip install ollama |
|---|---|
| Main stacks | Python (31), Next.js (1) |
| Example projects | amanimran786/jarvis-ai, Who-Visions/NouGenShards |
Alternatives to Ollama
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Ollama are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| OpenAI Python Library pypi Official Python SDK to call OpenAI APIs including GPT models and embeddings. |
86 | 245 (15.1%) | 82.1M | 31.9K | Apache-2.0 |
| Anthropic Python SDK pypi Official Python library for calling Claude via the Anthropic API. |
73 | 113 (7.0%) | 42.7M | 3,980 | MIT |
| Google GenAI Python SDK pypi Official Python SDK for Google's generative AI models including Gemini. |
72 | 102 (6.3%) | 36.6M | 4,034 | Apache-2.0 |
| Claude Agent SDK pypi Python SDK for Claude AI with agent capabilities and tool support. |
63 | 22 (1.4%) | 7.8M | 8,304 | MIT |
| Groq Python SDK pypi Official Python client library for the Groq API, enabling fast LLM inference with Groq's language processing units. |
53 | 19 (1.2%) | 3.9M | 621 | Apache-2.0 |
| OpenAI Agents SDK (Python) pypi Official SDK for building and running agents with OpenAI models. |
67 | 10 (0.6%) | 3.3M | 30.2K | MIT |
| DashScope SDK pypi Official Python client SDK for Alibaba DashScope API to call language models. |
50 | 6 (0.4%) | 770K | — | Apache-2.0 |
| Mistral AI SDK pypi Official Python SDK for the Mistral AI API to call Mistral language models. |
47 | 4 (0.2%) | 3.3M | 774 | Apache-2.0 |
More in Model SDKs: OpenAI AI SDK Anthropic SDK Google Generative AI Hugging Face Hub LiteLLM Ollama JavaScript Library Pi-AI