| 1 | --- |
| 2 | title: "How to Configure Ollama with Continue" |
| 3 | slug: ../ollama |
| 4 | sidebarTitle: "Ollama" |
| 5 | --- |
| 6 | |
| 7 | <Tip> |
| 8 | **Discover Ollama models [here](https://hub.continue.dev/lmstudio)** |
| 9 | </Tip> |
| 10 | |
| 11 | <Info> |
| 12 | Get started with [Ollama](https://ollama.com/download) |
| 13 | </Info> |
| 14 | |
| 15 | ## Configuration |
| 16 | |
| 17 | <Tabs> |
| 18 | <Tab title="YAML"> |
| 19 | ```yaml title="config.yaml" |
| 20 | models: |
| 21 | - name: <MODEL_NAME> |
| 22 | provider: ollama |
| 23 | model: <MODEL_ID> |
| 24 | apiBase: http://<my endpoint>:11434 # if running a remote instance of Ollama |
| 25 | ``` |
| 26 | </Tab> |
| 27 | <Tab title="JSON (Deprecated)"> |
| 28 | ```json title="config.json" |
| 29 | { |
| 30 | "models": [ |
| 31 | { |
| 32 | "title": "<MODEL_NAME>", |
| 33 | "provider": "ollama", |
| 34 | "model": "<MODEL_ID>" |
| 35 | "apiBase": "http://<my endpoint>:11434" // if running a remote instance of Ollama |
| 36 | } |
| 37 | ] |
| 38 | } |
| 39 | ``` |
| 40 | </Tab> |
| 41 | </Tabs> |
| 42 | |
| 43 | <Info> |
| 44 | **Check out a more advanced configuration [here](https://hub.continue.dev/ollama/qwen3-coder-30b?view=config)** |
| 45 | </Info> |
| 46 | |
| 47 | ## How to Configure Model Capabilities in Ollama |
| 48 | |
| 49 | Ollama models usually have their capabilities auto-detected correctly. However, if you're using custom model names or experiencing issues with tools/images not working, you can explicitly set capabilities: |
| 50 | |
| 51 | <Tabs> |
| 52 | <Tab title="YAML"> |
| 53 | ```yaml title="config.yaml" |
| 54 | models: |
| 55 | - name: <CUSTOM_MODEL_NAME> |
| 56 | provider: ollama |
| 57 | model: <CUSTOM_MODEL_ID> |
| 58 | capabilities: |
| 59 | - tool_use # Enable if your model supports function calling |
| 60 | - image_input # Enable for vision models |
| 61 | ``` |
| 62 | </Tab> |
| 63 | <Tab title="JSON (Deprecated)"> |
| 64 | ```json title="config.json" |
| 65 | { |
| 66 | "models": [ |
| 67 | { |
| 68 | "title": "<CUSTOM_MODEL_NAME>", |
| 69 | "provider": "ollama", |
| 70 | "model": "<CUSTOM_MODEL_ID>", |
| 71 | "capabilities": { |
| 72 | "tools": true, // Enable if your model supports function calling |
| 73 | "uploadImage": true // Enable for vision models |
| 74 | } |
| 75 | } |
| 76 | ] |
| 77 | } |
| 78 | ``` |
| 79 | </Tab> |
| 80 | </Tabs> |
| 81 | |
| 82 | <Note> |
| 83 | Many Ollama models support tool use by default. Vision models often also support image input |
| 84 | </Note> |