# Integrations / Ollama: Running local models

Source: https://www.kerlig.com/help/integrations/ollama/running-local-models

##### A step-by-step guide on how to run local models using Ollama

> 🦙 Ollama suggest you should have at least 8 GB of RAM available to run the 7B models, 16 GB to run the 13B models, and 32 GB to run the 33B models.

1. **Download Ollama**

   Visit Ollama official website at [ollama.com](https://ollama.com/) and download it.

2. **Launch Ollama**

3. **Download and enable models**

   Go to Kerlig `Settings → Integrations → Ollama` and enable the models you wish to use by toggling the switches.

   _Please note that this will initiate the download process. Since models are typically several gigabytes in size, downloading them will take some time. You can close the settings window, the models will continue to download in the background._

#### Adding custom models

The list of Ollama models in the Settings displays only the most popular and newest models. However, Ollama supports **100+** models. Explore the full library at [ollama.com/library](https://ollama.com/library). To use a model not listed in Settings, follow these steps:

1. **Choose a model**

   Visit [ollama.com/library](https://ollama.com/library) and click on a model you wish to use.

2. **Decide which version you want to use**

   Models come with multiple versions (sizes), for example codegemma comes in `2b` and `7b` version, so the model names are `codegemma:2b` and `codegemma:7b` respectively.

   _2b/7b/13b/33b etc. stands for billions of parameters used during training. The higher it is, the better the model and the more resources it uses._

3. **Add custom model**

   Go to Kerlig `Settings → Integrations → Ollama`, and in the Add Custom Model section, fill in the Model Display Name, e.g. `Code Gemma`, and the actual name (e.g. `codegemma:7b`). Then, click Add.

4. **Download and enable models**

   Once the model appears on the list, click the toggle. After the download is complete, the model will be ready for use.

#### Using tools and MCP servers

Ollama models can use [tools](/help/agentic-mode/overview) and your [MCP servers](/help/agentic-mode/connecting-mcp-servers) when the model supports tool calling. Everything stays on your Mac.

1. **Update Ollama**

   Install the latest version from [ollama.com](https://ollama.com/download). Tool calling gets better with almost every release, and older versions can miss a tool call when the model writes some text before it.

2. **Pick a model that supports tools**

   On [ollama.com/library](https://ollama.com/library), look for the **tools** badge. To check a model you already have, run `ollama show <model>` in Terminal. Its _Capabilities_ should include `tools`.

3. **Let Kerlig check the model**

   Kerlig asks Ollama what each enabled model can do when Kerlig starts, when you enable a model, and when you pull a model in Terminal, as soon as `Settings → Integrations → Ollama` is open. After updating Ollama, restart Kerlig so it checks again. A model without tool support shows _· no tools_ next to its name in the Kerlig window and answers without tools.

Models that think before answering, like Qwen, take a little longer before each tool call. For a worked example, see [Your calendar with a local model](/help/agentic-mode/local-calendar).
