Skip to Content
Back to AI Actions

Updated

How to Use Ollama and Local AI Models in Shortcuts on Mac

By Sindre Sorhus, who makes the AI Actions app

With AI Actions

  1. Install Ollama, and download a model, like with ollama pull llama3.2 in the Terminal app. Keep Ollama open.
  2. Open AI Actions, and open its settings (the first time, click “Set API key (required)”).
  3. In “Ask AI Base URL”, enter http://localhost:11434.
  4. Ollama needs no API key, but the field must have text. Enter any text, like ollama, in “OpenAI API Key”.
  5. In the Shortcuts app, make a new shortcut, and add the “Ask AI” action.
  6. Type your prompt. Expand the action, set “Model” to “Custom”, and type the name of the model, like llama3.2, in the field for the model name. The command ollama list shows the names of your models.
  7. Run the shortcut. The result, “AI Reply”, is text that the next action can use.

AI Actions is free, and Ollama is free. The model runs on your Mac, so your text does not go to a server, and there are no API costs.

Tips

  • For Ollama on another computer, first set Ollama on that computer to accept connections from the network (set OLLAMA_HOST to 0.0.0.0). Then enter its network address, like http://192.168.1.20:11434. AI Actions asks for access to the local network. http:// works only with IP addresses, “.local” hosts, and single-word hosts like “localhost”.
  • For LM Studio, start its server, and enter http://localhost:1234. For llama.cpp, start llama-server, and enter http://localhost:8080.
  • The base URL is for all “Ask AI” actions, so they all use Ollama until you click “Reset”.
  • For Gemini, see how to use Gemini in Shortcuts.

Get AI Actions

AI actions for the Shortcuts app

Download on the App Store

Free

Platforms
macOS, iOS, visionOS
Requires
macOS, iOS, or visionOS 27 or later
Category
Utilities
Released
September 2023
Updated
October 2026
Version
1.5.2
Size
8 MB
US App Store rating
4.6/5 (27 ratings)

More about AI Actions

Without an app

On macOS 26 or later with Apple Intelligence, the built-in “Use Model” action can use the model of Apple on your Mac:

  1. In the Shortcuts app, make a new shortcut.
  2. Add the “Use Model” action, and choose the model on the device (“On-Device” in macOS 27).
  3. Type your prompt in the action, and run the shortcut.

It is free, and it works offline. If it does what you need, use it.

To use Ollama itself without an app, send a request to the Ollama API with the “Get Contents of URL” action. You must make the request and read the reply yourself. AI Actions does this for you.