Ollama – What It Is and How to Run a Free ChatGPT Alternative

Contents

Got a question about your site?

Book a short consultation – I will tell you where to start.

What is Ollama?

Ollama is a free, open-source tool for running large language models (LLMs) locally on your own computer – on Windows, macOS and Linux. You download the program, pick a model (e.g. Gemma, Qwen, DeepSeek-R1 or gpt-oss) and chat with it just like with ChatGPT – only without a subscription and without sending your data to the cloud. Ollama also exposes a local API at http://localhost:11434, so you can plug the models into your own scripts and apps.

Ollama at a glance (as of 13 October 2026):

  • Current version: 0.40.3, released on 11 October 2026 (Ollama ships new versions practically every week, so in a month the number will be different),
  • Systems: Windows 10 22H2 or newer, macOS 14 Sonoma or newer, Linux, plus an official Docker image,
  • Interface: a desktop app with a chat window (Windows and macOS), the terminal and a local API,
  • Licence and price: open source under the MIT licence, free to use locally; only the optional models in Ollama’s cloud are paid,
  • Popular models: Gemma 4, Qwen 3.5 and 3.6, DeepSeek-R1, gpt-oss and Llama.
Ollama – logo and the tagline ‘Get up and running with large language models’

An important clarification, because people ask about it a lot: Ollama does not run ChatGPT or OpenAI’s closed GPT models. What it gives you instead is a similar experience – a chat window or a terminal where you ask questions – with open models. The only OpenAI model you can run in it is the open-weight gpt-oss.

Key features of Ollama

  1. Running models locally: models run on your hardware (CPU, an NVIDIA/AMD graphics card or Apple Silicon). Once a model is downloaded, you don’t even need an internet connection.
  2. Ease of use: a single command, ollama run model-name, downloads and runs a model. Since 2025 there’s also a desktop app with a chat window on Windows and macOS, so the terminal is no longer a must.
  3. A wide choice of models: in the library on ollama.com you’ll find models from Google, Alibaba (Qwen), DeepSeek, Mistral AI, Meta, Microsoft and OpenAI, as well as models published by the community.
  4. Data security: when you work locally, your prompts and documents aren’t sent to Ollama’s servers or anyone else’s.
  5. API and integrations: a local REST API, OpenAI API compatibility and official libraries for Python and JavaScript. That makes it easy to plug Ollama into your own tools.

How can Ollama help?

  • Content generation: article drafts, product descriptions, social media posts, meta descriptions – especially when you don’t want to paste client data into an external chat. Just remember that text from a model is a starting point, not a finished piece – I write more about that in my article on how to write SEO content.
  • Working with documents: in the desktop app you drag a text file or PDF into the chat window and ask the model about its contents.
  • Data analysis: classifying keywords, clustering queries (e.g. when finding blog topics for SEO), summarising large sets of text – with no limits and no per-token costs.
  • Interactive apps: chatbots, assistants and automations built on the local API.
  • Customisation: with a Modelfile you can set your own system prompt and model parameters, then save it as a new model with the ollama create command.

The main differences between ChatGPT and Ollama

CriterionChatGPTOllama
Made byOpenAIOllama Inc. (open-source project)
Where it runsCloud (browser, apps, API)Locally on your computer; optionally models in Ollama’s cloud
PriceFree plan with limits and paid subscriptionsRunning locally is free and unlimited; cloud models on the Free plan (pay as you go) or on the Pro and Max plans
Language modelsOpenAI’s closed GPT modelsOpen models: Gemma, Qwen, DeepSeek, Mistral, Llama, gpt-oss and hundreds of others
Languages other than EnglishVery goodDepends on the model – large and newer models do well, the smallest ones poorly
InterfaceChat in the browser and appsDesktop app (Windows, macOS), terminal, API
PrivacyData sent to OpenAI’s cloudWhen working locally, data doesn’t leave your computer
CustomisationSettings, custom GPTs, APIFull control: choice of model, Modelfile, parameters, context
PerformanceDepends on OpenAI’s serversDepends on your hardware (RAM, graphics card)

How to install Ollama on your computer

Ollama runs on Windows, macOS and Linux. You can download the installer from ollama.com/download. The program is free and updated regularly – on Windows and macOS it downloads new versions by itself, and all you do is click ‘Restart to update’ on the icon in the menu bar or taskbar.

If you’d rather run Ollama in a Docker container, you can skip the installation steps below and use the official image:

