Back to directory

AI & Machine Learning · Machine Learning Infrastructure

Ollama

Run open models locally, or call them through Ollama Cloud

Ollama is a Go-based desktop, command-line, and API runtime for downloading and serving open models on personal hardware. It targets developers who want local inference with an optional hosted path. The code is MIT licensed, local execution has no usage charge, and Ollama Cloud offers free and paid plans with usage credits.

Key facts

License
MIT
Main language
Go
Maintainer
Ollama, Inc.
First released
2023
Latest release
v0.40.8, October 21, 2026
GitHub stars
184k, October 2026
Hosted option
Ollama Cloud, Free plan, Max from $20/month, Team $500/month

What Ollama is

Ollama is a Go-based runtime, desktop application, command-line tool, and REST API for running open models locally or through Ollama Cloud. Michael Chiang and Jeffrey Morgan started the project after their earlier company, Kitematic, was acquired by Docker in 2015. The repository was created on June 26, 2023, and Ollama, Inc. maintains it. The repository listed 184,249 stars and named contributors including mxyng, dhiltgen, and jmorganca. Ollama says it serves 8.9 million developers and is used by 85% of Fortune 500 companies. In July 2026, the company announced $88 million raised from Benchmark, Theory Ventures, 8VC, Y Combinator, and angel investors.

How it works

The normal workflow takes a few commands. Install the application or command-line tool, pull a model from the library, run it, and call the local REST API from an application. Users can create Modelfiles, set prompts and parameters, stream chat or generation responses, and use chat, generation, and embedding endpoints. Python and JavaScript libraries support application integration. The README lists integrations with Claude Code, Codex, Copilot CLI, DeepSeek Harness, Droid, and OpenCode. Ollama can also launch supported coding tools. Local requests use the service on localhost, while signed-in users can select cloud models without downloading their weights. The CLI and application therefore cover both local model files and remote inference.

Architecture and recent releases

Ollama is primarily written in Go and uses the llama.cpp project as a supported backend. The repository also contains C, C++, TypeScript, JavaScript, and other build or interface languages. Official Docker images support container deployment. The project lists CPU execution, Apple Metal, NVIDIA CUDA, AMD ROCm, MLX, and selected ARM or Jetson packages. Release v0.40.0, dated September 25, 2026, made MLX the default runtime for supported Apple Silicon architectures. Release v0.40.8, dated October 21, added Recursive Flint, while the v0.40.9 release page showed a pre-release on October 22. Ollama's core local runtime does not require PostgreSQL, Redis, or object storage.

License and pricing

The Ollama repository uses the MIT license, which permits commercial use, modification, redistribution, private operation, and sale, subject to retaining the license notice. Downloaded model weights can have separate publisher terms. Local inference has no usage charge. Ollama Cloud has a Free plan with starter credits, Max plans at $20 or $100 per month, and Team at $500 per month. The pricing page describes Enterprise as volume usage pricing. Cloud requests use token-based credits, and running models on personal hardware remains unlimited. Ollama says cloud prompts and responses are not logged or used to train models. Cloud infrastructure is primarily in the United States, with possible routing to Europe.

Limitations and how it compares

Ollama is a Go-based runtime, desktop application, command-line tool, and REST API for running open models locally or through Ollama Cloud. Users can install it, pull models, run them, customize prompts and parameters with Modelfiles, and connect applications through chat, generation, embedding, and streaming endpoints. It supports Python and JavaScript libraries, CPU execution, Apple Metal, NVIDIA CUDA, AMD ROCm, MLX, and selected ARM or Jetson builds. The MIT license permits commercial use, modification, and redistribution with the notice retained. Local inference has no usage charge, while Ollama Cloud offers free and paid plans. Performance varies with model size, architecture, memory, and hardware. Protect the unauthenticated local API before exposing it beyond a trusted host.

Main features

  • Local model serving. Download and run supported language, vision, embedding, and tool-capable models on a workstation or server.
  • Simple model workflow. Pull models from the library, run them with one command, and customize prompts, parameters, and templates through Modelfiles.
  • REST API. Expose chat, generation, embeddings, and streaming endpoints for applications using Ollama clients or compatible integrations.
  • OpenAI compatibility. Connect applications built for OpenAI APIs to Ollama cloud models through supported compatible client interfaces.
  • Hardware acceleration. Use CPU, Apple Metal, NVIDIA CUDA, AMD ROCm, MLX, and selected ARM or Jetson builds.
  • Cloud inference. Run larger models remotely from the command line, desktop application, or authenticated cloud API without downloading model weights.

Self-hosting Ollama

Install Ollama with the Linux, macOS, or Windows installer, the installation script, Homebrew, a package manager, or the official Docker image. Community deployment options include a Helm chart. The core service does not require PostgreSQL, Redis, or object storage. Reserve disk space for downloaded model files and sufficient memory or compatible GPU capacity for the selected model. Keep the local API on localhost unless a trusted network boundary provides protection. Back up model files when downloads are costly, and preserve Modelfiles and application configuration separately. Upgrade the binary or container through its normal package or image process, then check models and clients after upgrades.

Strengths

  • The local REST API is easy to script and has Python and JavaScript libraries.
  • The MIT license permits commercial use, modification, and redistribution with the notice retained.
  • One workflow supports local models and Ollama Cloud models.
  • Official installers cover macOS, Windows, Linux, and Docker.

Drawbacks

  • Large models can require substantial memory, GPU capacity, disk space, and download time.
  • The local API has no authentication by default.
  • Cloud usage introduces accounts, credits, concurrency limits, and regional processing.

What teams replace with it

Teams usually evaluate Ollama when they want to move off OpenAI API, Anthropic API, LM Studio.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Ollama

Frequently asked questions

Is Ollama free?

The Ollama software and local model execution are free to use, and the repository is MIT licensed. Ollama Cloud has a Free plan with starter credits and paid Max and Team plans with additional credits and capabilities. Model publishers can apply separate terms to downloaded weights. Running a model on personal hardware does not consume cloud credits.

Can businesses use Ollama commercially?

Yes. The Ollama repository uses the MIT license, which permits commercial use, modification, private operation, and redistribution when the license notice remains included. That permission applies to Ollama's code, not automatically to downloaded model weights. Review the license attached to each model before redistributing weights or embedding one in a product.

How do I self-host Ollama?

Install the macOS, Windows, or Linux package, use the installation script or package manager, or run the official Docker image. Pull a model and call the local service through its REST API. CPU execution is supported, while larger models can benefit from compatible NVIDIA, AMD, Apple, MLX, ARM, or Jetson acceleration. Protect the API before remote access.

How does Ollama compare with LM Studio?

Ollama emphasizes a command-line workflow, scriptable REST API, Modelfiles, and developer integrations. LM Studio emphasizes a graphical desktop interface, model discovery, and interactive local chat. Both run local open models, while Ollama also offers a first-party cloud path. Choose LM Studio when graphical model management matters more than command-line automation.

Does Ollama keep prompts private?

Local prompts remain on the machine unless an application sends them elsewhere. Cloud requests are processed by Ollama's hosted infrastructure. Ollama says cloud prompts and responses are not logged or used to train models, and says providers must maintain no-logging, no-training, and zero-retention policies. Disable cloud features when processing must remain local.

Similar projects to compare

Sources

Last updated 2026-10-22.