# Ollama AI integration on Definable

> Run large language models locally or in the cloud with Ollama

## What this connects

Run large language models locally or in the cloud with Ollama

Vendor: https://ollama.com

## Tools available

**8** tools available. First 8:

- `OLLAMA_CHAT` — Chat with Ollama model — Tool to send a chat message with conversation history to Ollama. Use when you need to have a multi-turn conversation with an LLM model.
- `OLLAMA_GENERATE` — Generate Text with Ollama — Tool to generate text responses from Ollama models with optional raw mode. Use raw=true to bypass prompt templating when you need full control over the prompt for debugging or custom processing. Note that raw mode will not return a context.
- `OLLAMA_LIST_MODELS` — List Models — Tool to list all available Ollama models and their details. Use when you need to fetch installed models with metadata including name, size, last modified timestamp, digest, and format information.
- `OLLAMA_OPEN_AI_CHAT_COMPLETIONS` — OpenAI-Compatible Chat Completion — Tool to create OpenAI-compatible chat completions using Ollama models. Use when you need conversational AI responses with OpenAI API format compatibility.
- `OLLAMA_OPEN_AI_COMPLETIONS` — OpenAI-Compatible Text Completion — Tool to create OpenAI-compatible text completions using Ollama models. Use when you need text generation with OpenAI API format compatibility beyond chat-based interactions.
- `OLLAMA_OPEN_AI_LIST_MODELS` — List Models (OpenAI Compatible) — Tool to list available models using OpenAI-compatible API format. Use when you need to retrieve locally available Ollama models with metadata following OpenAI's model list format.
- `OLLAMA_SHOW` — Show Model Information — Tool to show comprehensive information about an Ollama model. Use when you need to retrieve model details, parameters, template, license, or system prompt.
- `OLLAMA_VERSION` — Get Ollama Version — Tool to get the version of Ollama running locally. Use to check which version of Ollama is currently installed.

## Auth

Auth schemes: `API_KEY`.

## How agents use Ollama

Inside a Definable workflow, Ollama is one of the tools the **Distributor specialist** can call. Example coordination patterns:

- **Researcher → Ollama** — the Researcher (GPT-5.5) pulls context from Ollama (records, threads, documents), synthesises findings, and briefs the rest of the team.
- **Writer → Distributor → Ollama** — the Writer (Claude Opus 4.7) drafts copy in brand voice, the Verifier passes it, then the Distributor writes the result into Ollama (create record, post message, draft email).
- **Designer / Engineer → Distributor → Ollama** — the Designer ships an asset or the Engineer ships a code change, the Distributor delivers it via Ollama (attach file, open PR comment, post status).

The Verifier checks every Ollama call. On rate limit, schema drift, or auth refresh it self-heals and retries — the workflow completes without manual intervention.

## Categories

- ai models — https://definable.ai/apps/category/ai-models/
- developer tools — https://definable.ai/apps/category/developer-tools/

## Related

- HTML page: https://definable.ai/apps/ollama/
- Same category (ai models): https://definable.ai/apps/category/ai-models/
- All integrations: https://definable.ai/apps/
- Workflow (multi-agent loop): https://definable.ai/workflow/
- Apps llms.txt index: https://definable.ai/llms-apps.txt