➡️ The official ollama/ollama image on Docker Hub

Installing Ollama on Windows

Requirements: Windows 10 version 22H2 or newer (Home or Pro). If you have an NVIDIA card, update the driver (the documentation requires version 551.61 or newer). AMD Radeon cards work via ROCm 7 or Vulkan – a current AMD driver is all you need. The program itself needs at least about 4 GB of disk space, and models take up more gigabytes on top – from one to several dozen each, and for the very largest ones even hundreds.

Step 1: Download Ollama

  1. Go to the Ollama website: open ollama.com/download and choose Windows.
  2. Download the installer: click the button to download the installation file (.exe).

Alternatively, you can install Ollama with a single command in PowerShell:

irm https://ollama.com/install.ps1 | iex

Step 2: Install Ollama on Windows

Run the downloaded file and go through the installer. You don’t need administrator rights – by default Ollama installs in your user folder. If you want to install the program somewhere else, run the installer with the /DIR="D:\your_folder" parameter.

Changing where models are stored. By default, models go to C:\Users\your_username\.ollama\models. If you’re short of space on drive C:, move them to another drive:

  1. Close Ollama (right-click the icon in the system tray → Quit).
  2. Open Settings or Control Panel, search for ‘environment variables’ and choose Edit environment variables for your account.
  3. Add a new variable: Name: OLLAMA_MODELS, Value: e.g. D:\your_folder\models.
  4. Save the changes and start Ollama again.

Make sure you don’t change the name of the OLLAMA_MODELS variable, because Ollama looks for it in exactly that form.

Step 3: Run Ollama

Once the installation is finished, the Ollama icon appears in the Windows system tray, and you can open the app with a chat window straight away, pick a model from the list and start typing. By default Ollama starts with the system – keep that in mind, because the server running in the background uses resources while a model is loaded.

Installing Ollama on macOS

