If you want the easiest path to running AI on your own computer, Ollama is where most people start. It takes the complicated parts of local AI — finding models, loading them, managing memory — and hides them behind a handful of simple commands. This guide shows you how to run LLMs with Ollama from scratch: installing it, downloading your first model, chatting, customizing behavior, connecting other apps, and fixing the problems beginners usually hit.
You do not need programming experience to follow this guide, though a little comfort with opening a terminal helps. The terminal commands here are short, and each one is explained. By the end, you will have a working local model and the knowledge to add more models, adjust settings, and use your model inside other software.
What Is Ollama?
Ollama is a free, open source tool for running large language models locally. Think of it as a friendly manager for models: it downloads them, stores them, loads them into memory when you need them, and unloads them when you are done. It also provides a chat interface and a local API, so other programs can use your models too.
Ollama runs on Windows, macOS, and Linux. On macOS and Windows, it appears as a small icon in your menu bar or system tray, quietly running in the background. On Linux, it runs as a service. In all cases, you interact with it mainly through short terminal commands, though graphical front ends exist that talk to Ollama behind the scenes.
Why is Ollama so popular? Three reasons. First, its model library is curated: instead of hunting through thousands of files, you pick from a list of well-known models with one-command downloads. Second, it handles the technical details, such as choosing the right model format for your hardware and managing graphics card memory. Third, its API has become a standard that many apps support, so learning Ollama once unlocks a whole ecosystem of tools.
Ollama is developed openly, and its source code and documentation live on GitHub, where a large community reports issues and contributes improvements. That openness matters: if something goes wrong, someone has usually already solved it and written about it.
Installing Ollama
Installation is straightforward. Visit the official Ollama website and download the installer for your operating system. On macOS, open the downloaded file and drag Ollama into your Applications folder, then launch it; you may need to approve it in your security settings the first time, which is normal for downloaded apps. On Windows, run the installer and follow the prompts, then allow it through any firewall question that appears, since Ollama needs local network access for its API.
On Linux, the website provides a single install command to paste into a terminal. It downloads and sets up Ollama as a service that starts automatically. If you prefer, your distribution’s package manager may also offer Ollama, though the official script is usually the most up to date.
After installation, confirm Ollama is running. On macOS and Windows, look for its icon in the menu bar or system tray. On all systems, you can open a terminal and run a command that lists installed models; if it returns an empty list without an error, Ollama is running and ready. If you see a connection error instead, Ollama is not running yet: launch the application again, wait a few seconds, and retry.
One more check is worth doing before downloading a model: confirm you have enough free disk space. Models range from a few hundred megabytes for tiny ones to around eight gigabytes for mid-size ones. Keeping at least twenty gigabytes free gives you room to try several models without worrying.

