Skip to main content

Ollama

Featured

Run LLMs locally — pull and run Llama, Mistral, Gemma, and 100+ models with one command and OpenAI-compatible API

Local AIFree

Ollama is the easiest way to run large language models locally on macOS, Linux, and Windows. With a simple CLI (`ollama pull llama3.1` → `ollama run llama3.1`), it manages model downloads, hardware configuration, and inference. Ollama's local REST API is compatible with the OpenAI API format, making it a drop-in replacement for cloud LLMs in development and privacy-sensitive production deployments. 163K+ GitHub stars; the most popular local LLM runtime.

Key specs
186,742 GitHub stars source
as of 2026-11-12

What we know

LicenseMITsource, checked 2026-11-30
Open sourceYessource, checked 2026-11-30
PricingFreefrom our original listing, not yet re-checked
GitHub stars188,570source, checked 2026-11-30

Why it matters

  • Zero API costs for development — run 1,000 prompts or 1,000,000 prompts at the same infrastructure cost; essential for development, testing, and cost-sensitive production.
  • Complete privacy — code, documents, and conversations never leave your machine; critical for proprietary codebases and sensitive business data.
  • OpenAI-compatible API enables local development with production-like code — switch from localhost:11434 to OpenAI API in production with minimal code changes.
  • 163K+ GitHub stars makes Ollama the most popular local LLM runtime with extensive ecosystem support (VS Code extensions, Cursor, AI editors all support Ollama).

Key capabilities

  • Simple CLI: ollama pull <model> to download; ollama run <model> to chat.
  • 100+ models: Llama, Mistral, Gemma, Phi, Code Llama, DeepSeek, and more.
  • OpenAI-compatible API: Local REST API at localhost:11434 matches OpenAI endpoints.
  • Multi-modal: Support for vision models (LLaVA, Moondream).
  • Modelfile: Customize models with system prompts and parameters.
  • GPU acceleration: NVIDIA CUDA, AMD ROCm, Apple Metal.
  • No internet required: After initial model download, fully offline.
  • Model management: List, delete, and update models via CLI.
  • Concurrent models: Load multiple models simultaneously (on sufficient RAM).

Technical notes

  • Platforms: macOS, Linux, Windows
  • Install: Download from ollama.com; or curl -fsSL https://ollama.com/install.sh | sh (Linux)
  • API port: localhost:11434
  • License: MIT
  • GitHub: github.com/ollama/ollama
  • Stars: 163K+
  • GPU: NVIDIA (CUDA), AMD (ROCm), Apple Silicon (Metal), CPU fallback
  • Model format: GGUF (via llama.cpp)

Usage example

# Install and run Llama 3.1
ollama pull llama3.1:8b
ollama run llama3.1:8b "Explain the Pythagorean theorem"

# Use with Python via OpenAI SDK
from openai import OpenAI

# Point OpenAI SDK at local Ollama
client = OpenAI(base_url="http://localhost:11434/v1", api_key="ollama")

response = client.chat.completions.create(
    model="llama3.1:8b",
    messages=[{"role": "user", "content": "Write a Python hello world"}]
)
print(response.choices[0].message.content)

Ideal for

  • Developers who want free, unlimited LLM access during development without API costs.
  • Privacy-sensitive applications where code, documents, or user data cannot leave the local machine.
  • Teams building tools that need to work offline or in air-gapped environments.

Not ideal for

  • Production serving at scale — Ollama is designed for local development; use vLLM, TGI, or cloud APIs for production.
  • Models larger than your machine's RAM — 70B models need 40GB+ RAM; 405B models require multi-GPU servers.
  • Teams wanting the highest-quality frontier models — Llama 70B is excellent but GPT and Claude offer higher reasoning quality.

See also

  • Code Llama — Meta's code-specialized model; excellent for ollama pull codellama.
  • Groq — Cloud-based Llama inference at 500+ t/s; production Ollama alternative.
  • Tabby — Self-hosted coding assistant server that runs on top of Ollama-compatible models.
  • Best open-source AI tools guide — Ollama as the standard local LLM runtime.
  • Best AI coding tools guide — Pairing Ollama with Continue or Cursor for local coding.

FAQ

What is Ollama?

Ollama is a desktop application and CLI for running LLMs locally on your machine. You pull a model (`ollama pull llama3.1:70b`), then run it (`ollama run llama3.1:70b`) or query it via API. Ollama handles: model file download and storage, hardware detection (CPU or GPU), memory management, and model serving. It exposes a local REST API at localhost:11434 compatible with the OpenAI API format.

Is Ollama free?

Ollama is completely free and open source (MIT license). There are no usage fees, API costs, or subscriptions — you run models on your own hardware at zero marginal cost. The only 'cost' is your machine's electricity and the one-time download of model weights (2-80GB depending on model). No internet connection required after models are downloaded.

What hardware do I need to run Ollama?

Ollama runs on: macOS (Apple Silicon M1/M2/M3/M4 recommended; Intel supported), Linux (any modern CPU; NVIDIA or AMD GPU recommended for large models), and Windows. Model requirements vary: Llama 8B needs ~8GB RAM; 70B needs ~40GB RAM. Apple Silicon M1/M2 Macs excel at Ollama due to unified memory — a 32GB M2 Pro runs 70B models smoothly. Without a GPU, CPU inference is 5-20x slower but works.

What models does Ollama support?

Ollama's library at ollama.com/library has 100+ models: Llama (8B, 70B, 405B), Mistral, Mixtral, Gemma 2, Phi-3, Qwen, Code Llama, DeepSeek Coder, Vicuna, Orca, and more. New models are added within days of their public release. You can also import GGUF files from HuggingFace for any quantized model that isn't in the official library.

Alternatives

Is your tool an alternative to Ollama? Sponsor this spot for 30 days, marked Sponsored.

Integrations

None listed.

Built on

Good for these tasks

For the team behind Ollama

Growth plan: from $399 a month

SEO, AI search (how ChatGPT, Perplexity and Google describe Ollama), UX, CRO and support from one account manager, with a monthly report. Includes a Featured launch on db.fyi. Starts with a free audit.

Founding offer: $299 a month for your first 3 months, plus a free case study.

Get a free audit

Listed 2026-02-22 · updated 2026-11-12