I have ollama installed on my Mac, and a model pulled. I want an icon on Desktop that runs this model (preferrably in GUI). The user that will use the model doesn't know what terminal is, so it should be very user-friendly. Suggest a solution that is super easy to setup.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Great question! You want a desktop icon on your Mac that launches an Ollama model in a user-friendly GUI, so a non-technical user can interact with it easily.
Here’s a step-by-step solution that’s easy to set up:
1. Use a Simple Local Web UI for Ollama
The easiest way to provide a GUI for Ollama is to use a web-based interface. There are several open-source projects that provide a nice chat interface for Ollama, such as:
This will start Open WebUI and connect it to your local Ollama instance.
3. Create a Desktop Shortcut (App Icon) to Open the WebUI
A. Use Automator to Create an App
Open Automator (in Applications).
Choose "Application" as the type.
In the search bar, type "Open URLs" and drag "Open URLs" to the workflow.
Enter the URL:
code
http://localhost:3000
Save the application as "Ollama Chat" to your Desktop.
Now, double-clicking this icon will open the chat interface in the default browser.
4. (Optional) Make it Look Nicer
Change the icon:
Right-click the app, choose Get Info, and paste a custom icon (e.g., an Ollama logo or chat bubble) onto the icon in the info window.
5. (Optional) Hide Terminal and Docker
Set Docker to start at login (in Docker Desktop preferences).
The user never needs to see Terminal or Docker; just double-click the desktop icon.
Summary
Ollama runs in the background.
Open WebUI provides a friendly chat GUI.
Desktop icon opens the chat in a browser.
This is the easiest, most user-friendly way to run Ollama with a GUI on Mac!
If you want a true native Mac app (not browser-based), let me know, but it’s much more complex to set up.
User
I don't want docker and ollama to always run on background, only when the user clicks the icon
Assistant
Great clarification! You want Ollama and the WebUI to start only when the user clicks the desktop icon, and shut down when the user closes the app/browser. Here’s a solution that’s still easy to set up and use:
Solution: Automator App to Start Everything
You can create a single Automator app that:
Starts Ollama (if not running)
Starts the WebUI (without Docker, using Node.js or Python)
Opens the browser to the chat page
When the user closes the browser, you can (optionally) stop Ollama and the WebUI.
Step 1: Install Ollama and WebUI
A. Ollama
You already have this.
B. WebUI (without Docker)
Let’s use Ollama WebUI because it’s easy to run with Node.js.
Create a file called start_ollama_webui.command on your Desktop:
bash
User
I don't want to install npm
Assistant
Great, thanks for clarifying! If you don’t want to install npm/Node.js and want a desktop icon that starts Ollama and a GUI only when clicked, here are your best options:
Option 1: Use a Prebuilt GUI App for Ollama
As of mid-2024, there are a few projects that provide a standalone Mac app for Ollama, requiring no npm or Docker. The most user-friendly is:
(Optional) Drag the app to your Desktop or Dock for easy access.
Result:
The user just double-clicks the icon. No Terminal, no npm, no Docker, no browser. This is the easiest and cleanest solution.
Option 2: Use Automator to Start Ollama and Open a WebUI (No npm, No Docker)
If you want to use the official Ollama web interface (which is very basic), you can:
Create an Automator App:
Open Automator, select "Application".
Add a "Run Shell Script" action with:
bash
open -a "Ollama"
sleep 2
open http://localhost:11434
Save as "Ollama Chat" on your Desktop.
How it works:
Double-clicking the icon starts Ollama (if not running) and opens the web interface in the browser.
Quitting the browser does not stop Ollama, but you can create a second Automator app to run killall Ollama if you want a "Quit" button.
Note: The official Ollama web interface is very minimal (not a chat UI, just an API playground).
User
When I open http://localhost:11434 there is no chat interface, only this text: Ollama is running
Assistant
You are absolutely correct! http://localhost:11434 is just the Ollama API endpoint, not a chat interface.
Ollama itself does not provide a built-in chat GUI—just the backend.
Summary of Your Options (No npm, No Docker, No Terminal)
Drag the app to your Applications folder (or Desktop).
Double-click to open.
(You may need to allow it in System Preferences > Security & Privacy > Open Anyway.)
2. No Other True GUI Option Without npm or Docker
All other chat UIs for Ollama (like Open WebUI, Ollama WebUI, etc.) require either npm or Docker.
The official Ollama app does not have a GUI.
What to Tell the User
Double-click the Ollama Desktop app to start chatting.
No Terminal, no browser, no npm, no Docker.
Quitting the app stops everything.
If You Want a Native Mac App Experience, This Is the Solution!
If you need a different workflow or want to discuss other options (like using a browser-based UI with a prebuilt Electron wrapper), let me know!
But for your requirements, Ollama Desktop is the best and easiest way.
#!/bin/bash
# Start Ollama if not running
if ! pgrep -x "ollama" > /dev/null
then
open -a "Ollama"
sleep 3 # Give it a moment to start
fi
# Start WebUI (adjust path if needed)
cd ~/ollama-webui
npm run dev &
# Wait for WebUI to start
sleep 5
# Open browser
open http://localhost:3000
# Wait for browser to close (optional: monitor process)
# When done, kill WebUI (optional)
# pkill -f "npm run dev"
Make it executable:
bash
chmod +x ~/Desktop/start_ollama_webui.command
Step 3: Make it User-Friendly
Rename the script to something like "Ollama Chat".
Change the icon if you want (Get Info > paste icon).
The user just double-clicks the icon to start everything.
Step 4: (Optional) Stop Everything When Done
If you want to automatically stop Ollama and the WebUI when the user closes the browser, it’s a bit trickier, but you can add a "Quit" button in the WebUI or provide a second script to stop everything:
Create stop_ollama_webui.command:
bash
#!/bin/bash
pkill -f "npm run dev"
pkill -x "ollama"
Make it executable:
bash
chmod +x ~/Desktop/stop_ollama_webui.command
The user can double-click this to stop everything.
Summary
No Docker needed.
Ollama and WebUI only run when the user clicks the icon.
User just double-clicks a desktop icon.
Optional stop script to shut everything down.
If you want a more "app-like" experience (single window, no browser), you can use nativefier to wrap the WebUI as a Mac app. Let me know if you want those steps!
Option 3: Use a Prebuilt WebUI App (No npm, No Docker)
If you want a chat-style GUI and don’t want npm or Docker, you need a prebuilt Mac app.
Currently, Ollama Desktop (see Option 1) is the best and easiest solution.
Summary Table
Solution
Chat UI
No npm
No Docker
Easy for user
How to use
Ollama Desktop (unofficial)
✅
✅
✅
✅
Download, double-click
Automator + Ollama
❌ (API only)
✅
✅
✅
Double-click icon
WebUI with npm
✅
❌
✅
❌
Not recommended
WebUI with Docker
✅
✅
❌
❌
Not recommended
Recommendation
Download Ollama Desktop and put the app on the Desktop.
This is the easiest, most user-friendly, and requires no npm, no Docker, and no Terminal.
If you want a "Quit" button or a way to stop Ollama when the app closes, let me know!