Ollama is a free open-source tool that runs large language models on your own computer, with no cloud credits. This guide covers installing it on Windows, macOS, Linux or Docker, launching models like Gemma 4 from the command line, and calling it from code. It suits beginners with a reasonably capable PC.
YouTube video: Run Ollama Locally: Free AI Models on Your PC
Captions are available. Use CC in the YouTube player.
Choose a chapter (6)
- Video length
- 9 min 18 s
- Time to do it
- 15 minutes
- Difficulty
- Easy
- Steps
- 7
What you need
Steps
Download the Ollama installer for your system from ollama.com and run it. On Linux you can also install it with the official install script, or pull the Docker image if you prefer containers.
Open a terminal or command prompt and type ollama to confirm the install worked. The command should print the list of available subcommands.
Start a model with ollama run followed by its name, for example ollama run gemma4. Ollama downloads the model the first time, so keep the window open until it finishes.
Type your prompt at the chat prompt and press Enter. Use /bye to exit the session when you are done.
To use the REST API, make sure the Ollama service is running, then send requests to the local server address on port 11434 from your own script or tool.
For code, install the Python or JavaScript SDK and call the generate or chat endpoint from your script. working examples for both languages.
Pick a front-end if you want a graphical interface: community web UIs, desktop apps or code-editor extensions all connect to your local Ollama server.
Tips and common mistakes
Model size matters more than anything else: a model that fits your RAM will run, one that does not will fail or crawl.
The first run of a model is slow because Ollama downloads it; later runs start much faster.
Keep the Ollama service running in the background, or API calls and front-ends will not connect.
Questions
Does Ollama cost anything?
No. Ollama is free and open source, and the models run on your own hardware, so no cloud credits are needed.
Can I use Ollama without the command line?
Yes. Community web UIs and desktop apps connect to your local Ollama server and give you a chat window instead of a terminal.
Which operating systems are supported?
Ollama installs on macOS, Windows and Linux, and you can also run it through Docker.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


