← Back to AI Infrastructure

Ollama

Open-source tool to run open-source models locally on personal computers with a single command and API.

AI InfrastructureFree tier + paidGlobal
curl -fsSL https://ollama.com/install.sh | sh

At a Glance & Reviews

PricingFree tier + paid
OriginGlobal

About Ollama

Ollama is a tool for running open models locally and in the cloud, solving the problem of wanting to use large models without first setting up a complex inference environment or sending prompts and documents to external services by default. Its basic form is straightforward: pull a model with a single command on your own machine and chat directly, while the same set of commands and interfaces can also connect to its cloud to run larger models. The core software is open-source under the MIT license, with a backend based on the llama.cpp project. The official website is explicit about privacy: prompt and response data are neither logged nor used for training, and cloud hosting partners are also required to enforce no-logging, no-training, and zero data retention policies.

The model library is its core entry point. The official model library offers different model families and parameter sizes by name. Families currently visible in the cloud pricing table include Gemma 4, GLM 5.3 and 5.2, gpt-oss 20b and 120b, Kimi K3 and K2.7 Code, DeepSeek V4.1 Flash and V4 Pro, MiniMax M3, Mistral Large 4, and Nemotron 3, among others, while the range available for local pull is listed on the model library page. A model name can be followed by a tag to distinguish sizes; larger sizes generally consume more system memory and video memory, which is why local users often start by getting a smaller version working before switching to a larger version for re-testing. Cloud models use the native weights released by the model creators, may use supported accelerated data formats on newer NVIDIA hardware, and are officially noted as having been tested for tool calling and real-world agent workflows prior to launch.

Model management relies on a set of command-line operations, with dedicated commands for pulling, running, viewing, copying, and deleting models, as well as listing running models to check resource usage. Going a step further than simply switching model names is the Modelfile mechanism: by specifying the base model, runtime parameters, prompt template, system prompt, and adapters in a text file, you can generate a custom variant with fixed behavior. Instructions in the file include FROM to specify the base model, PARAMETER to set options such as temperature and context length, TEMPLATE to define the full prompt template, SYSTEM to insert a system message, ADAPTER to mount a LoRA adapter, and LICENSE to declare the license; once written, a create command generates a new model name that you can run directly. Existing weights can also be imported, with official documentation providing instructions for importing from GGUF files and importing model weights, making it suitable for bringing fine-tuned weights or weights obtained elsewhere into the same runtime workflow.

There are three paths for developer integration. The first is the local REST API, where the service runs by default on localhost port 11434; the chat endpoint accepts a model name and a list of messages and returns a response, allowing integration from any programming language capable of making HTTP requests. The second is the official Python and JavaScript libraries: in Python, install the ollama package and call the chat method with the model and messages, while the JavaScript ollama package follows a corresponding usage pattern, suiting developers who prefer not to write request details by hand. The third is connecting models into coding tools: the official launch command connects local or cloud models into coding tools such as Claude Code, Codex, and OpenCode, keeping their interfaces and workflows unchanged while swapping the underlying engine to models provided by Ollama—a usage pattern that has become common recently.

Getting started differs by operating system. macOS and Linux users can run the one-line installation script provided on the official website, while Windows users can use a PowerShell installation command, or manually download the installer package or run the official Docker image. Once installed, running ollama run gemma4 automatically pulls Gemma 4 and enters a chat session, with initial runtime spent primarily on downloading the model. During development, confirming first that the local service is running, then testing connectivity by sending a curl request to the chat endpoint on localhost port 11434, and only afterward writing the calls into application code helps isolate network issues, undownloaded models, and bugs in the code itself.

Typical use cases fall into three categories. The first is privacy-focused daily experimentation, where document summarization, personal note Q&A, and prompt debugging happen entirely on the local machine without content leaving the device. The second is coding assistance, plugging models into coding tools for explanation, rewriting, and code review beyond basic autocomplete, or batch-processing code snippets in custom scripts. The third is side-by-side model comparison and prototyping: running the same set of prompts across several open models to compare response style, speed, and resource consumption before deciding whether to keep the prototype local or move the large-model portion to the cloud. Offline or intranet scenarios also fit into this category, as once a model is pulled locally, subsequent execution does not depend on external networks.

Pricing must be viewed separately for local and cloud use. Local execution is always free and unlimited, with costs limited to your own hardware and electricity. The cloud follows a pay-as-you-go plus subscription allowance structure: the pay-as-you-go tier starts at $0 with no subscription fee, charges per-token rates for each cloud model, and allows 3 concurrent requests; the Pro tier includes a $60 monthly usage allowance and access to larger professional models; the Max tier includes a $300 monthly usage allowance, earlier access to new models, and 10 concurrent requests; the Team tier costs $500 per month, is in early access, and includes a shared $1,000 monthly usage allowance for the whole team, unlimited users, centralized billing and administration, and priority support, with shared projects and similar features marked as coming soon; and Enterprise is custom-priced, adding access controls to limit the models available to the team, cost budgets by user and API key, and private support channels on top of Team. Cloud usage is measured per token, with the pricing table listing input, cached input, and output prices per million tokens—for example, gpt-oss 20b costs $0.07 for input and $0.30 for output, Gemma 4 costs $0.14 for input and $0.40 for output, and Kimi K3 costs $3.00 for input and $15.00 for output. Off-peak prices apply outside 12:00–18:00 UTC on weekdays and all day on weekends, with some models' off-peak prices at approximately half the standard rate. Monthly allowances reset on the date corresponding to the subscription start date, unused allowances do not roll over, and all tiers support purchasing additional usage credits, which are deducted after the included allowance.

The official stated limitations are mainly on the cloud side. Requests exceeding the tier's concurrency limit are queued and rejected once the queue is full; each person may have only one account and cannot open multiple accounts; and cloud models and compute are primarily hosted in the United States, with traffic potentially routed to Europe to serve global demand—a point teams concerned about data residency should consider during selection. Locally, there are no official usage limits, but the size of models that can actually run depends on the machine's memory and video memory, which is a hardware issue to verify when choosing model specifications rather than a software pricing issue.

Compared to model platforms that offer only cloud APIs, Ollama's difference lies in consolidating model pulling, execution, customization, and API calls into a single command-line workflow, with local and cloud deployments sharing model names and calling conventions, allowing larger models that cannot run locally to move to the cloud without rewriting an entire integration codebase. Compared to solutions requiring self-configured inference frameworks, it eliminates environment setup and model file management, at the cost of a runtime layer it encapsulates uniformly, offering less access to low-level tuning details than directly using inference frameworks. People who choose it typically value three things first: whether it can run on their local machine, whether switching models requires changing only a name, and whether coding tools and scripts can connect through the same interface—these are also the practical criteria for judging whether it fits their workflow.

Frequently Asked Questions

Is Ollama free?

Partly. Ollama has a free tier; higher limits or advanced features are paid. Check the official site for current plans and limits.

Sign in to Lumo

Sign in with a one-time code sent to your email — no password. Your saved tools will sync across your devices.

The code is only used to sign you in. We store just your email and saved list (privacy policy, in Chinese).

—

Signed in. Your saved tools sync across all your devices.

0saved
View saved tools

Send feedback

Found a mistake, missing something, or have a suggestion? Tell us.