Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

How to Use Ollama: Install, Run and Customise Local AI (2026)

To use Ollama, install it from ollama.com or its GitHub page, open a terminal and type ollama run followed by a model name, such as gemma4. The model downloads once, then runs on your own computer. The detail people miss: bigger models need more memory, so start small.

Ollama is the tool I point people to when they ask, 'Can I run my own AI on my laptop?' The answer is yes, and Ollama makes it surprisingly simple. You type one command, a model downloads, and you're chatting with an AI that runs on your own machine.

This guide explains what Ollama is, how to install it on Mac, Windows and Linux, the handful of commands you'll use every day, and how a small business might put a local model to work. Every step comes from Ollama's own GitHub page and documentation.

What Ollama is and why people use it

Ollama is a free, open-source tool for running AI models. Its GitHub page says it helps you get up and running with models such as Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen and Gemma, and lets you access the latest releases locally or in the cloud.

The appeal is control. When a model runs locally, your prompts stay on your computer rather than going to a chatbot company. You can also try lots of open models side by side, and connect them to other apps through Ollama's built-in API.

  • Privacy: useful when you're working with drafts or notes you'd rather not upload.
  • Choice: swap between open models from different makers in seconds.
  • Offline work: once a model is downloaded, it runs on your machine.
  • Building: developers can plug Ollama into their own apps and coding tools.

How to install Ollama on Mac, Windows and Linux

Ollama's GitHub page gives two ways to install on each system: a one-line command or a normal download.

  1. Mac: open Terminal and paste the one-line curl install command from Ollama's download page, or download the Ollama.dmg file and install it like any other app.
  2. Windows: open PowerShell and paste the one-line install command from Ollama's download page, or download OllamaSetup.exe and run it.
  3. Linux: paste the same curl install command into a terminal, or follow the manual install guide.
  4. Docker: if you use containers, there's an official ollama/ollama image on Docker Hub.

A quick word of caution I'd give anyone: only run install commands copied from the official site or GitHub page, never from a random forum post or video description.

How to run your first model in Ollama

Once it's installed, you talk to Ollama from the terminal. Typing ollama on its own offers to run a model or connect Ollama to apps. To chat straight away, the docs use this example:

  1. Open your terminal or command prompt.
  2. Type ollama run gemma4 and press Enter.
  3. Wait while the model downloads the first time.
  4. Type your question when the prompt appears, and press Enter to get an answer.
  5. Browse the model library at ollama.com/library to find other models to try.

Bigger models give better answers but need a more powerful computer. If a model feels slow, try a smaller version from the library.

The Ollama commands you'll use most

You only need a few commands. Here's the list, as Ollama's CLI reference describes each one:

Ollama commandWhat it does
ollama run gemma4Starts a chat with a model, downloading it first if needed
ollama pull gemma4Downloads a model without starting a chat
ollama lsLists the models you've downloaded
ollama psShows which models are running right now
ollama stop gemma4Stops a running model
ollama rm gemma4Deletes a model to free up space
ollama create -f ModelfileBuilds your own customised model

How to customise a model with an Ollama Modelfile

A Modelfile is a small text file that tells Ollama how to set up your own version of a model. The docs show an example that starts with a line saying which model to build from, followed by a SYSTEM line giving it standing instructions.

For a small business, that's a neat trick. You could create a model that always writes in British English, keeps answers short, and follows your house style, then run it with one command. Run ollama create with your file, and your custom model appears in your list.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

Connecting Ollama to other apps and coding tools

Ollama runs a local server on your machine, at port 11434 on localhost, which other apps can talk to. It offers a REST API, including a chat endpoint, plus libraries for Python and JavaScript. That's how chat apps and automation tools can use your local models.

The newer ollama launch command sets up supported apps such as OpenCode, Claude Code, Codex and VS Code to use Ollama models. If you're exploring AI for development work, my guide to speeding up coding work with AI prompts has ideas that work with local models too.

Ollama tips for privacy and safety

  • Download models from Ollama's library or other sources you trust.
  • Check each model's licence before using it for commercial work.
  • Remember that any app you connect to Ollama may have its own data rules.
  • Review AI-written code before running it, and never paste passwords or API keys into prompts.
  • Keep your computer and Ollama updated.

Running locally is one way to keep things private, but it isn't the only one. My guide on whether ChatGPT is private explains the settings to check if you use a hosted chatbot too.

Is Ollama right for your business?

Ollama suits people who are comfortable with a terminal, care about privacy, or want to experiment with open models. If you'd rather click than type, a desktop app might suit you better. And if you're not sure whether local AI is worth it for your business at all, that's exactly the kind of question I help with as an AI consultant.

Frequently asked questions

Is Ollama free?

Yes. Ollama is free, open-source software you can download for Mac, Windows and Linux. Models in its library each come with their own licence.

Does Ollama work offline?

Once you've downloaded a model, Ollama runs it on your own computer. You'll need a connection to download models and updates.

What models can I run with Ollama?

Ollama's GitHub page mentions models such as Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen and Gemma. Browse ollama.com/library for the full range.

How do I delete a model in Ollama?

Run ollama rm followed by the model's name. Use ollama ls first to see the models you have.

Can other apps use my Ollama models?

Yes. Ollama runs a local API at localhost that apps can connect to, and the ollama launch command can set up supported coding tools for you.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.