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
- Install Ollama, and download a model, like with
ollama pull llama3.2in the Terminal app. Keep Ollama open. - Open AI Actions, and open its settings (the first time, click “Set API key (required)”).
- In “Ask AI Base URL”, enter
http://localhost:11434. - Ollama needs no API key, but the field must have text. Enter any text, like
ollama, in “OpenAI API Key”. - In the Shortcuts app, make a new shortcut, and add the “Ask AI” action.
- 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 commandollama listshows the names of your models. - 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_HOSTto0.0.0.0). Then enter its network address, likehttp:/. AI Actions asks for access to the local network./ 192 .168 .1 .20:11434 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, startllama-server, and enterhttp://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
Free
- Platforms
- macOS, iOS, visionOS
- Requires
- macOS, iOS, or visionOS 27 or later
- Category
- Utilities
- Released
- September 2023
- Privacy
- Read the policy
- Updated
- October 2026
- Version
- 1.5.2
- Size
- 8 MB
- US App Store rating
- 4.6/5 (27 ratings)
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:
- In the Shortcuts app, make a new shortcut.
- Add the “Use Model” action, and choose the model on the device (“On-Device” in macOS 27).
- 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.