Downloading and Running Your First Model
Ollama’s model library, browsable on its website, lists popular models with their sizes and descriptions. For a first model, choose a small or mid-size instruct model that fits your computer’s memory. If you have 8 GB of RAM, pick a model around one to three billion parameters. With 16 GB or more, a seven to eight billion parameter model is a good target.
Downloading and running takes one command, in the form ollama run <model-name>. For example, running a popular small model downloads it on first use, which may take several minutes depending on its size and your internet speed. A progress display shows the download, and you only wait once: later runs start almost instantly because the model is already stored.
When the download finishes, you are placed directly into a chat prompt. Type a question and press enter. The model answers piece by piece, right in your terminal. Try a follow-up question to see how it remembers context, and try asking it to summarize a paragraph you paste in. These first experiments teach you more about the model’s strengths and limits than any review.
To leave the chat, use the /bye command. To run the model again later, repeat the same run command. To see all your installed models, there is a list command. To remove a model you no longer want, there is a delete command. To update a model to its newest version, you pull it again with the pull command. These five commands — run, list, delete, pull, and bye — cover nearly everything a beginner needs day to day.
If the model feels slow, do not assume something is broken. The first answer after loading is often the slowest, and later answers speed up. Small models on modest hardware still take a second or two per sentence, which is normal. If speed is truly unusable, try a smaller model or a more compressed version before concluding that your computer cannot handle local AI.
Chatting Well: Prompts, Settings, and Sessions
Good results come from good prompts, and Ollama gives you control over how the model behaves. The simplest control is the prompt itself: be specific about what you want, give context, and state the format you prefer. Instead of “write about dogs,” try “write a three-paragraph introduction to dog training for first-time owners, in a friendly tone.” Specific prompts consistently produce better answers.
You can also adjust settings that shape the model’s style. Temperature controls randomness: lower values make answers more focused and predictable, while higher values make them more creative and varied. For factual work, a lower temperature is usually better; for brainstorming, a higher one helps. Ollama lets you set these options per session, and its documentation explains the available parameters in plain terms.
Sessions in Ollama are simple: each run command starts a fresh conversation, and the model remembers only within that session. For a new topic, start a new session rather than continuing a long one, because very long conversations slow the model and can confuse it with stale context. If you want to keep a conversation, you can save the terminal output or copy useful answers into your notes.
A useful habit is to test a new model with the same five questions every time: explain a concept simply, summarize a paragraph, draft a short email, solve a small reasoning problem, and write a tiny piece of code. This standard test makes comparisons fair, and it quickly reveals whether a model suits your needs. Keep your test questions in a note so you can reuse them whenever you try a new model.

Customizing Models with Modelfiles
One of Ollama’s most powerful features is the Modelfile, a short text file that defines a customized model. With a Modelfile, you can set a system prompt that shapes the model’s personality, adjust temperature and other parameters, and create a named version of a model tuned for a specific job. For example, you could create a “drafting assistant” that always writes concisely, or a “tutor” that explains things step by step and asks questions.
A Modelfile starts with a base model, then adds instructions. A typical file is only a few lines: it names the base model, sets a system message describing the desired behavior, and optionally sets parameters. You then create your custom model with a single create command, giving it your own name. After that, you run it exactly like any other model.
This feature turns Ollama from a chat tool into a workshop. Writers can build a style editor, teachers can build a patient tutor, developers can build a code reviewer, and businesses can build assistants that follow company guidelines. Each custom model is just a file, easy to share, version, and improve. If you only learn one advanced Ollama feature, make it Modelfiles, because they multiply what a single base model can do.
Keep customizations simple at first. One clear system prompt beats a long list of conflicting instructions. Test your custom model on real tasks, refine the prompt based on what you see, and avoid overloading it with rules that fight each other. Good customization is iterative: prompt, test, adjust, repeat.
Connecting Apps to Ollama
Ollama’s local API is what turns your model into a building block for other software. When Ollama runs, it listens on your computer at a local address, and other programs can send it prompts and receive answers. Many popular tools support this directly: notes apps, code editors, chat front ends, and browser extensions often include an Ollama option in their settings.
To connect an app, you usually enter the local address and pick a model name from your installed list. The app then sends your requests to your local model instead of a cloud service. Your data stays on your machine, and there are no per-message fees. If an app does not list Ollama specifically, it may still work with a generic local API setting, since Ollama’s API follows a widely used pattern.
Developers can also write small scripts that talk to Ollama’s API directly, using any programming language with web request support. A script might send a document for summarizing, process a list of files, or build a simple chatbot for a personal project. The API documentation on Ollama’s website gives examples for common languages, and the basic pattern is the same everywhere: send a prompt, receive a response.
If you connect apps, keep one security habit: Ollama’s API is meant for your own computer, not for the whole internet. Do not expose it publicly or forward its port through your router unless you understand the risks and have secured it. Used locally, it is safe and convenient; exposed publicly, it could let strangers run your hardware. The default setup is local-only, which is exactly how it should stay for most users.