Requirements: macOS Sonoma (14) or newer. On Macs with Apple M-series chips Ollama uses the CPU and GPU; on older Intel Macs it runs on the CPU only. Download the .dmg file from ollama.com/download, open it and drag the Ollama app into the Applications folder. If you prefer the terminal, the same install command as on Linux also works on macOS (curl -fsSL https://ollama.com/install.sh | sh). On first launch the app will ask for permission to add the ollama command to the terminal. Models are stored in the ~/.ollama folder.

On Apple Silicon, Ollama uses Apple’s MLX framework. Since version 0.40.0 (September 2026), MLX has been the default engine for supported models, including Gemma 4 and Qwen 3.5/3.6, which has made them noticeably faster on Macs. In the library you’ll also find separate variants with an -mlx suffix, e.g. gemma4:e4b-mlx.

Installing Ollama on Linux

On Linux, one command in the terminal is all it takes:

curl -fsSL https://ollama.com/install.sh | sh

The script installs Ollama as a systemd service, so the server starts automatically. To update, just run the same command again. If you have an NVIDIA card, install the drivers and check them with the nvidia-smi command; for AMD cards, ROCm 7 (the documentation also recommends the latest amdgpu driver). On Linux, Ollama works from the terminal and through the API – the desktop app is available on Windows and macOS.

Running a model for the first time

Whatever your system, type this in the terminal:

ollama run gemma4

Ollama will download the model (a few gigabytes the first time) and then open a chat in the terminal. You end the conversation with the /bye command. The most useful everyday commands:

  • ollama pull model-name – downloads a model without running it,
  • ollama ls – lists downloaded models,
  • ollama ps – models currently loaded into memory (and whether they’re running on the GPU or the CPU),
  • ollama stop model-name – frees the memory used by a model,
  • ollama rm model-name – removes a model from disk.

Which language models does Ollama support?

The model library at ollama.com/library changes every few weeks, so below is a selection of models worth knowing in 2026. Sizes are approximate and refer to the default (quantised) versions – you’ll find the exact values on each model’s page.

ModelMade byAvailable sizesDownload sizeHow to download/use
Gemma 4Googlee2b, e4b, 12b, 26b, 31bfrom approx. 4.6 GB (e2b) to approx. 20 GB (31b); e4b by defaultollama run gemma4
Gemma 3Google270m, 1b, 4b, 12b, 27bfrom under 1 GBollama run gemma3
Qwen 3.5Alibaba0.8b, 2b, 4b, 9b, 27b, 35b, 122b9b: approx. 7 GBollama run qwen3.5
Qwen 3.6Alibaba27b, 35b27b: approx. 18 GB, 35b: approx. 24 GBollama run qwen3.6
Qwen 3Alibaba0.6b – 235b8b: approx. 5.2 GBollama run qwen3
DeepSeek-R1DeepSeek1.5b – 671b8b: approx. 5.2 GBollama run deepseek-r1
gpt-ossOpenAI20b, 120b20b: approx. 14 GBollama run gpt-oss
Mistral Small 3.2Mistral AI24bapprox. 15 GBollama run mistral-small3.2
Llama 3.2Meta1b, 3b1.3–2 GBollama run llama3.2

You get the default variant with just the name (e.g. ollama run qwen3.5), and add a specific size after a colon, e.g. ollama run qwen3.5:4b or ollama run deepseek-r1:14b.

Google Gemma

Gemma is a family of open models from Google DeepMind. The latest, Gemma 4, comes in several sizes – from the small e2b and e4b versions that will run on a laptop, up to 31b for more powerful machines. It understands not only text but also images (and the small e2b and e4b versions handle audio too), supports tool calling and a ‘thinking’ mode. It’s a good, well-balanced choice to start with, including for work in languages other than English.

Qwen from Alibaba

Qwen is currently one of the most popular model families in Ollama. Qwen 3.5 is a set of multimodal models (text + image) with a long context, available in sizes from 0.8b to 122b – from a laptop to a workstation. The newer Qwen 3.6 (27b and 35b, 256K context) focuses on coding and agentic tasks, but it already needs approx. 18–24 GB of memory. Newer versions keep appearing in the library (e.g. Qwen 3.8 27b), so check ollama.com/library for the latest before you download.

DeepSeek-R1

DeepSeek-R1 is a family of ‘reasoning’ models – before answering, the model writes out its chain of thought. It does well on logic, maths and analytical tasks. The full 671b version is hundreds of gigabytes, but you can run the smaller variants (7b, 8b, 14b) on an ordinary computer.

gpt-oss from OpenAI

gpt-oss are OpenAI’s open models under the Apache 2.0 licence – about as close as you can get to ‘ChatGPT on your own computer’. The 20b version fits on a computer with 16 GB of memory, while the 120b version needs a card with 80 GB of VRAM (or the cloud version).

Mistral and Llama

Mistral AI is a French maker of efficient models – Mistral Small 3.2 (24b) is good at following instructions and function calling. Meta’s Llama was the most popular open model for a long time; the small Llama 3.2 models (1b and 3b) are still useful on weaker hardware, although they struggle in languages other than English.

Why the choice of model matters

Below is my test from 2024: I asked the smallest Llama 3.2 (1B), in Polish, ‘What is ollama?’. The answer was pure hallucination – the model invented a ‘specialist in African history’ and then introduced itself as a Microsoft service. Small models are fast, but for work in a language other than English you need something bigger. (If Polish is what you need, there’s also Bielik – a Polish model published in Ollama by the SpeakLeash foundation.)

Running the llama3.2:1b model in Ollama in PowerShell and an example of a wrong answer in Polish

Summary – which model should you choose?

  • To start with and for everyday chat: Gemma 4 or Qwen 3.5 in the default size.
  • For languages other than English: the larger variants of Gemma and Qwen.
  • For tasks that need reasoning: DeepSeek-R1 or gpt-oss.
  • For coding and agents (with 24 GB of memory or more): Qwen 3.6.
  • For weak hardware: the smallest variants (1–4b), accepting lower-quality answers.

Ollama hardware requirements

Ollama itself is lightweight – whether a model runs smoothly depends on memory. The model has to fit into RAM (when running on the CPU) or into the graphics card’s VRAM, with room to spare for the conversation context. As a rough guide:

Model sizeMinimum memory (RAM/VRAM)Examples
1–4Bapprox. 4–8 GBllama3.2, gemma3:4b, qwen3.5:4b
7–14Bapprox. 8–16 GBqwen3.5:9b, deepseek-r1:8b, gemma3:12b, gpt-oss:20b (16 GB)
24–35Bapprox. 24–32 GBmistral-small3.2, gemma4:31b, qwen3.5:27b, qwen3.6
70B and above64 GB and moredeepseek-r1:70b, gpt-oss:120b (80 GB card)
  • A graphics card gives the biggest speed-up. Ollama supports NVIDIA (CUDA) and AMD (ROCm/Vulkan) cards. Without a GPU the model will still work, but answers will be noticeably slower.
  • A Mac with Apple Silicon uses unified memory – a Mac with 16 GB or 32 GB of RAM can run surprisingly large models.
  • Check where the model is running: the ollama ps command shows in the ‘Processor’ column whether the model is on the GPU, the CPU, or split between them. If you see a lot of CPU, choose a smaller variant.
  • Context uses memory too: you can set the context length in the app or with the OLLAMA_CONTEXT_LENGTH variable. Longer context = more memory used.
  • Disk space: each model takes from one to several dozen GB – remember to remove the ones you don’t use with ollama rm.

Examples of using models in Ollama

1. Gemma – content creation

ollama run gemma4

Use case: ‘Prepare an outline for a blog article about the latest trends in VR technology’. The model works well for drafts, outlines and rewriting texts.

2. Qwen – answering questions and analysing images

ollama run qwen3.5

Use case: an FAQ system for a website, or describing screenshots and product photos – in the desktop app you just drag an image into the chat window.

3. DeepSeek-R1 – tasks that need reasoning

ollama run deepseek-r1:14b

Use case: data analysis, logic problems, checking the reasoning in a text. The model ‘thinks’ first and then answers, so it’s slower but more accurate.

Other use cases

  • Building chatbots: a local model connected through the API can answer users’ questions or hold natural conversations.
  • SEO and content: clustering keywords, generating meta descriptions, classifying search intent – at scale and with no per-token costs.
  • Coding: the ollama launch command lets you connect Ollama models to tools such as Claude Code, Codex, OpenCode or VS Code (e.g. ollama launch claude). Since August 2026 you can also connect open models to the Claude Desktop app through Ollama.
  • Game development: models can help write dialogue and narrative in games, making them more immersive.

How to use Ollama in your own script

While Ollama is running, a local API server listens on your computer at http://localhost:11434. By default it’s only reachable from your own computer – if you want to make it available on your local network, set the OLLAMA_HOST variable. Below is the most important endpoint: chat.

Generating a chat response

Endpoint: POST /api/chat

This endpoint generates the next message in a chat using the selected model. By default the response is streamed (piece by piece). You can turn that off by setting the "stream" parameter to false. The final response object contains statistics about the request.

Parameters

  • model: (required) the name of the model you want to use to generate the response.
  • messages: (required) the chat history – this is how the model ‘remembers’ earlier messages and can continue the conversation.
  • tools: a list of functions (tools) the model can call, if it supports them.

The message object

  • role: the role of the message, which can be system, user, assistant or tool.
  • content: the content of the message.
  • images (optional): a list of images to attach to the message (for multimodal models, e.g. Gemma 4 or Qwen 3.5).
  • tool_calls (optional): a list of tools the model wants to call.

Advanced parameters (optional)

  • format: json or a JSON schema – the model then returns its answer in a strictly defined structure (structured outputs).
  • options: additional model parameters such as temperature, seed or context length (num_ctx).
  • stream: if set to false, the response is returned as a single object rather than a stream of objects.
  • think: turns the ‘thinking’ mode on or off in models that support it.
  • keep_alive: how long the model stays loaded in memory after the request (5 minutes by default, 0 frees the memory immediately).

Examples

Example 1: Chat request (streaming)

curl http://localhost:11434/api/chat -d '{
  "model": "gemma4",
  "messages": [
    {
      "role": "user",
      "content": "why is the sky blue?"
    }
  ]
}'

