This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Ollama runs open models locally on macOS, Windows, and Linux, and also exposes the same API for Ollama cloud models. This Dify plugin integrates Ollama chat/completion models, vision-capable models, text embeddings, tool calling, streamed responses, and thinking output.
Use the Ollama host root as the Base URL. For a local server, use http://localhost:11434 or another reachable host root. For Ollama cloud models, use https://ollama.com and provide an Ollama API key. Do not include /api in the Base URL because the plugin appends /api/chat, /api/generate, and /api/embed.
| Capability | Support | Notes |
|---|---|---|
| Streaming | Yes | Ollama streams chat and generate responses as newline-delimited JSON. Dify receives incremental content, thinking output, and streamed tool calls. |
| Thinking | Yes | Enable Think for boolean thinking models. Use Think Level with low, medium, or high for GPT-OSS models. |
| Vision | Yes | Enable Vision support for multimodal models such as gemma3 or other Ollama vision models. Images are sent as base64 through Ollama's images array. |
| Embeddings | Yes | Use model type Text Embedding. The plugin calls /api/embed and sends batched input with truncate: true. |
| Tool calling | Yes | Enable Function call support for tool-capable chat models. The plugin supports single, parallel, multi-turn, and streamed tool calls through Dify agents. |
| Web search | External API | Ollama provides cloud web_search and web_fetch APIs, but Dify model-provider plugins cannot package tool providers. Use a separate Dify tool plugin or external workflow when an agent needs web search. |
| Rerank | Compatible endpoint | Ollama does not provide a native rerank endpoint. Use an OpenAI-compatible rerank service and configure its full rerank URL. |
Download Ollama from ollama.com/download.
Pull or run the model you want to use:
ollama run gemma3
ollama pull qwen3
ollama pull embeddinggemma
After startup, the local API is available at http://localhost:11434.
In Dify, go to the Marketplace and install the Ollama plugin.
Go to Settings > Model Providers > Ollama and add a model.
gemma3, qwen3, deepseek-r1, or gpt-osshttp://<your-ollama-host>:11434 for local Ollama, or https://ollama.com for Ollama cloudChat for tool calling, vision, and multi-turn chatnum_predict value Dify should allowYes only for vision-capable modelsYes only for tool-capable modelsFor Docker deployments, use a host address reachable from the Dify container, such as http://host.docker.internal:11434 or a LAN IP address.
In model parameters:
Think to enable or disable Ollama's think field for models that accept booleans.Think Level to low, medium, or high for GPT-OSS models. When set, it overrides Think.Thinking output is preserved in Dify responses with <think>...</think> so it can be displayed, hidden, or passed back in tool loops.
Use a vision model and set Vision support to Yes. Dify image inputs are sent to Ollama in the message images array. The Ollama REST API expects base64 image data.
Use a tool-capable chat model and set Function call support to Yes. Dify will pass available tools to Ollama, execute returned tool calls, and send tool results back with Ollama's tool_name message field.
Streaming tool calls are supported. The plugin accumulates streamed thinking, content, and tool_calls so the next agent turn can continue the tool loop.
Add a model with Model Type Text Embedding.
Recommended Ollama embedding models include:
embeddinggemmaqwen3-embeddingall-minilmThe plugin sends arrays of text to /api/embed, which returns L2-normalized vectors.
Ollama web search and web fetch are cloud APIs. They require an Ollama account and API key, and they are separate from the local model server endpoints.
This plugin is a model provider, so it does not include Ollama web search as bundled Dify tools. To use web search with an Ollama model in a Dify agent, configure a separate search tool or dedicated Ollama web tool plugin, then enable Function call support on the Ollama chat model so it can call the external tool.
Ollama does not currently provide a native rerank model endpoint. To use rerank in this plugin, deploy a compatible rerank service such as llama.cpp, vLLM, TEI, or Xinference and configure the full rerank endpoint URL.
Qwen3-RerankerRerankIf the URL does not end with /rerank, the plugin appends /api/rerank.