# Ollama

Ollama is a model provider option for building AI agents. Open-weight models on your own machine. Nothing leaves the box.

## Facts

- Layer: Model provider (What thinks)
- Vendor: Ollama (github.com/ollama/ollama)
- Licence: open source
- Pricing: open source
- Self-hostable: yes
- SDKs: ts, py
- Install: `brew install ollama`
- Docs: https://ollama.com/
- Last verified: 2026-08-21

## When to reach for it

- You are choosing a model provider component — what thinks.
- You need to run it on your own infrastructure, or your procurement process requires source access.
- You want to start without a commercial conversation.

## Alternatives in the model provider layer

| Option | What it does | Licence | Self-host |
| --- | --- | --- | --- |
| Anthropic | Claude Opus, Sonnet and Haiku. Strong tool use and long-horizon agentic work. | proprietary | no |
| OpenAI | GPT and o-series via the Responses API. | proprietary | no |
| Google Gemini | Gemini models with very long context and native multimodality. | proprietary | no |
| Amazon Bedrock | Frontier models inside your AWS account, with IAM and VPC boundaries. | proprietary | no |
| Google Vertex AI | Claude and Gemini under GCP billing, IAM and regional controls. | proprietary | no |
| DeepSeek | Strong reasoning and coding at a fraction of frontier pricing, with the weights published so you can move off the API later. | proprietary | no |
| OpenRouter | One API key, several hundred models, automatic failover. | proprietary | no |
| Hugging Face | One OpenAI-compatible endpoint routed across Groq, Together, Fireworks, Cerebras and Replicate — with the open-weight catalogue behind it. | proprietary | no |
| Venice AI | Hosted open-weight inference with no prompt logging or retention, plus an anonymising proxy in front of the frontier APIs. | proprietary | no |
| LiteLLM | Self-hosted proxy that speaks one API to 100+ providers, with keys and budgets. | open source | yes |
| Groq | Open-weight models at very low latency. | proprietary | no |
| vLLM | High-throughput open-weight serving on your own GPUs. | open source | yes |

Head to head:

- https://newagent.build/compare/ollama-vs-anthropic
- https://newagent.build/compare/ollama-vs-openai
- https://newagent.build/compare/ollama-vs-google-gemini
- https://newagent.build/compare/ollama-vs-bedrock
- https://newagent.build/compare/ollama-vs-vertex
- https://newagent.build/compare/ollama-vs-deepseek
- https://newagent.build/compare/ollama-vs-openrouter
- https://newagent.build/compare/ollama-vs-huggingface

## Add it to a stack

```bash
curl -fsSL "https://newagent.build/api/stack?model=ollama&format=sh" | sh
```

## Machine interfaces

- `GET https://newagent.build/api/registry` — every component as JSON
- `GET https://newagent.build/api/vendors` — vendors, with the repo and releases feed to watch
- `GET https://newagent.build/api/advise?q=<plain english>` — recommended stack for a description
- `GET https://newagent.build/api/stack?<layer>=<id>&format=sh|json|md|yml|agents|env` — a stack as files
- `GET https://newagent.build/llms.txt` — the whole registry in one fetch

Any page here also returns markdown if you send `Accept: text/markdown`.