Response:
You get a stream of JSON objects, each with the next piece of text:

{
  "model": "gemma4",
  "created_at": "2026-10-08T08:52:19.385406455Z",
  "message": {
    "role": "assistant",
    "content": "The"
  },
  "done": false
}

Example 2: Chat request (no streaming)

curl http://localhost:11434/api/chat -d '{
  "model": "gemma4",
  "messages": [
    {
      "role": "user",
      "content": "why is the sky blue?"
    }
  ],
  "stream": false
}'

This time you get a single JSON object with the full answer in the message.content field, plus statistics (total_duration, eval_count and so on).


Example 3: Python and the OpenAI-compatible API

Ollama also provides an OpenAI-compatible API at http://localhost:11434/v1/. That means you can switch a script written for ChatGPT to a local model by changing only the address and the model name. The library requires an API key, but Ollama doesn’t check it:

from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:11434/v1/",
    api_key="ollama",
)

response = client.chat.completions.create(
    model="gemma4",
    messages=[{"role": "user", "content": "Write a meta description for a local SEO page."}],
)
print(response.choices[0].message.content)

If you don’t need OpenAI compatibility, you can use Ollama’s official libraries: pip install ollama (Python) or npm i ollama (JavaScript). For an example of how to put this combination of Python and a language model to work in SEO, see my article on bulk-checking HTTP status codes with Python and ChatGPT – you can plug in an Ollama model there instead of ChatGPT.

