Back to Mastra

Ollama

docs/src/content/en/models/providers/ollama.mdx

2025-12-18592 B
Original Source

Ollama

Ollama is available through the AI SDK. Install the provider package to use their models with Mastra.

For detailed provider-specific documentation, see the AI SDK Ollama provider docs.

To use this provider with Mastra agents, see the Agent Overview documentation.

Installation

bash
npm install ollama-ai-provider-v2