# Ollama AI for Raycast

URL: https://www.raycast.com/massimiliano_pasquini/raycast-ollama

> Chat with local or remote Ollama AI models, rewrite and translate text, describe images, summarize websites and manage models.

- Install: raycast://extensions/massimiliano_pasquini/raycast-ollama
- Author: [Massimiliano Pasquini](https://www.raycast.com/massimiliano_pasquini)
- Installs: 45,177
- Platforms: macOS, Windows
- Categories: Productivity, AI Extensions
- Updated: 2026-12-03
- Source: https://github.com/raycast/extensions/tree/94b695ba2d252d1bdea949b8332f744fd5cb330c/extensions/raycast-ollama/

## Commands

- **Chat with Ollama**: Chat with Ollama
- **Summarize Website**: Summarize content from current Website.
- **Change Tone to Casual**: Make selected text more casual
- **Explain Code Step by Step**: Explain the selected code step by step
- **Change Tone to Confident**: Make selected text more confident
- **Explain This in Simple Terms**: Explain selected text in simple terms
- **Fix Spelling and Grammar**: Fix selected text from spelling and grammar error
- **Change Tone to Friendly**: Make selected text more friendly
- **Describe Content of Image**: Describe content of the image on the clipboard or selected from finder
- **Get Text from Image**: Get text from image on the clipboard or selected from finder
- **Improve Writing**: Improve writing of selected text
- **Make Longer**: Make selected text longer
- **Change Tone to Professional**: Make selected text more professional
- **Make Shorter**: Make selected text shorter
- **Translate**: Translate selected text
- **Rephrase as Tweet**: Rephrase selected text as Tweet
- **Manage Models**: Manage installed models
- **Loaded Models**: Show models loaded on ram
- **Create Custom Command**: Create a custom command
- **Custom Command**: Create a custom command using a quicklinks
- **Manage MCP Server**: Manage configured MCP Server
- **Edit Command Settings**: Change model, reasoning effort, and keep alive for a specific command
- **Configure Command Models**: Configure model, thinking effort, and keep alive for each command
- **Global Model Settings**: Configure global default model settings for all commands

## AI tools

- **Web Fetch**: Fetches a single web page by URL and returns its content.
- **Web Search**: Performs a web search for a single query and returns relevant results.

## README

<div align="center">
  <picture>
    <img alt="Ollama AI extension icon" height="128" src="https://github.com/raycast/extensions/raw/94b695ba2d252d1bdea949b8332f744fd5cb330c/extensions/raycast-ollama//assets/icon@dark.png"/>
  </picture>
  <h1>Ollama AI for Raycast</h1>
</div>

Use [Ollama](https://ollama.com) models from Raycast for local and remote inference, chat, writing assistance, image understanding, model management, and tool calling.

This extension is not affiliated with Ollama.

#### Requirements

- [Raycast](https://www.raycast.com) on macOS or Windows
- [Ollama](https://ollama.com/download) running locally, or access to a remote Ollama server
- At least one installed model

You can install a model with the Ollama CLI or pull one directly from the **Manage Models** command. Browse available models in the [Ollama library](https://ollama.com/library).

#### Getting Started

1. Start Ollama or make sure your remote Ollama server is reachable.
2. Open **Manage Models** in Raycast.
3. Pull a model, or use **Add Server** to configure a remote server.
4. Run **Chat with Ollama** or any of the one-shot commands and select the model you want to use.

Remote servers can be configured without authentication, with basic authentication, or with a bearer token.

#### Chat with Ollama

Use **Chat with Ollama** for saved, multi-turn conversations. You can choose separate models for general chat, vision, and tool use, as well as configure thinking effort and how long each model stays loaded in memory.

The action menu lets you:

- Change models with `⌘ M` on macOS or `Ctrl M` on Windows.
- Add selected or clipboard text with `⌘ T` on macOS or `Ctrl T` on Windows.
- Add the current browser tab with `⌘ B` on macOS or `Ctrl B` on Windows. This requires the [Raycast browser extension](https://www.raycast.com/browser-extension).
- Add a JPEG or PNG image with `⌘ I` on macOS or `Ctrl I` on Windows. This requires a vision-capable model.
- Enable or disable the Ollama web search and web fetch tools.
- Copy an answer or an entire conversation, create and rename chats, and inspect inference metadata.

The **Chat Memory Messages** preference controls how many recent messages are sent back to the model. The default is 20.

#### Quick Commands

The extension includes focused commands for common tasks:

- Summarize the current website.
- Explain code step by step or explain text in simple terms.
- Fix spelling and grammar, improve writing, make text shorter or longer, and rephrase text as a post.
- Change the tone to casual, confident, friendly, or professional.
- Translate between the languages selected when launching the command.
- Describe an image or extract text from an image using a vision-capable model.

Most text commands use the input source selected in the extension preferences: **Selected Text** or **Clipboard**. You can also enable fallback to the other source when the preferred source is empty. After a one-shot command finishes, use **Continue as Chat** to keep the conversation going.

Commands that rewrite their input also offer **Auto-Replace Selected Text**, enabled per command in its Raycast settings. When enabled, the generated text replaces your selection as soon as it is ready, instead of waiting for you to copy or paste it. It only replaces text when the selection actually supplied the input: if the input source was the clipboard, or fell back to it because nothing was selected, the answer is shown instead of overwriting whatever happens to be highlighted. Commands that explain, describe, or summarise their input do not offer it, because their output is not a replacement for what you selected.

#### Manage Models and Servers

Use **Manage Models** to:

- Pull, update, and delete models.
- Load a model into memory or unload it.
- Inspect model capabilities, parameters, size, quantization, and other metadata.
- Add, edit, and remove remote Ollama servers.
- Browse models from every configured server in one list.

Use **Loaded Models** to see the models currently held in memory and unload them when they are no longer needed.

#### Create Custom Commands

Use **Create Custom Command** to create a Raycast Quicklink backed by your own prompt, model, and Ollama parameters. Prompts follow the [Raycast Prompt Explorer](https://prompts.ray.so) format and support these tags:

- `{selection}` inserts selected or clipboard text.
- `{browser-tab}` inserts the current browser tab as Markdown. Use `{browser-tab format="html"}` or `{browser-tab format="text"}` to request another format.
- `{image}` attaches a JPEG or PNG image from Finder or the clipboard. This requires a vision-capable model.

Tick **Auto-Replace** to have the result replace the selected text automatically, as the built-in commands can. This only makes sense for a prompt that uses `{selection}`. The choice is stored in the Quicklink when it is created, so changing it later means creating the command again.

#### Web Search and Web Fetch

The extension exposes **Web Search** and **Web Fetch** tools to Raycast AI and can also use them inside **Chat with Ollama** when internet search is enabled.

These tools require an Ollama API key. Create one in your [Ollama account settings](https://ollama.com/settings/keys), then add it to the extension's **Ollama API Key** preference. An API key is not required for local inference.

#### MCP Servers

Use **Manage MCP Server** to add, edit, and remove stdio-based MCP servers for **Chat with Ollama**. Paste a standard JSON configuration such as:

```json
{
  "mcpServers": {
    "example": {
      "command": "npx",
      "args": ["-y", "<mcp-server-package>"]
    }
  }
}
```

Select the configured servers in the chat model settings. Only MCP tools are currently supported, and the selected Ollama model must support tool calling.

#### Preferences

- **Input Source** chooses between selected text and clipboard text.
- **Enable Input Source Fallback** checks the other source when the preferred source is empty.
- **Chat Memory Messages** sets how many recent messages are included as context.
- **Certificate Validation Enabled** controls TLS certificate validation for Ollama server requests.
- **Ollama API Key** enables the hosted web search and web fetch tools.

**Auto-Replace Selected Text** is not listed here: it is set per command, in the settings of each command that rewrites its input.