Ollama reviews: pros and cons

Rather than collecting rave reviews from forums, I’ve listed what follows from the nature of the tool itself. For me the balance is simple: Ollama is the fastest route to local AI, but it won’t replace ChatGPT or Claude for every task.

ProsCons
Free and open source (MIT), no limits when working locallyAnswer quality depends on the model, and the models that fit on an ordinary laptop are weaker than the best cloud models
Privacy – prompts and documents don’t leave your computerLarge models need a lot of memory (RAM/VRAM) and disk space
Installs in a few minutes, one command to run a modelNo official desktop app on Linux – you’re left with the terminal, the API or a third-party interface
Local OpenAI-compatible API – easy to connect scripts and toolsSmall models often make mistakes and hallucinate, especially in languages other than English
A huge model library and frequent updatesFrequent updates also mean frequent changes – instructions from a year ago are often out of date

Ollama – frequently asked questions

Is Ollama free?

Yes. The program is free and open source, and running models locally has no limits or fees – you only pay for electricity and hardware. The only paid part is the optional models run in Ollama’s cloud: on the Free plan you pay for usage (credits), the Pro plan costs USD 20 a month and Max USD 100 a month (as of October 2026; current pricing: ollama.com/pricing).

Is Ollama ChatGPT?

No. ChatGPT is an OpenAI cloud service running on closed models. Ollama is a program for running open models on your own computer. The effect is similar – you chat with an AI in a chat window – but the models are different. The closest thing to ChatGPT is OpenAI’s open gpt-oss model, which you can run in Ollama with ollama run gpt-oss. The ollama launch command doesn’t run ChatGPT either – it connects Ollama models to developer tools such as Claude Code or Codex.

What is the latest version of Ollama?

As of 13 October 2026, the latest stable version is 0.40.3 (released on 11 October), with 0.40.4 already in testing. You can always check the current number on the releases page in the GitHub repository or with the ollama -v command. On Windows and macOS the app updates itself; on Linux you just run the install script again.

Does Ollama work in languages other than English?

The program’s interface is in English, but you can talk to the model in other languages too. The quality depends on the model: the larger variants of Gemma and Qwen (e.g. gemma4:26b or qwen3.6) do best. The smallest models (1–3B) often make mistakes and hallucinate outside English.

Is Ollama safe?

When you work with local models, your prompts and data aren’t sent to Ollama’s servers – everything happens on your computer. Only download the installer from the official ollama.com website or the project’s GitHub repository. If you expose the API on a network (OLLAMA_HOST), make sure it isn’t publicly reachable from the internet.

Where can I download Ollama?

Only from the official website ollama.com/download (Windows, macOS, Linux) or from the github.com/ollama/ollama repository. You then download models from within the program.

Is there an online version of Ollama?

Ollama is first and foremost a local program – there’s no browser chat you can use without installing anything. But once you sign in to an Ollama account, you can use cloud models (marked ‘cloud’ in the library) from the same app when your computer is too weak for a large model – e.g. gemma4:31b-cloud or gpt-oss:120b-cloud. Just remember that your prompts then go to Ollama’s servers.

How much RAM does Ollama need?

It depends on the model. Small models (1–4B) will run on 8 GB of RAM, 7–14B models need about 16 GB, and models above 30B need 32 GB or more. Ideally the whole model fits into the graphics card’s memory (VRAM) – that’s when it runs fastest.

Need more information?

Have a look at the official documentation at docs.ollama.com. Local models are a great option for SEO analysis and automation where you don’t want to send client data to the cloud. You’ll find more practical guides in the SEMURAI Academy.

Wondering whether a local model makes sense in your SEO and content processes – and where you’re better off sticking with cloud tools? Let’s talk it through in an SEO consultation.

Yes, this post was written with the help of AI. Surely it’s obvious that a post about AI has to be written with the help of AI 😉

Tomasz Stopka

Tomasz Stopka

SEO consultant since 2008 · published author on content marketing

I have worked at agencies, at Onet (one of Poland’s largest web portals) and independently as SEMURAI. In the Academy I share what has worked in practice – specific and no fluff.

Read next