Managing Models, Updates, and Disk Space
As you experiment, your model collection grows, and a little management keeps it tidy. List your models regularly and remove ones you no longer use, since each one occupies gigabytes. Removing a model is safe: you can always download it again later if you change your mind.
Update your models occasionally by pulling them again, which fetches the newest version. Test a new version before relying on it, because updates can change behavior. Update Ollama itself when new releases appear, since they bring speed improvements, bug fixes, and new features. On macOS and Windows, the app usually notifies you; on Linux, repeat the install command or use your package manager.
If disk space gets tight, check which models are largest and remove the ones you use least. Tiny models you never touch are the first candidates. Also remember that Ollama stores models in its own directory, so uninstalling the app may not remove the models; check the documentation for your system if you want a complete cleanup.
Back up your Modelfiles, since they represent your customizations and are tiny text files. Keep them in a notes folder or a code repository, so you can recreate your custom models on a new computer in minutes. Your chat history, by contrast, lives only in your terminal sessions, so copy anything valuable into your notes before closing a session.
Troubleshooting Common Problems
Most beginner problems have simple fixes. If Ollama will not start, restart your computer and launch it again; a conflicting process or a pending update is often the cause. If a command reports a connection error, Ollama is not running: look for its icon, launch the app, wait a few seconds, and retry.
If a download fails, check your internet connection and try again; large downloads sometimes stall and resume cleanly on a second attempt. If a model fails to load, it is usually too large for your available memory: try a smaller model or a more compressed version, and close heavy applications to free memory.
If answers are very slow, check whether your graphics card is being used, if you have one. Ollama normally detects it automatically, but driver issues can prevent that. Updating your graphics drivers and restarting Ollama often resolves it. If slowness persists on a modest machine, switching to a smaller model is the most effective fix.
If the model gives strange or unhelpful answers, the problem is usually the prompt, not the tool. Make your request more specific, give an example of the format you want, and break complex tasks into steps. Also check that you downloaded an instruct version of the model, since base models behave very differently and confuse beginners.
For problems beyond these, the Ollama community is large and helpful. Search the error message online, check the project’s documentation and discussion forums, and include your operating system, model name, and the exact error when asking for help. Clear questions get clear answers.
Your Ollama Learning Path
Start today by installing Ollama and running one small model. Spend an hour chatting and testing it on your real tasks. This week, try a second model, create one custom Modelfile for a job you do often, and connect one app you already use. Next, explore the API with a small script or a document-question workflow. Each step builds on the last, and none of them requires expertise you do not already have.
Ollama’s gift is that it makes local AI ordinary. What once required servers, scripts, and expertise now takes an installer and a few commands. That simplicity is why it has become the default starting point for local models, and why learning it pays off across every other local AI project you attempt.
For the broader picture, read our comparison of Local LLM vs Cloud AI on TechBist, explore the other guides in the Generative AI & Local LLMs category, and visit our blog for the latest explainers.
Frequently Asked Questions
Is Ollama free to use?
Yes, Ollama is free and open source. You can download it, run models, and use its API without paying. Your only costs are your computer, electricity, and internet for the initial model downloads. Individual models have their own licenses, which you should check before business use.
How much RAM do I need for Ollama?
It depends on the model, not on Ollama itself. Small models run with 8 GB of RAM, mid-size models of seven to eight billion parameters generally need 16 GB or more, and larger models need 32 GB or beyond. Ollama adds only a small overhead on top of the model’s own memory needs.
Can Ollama run without internet?
Yes, once a model is downloaded, Ollama runs fully offline. You only need internet for the initial installation and for downloading new models or updates. Chatting, custom models, and API use all work without a connection.
What is the difference between Ollama and a chatbot app?
A chatbot app usually connects to a cloud service, sending your data to a provider’s servers. Ollama runs models on your own computer, so your prompts and answers stay local. Ollama also lets you choose models, customize them with Modelfiles, and connect other apps through its API.
Can I use Ollama on Windows, macOS, and Linux?
Yes, Ollama supports all three. The installation differs slightly by system, but the commands for running, listing, and managing models are the same everywhere, so skills you learn on one system transfer directly to the others.
1 thought on “How to Run LLMs with Ollama”