Local AI setup

Set up Ollama for Olungu

Choose your operating system and how you run Ollama. The page will show only the instructions for that setup, with the exact dashboard values and verification commands to use.

Choose your setup

These choices change the steps below. If you are unsure, keep the default option for your operating system.

Operating system

How Ollama runs

Model preference

macOS setup with the Ollama app

This is the usual Mac setup. The key detail is setting OLLAMA_ORIGINS with launchctl because menu bar apps inherit their environment from macOS.

  1. Install Ollama

    Ollama provides the local HTTP server that Olungu calls. Without the server running, the dashboard fields cannot connect to anything.

    How to do it

    • Go to the official Ollama download page.
    • Download the installer for macOS.
    • Install it using the default options. If Ollama is already installed, update it to the latest version first: newer models need a recent Ollama.
    • Open a new terminal after installation so the ollama command is available.

    Expected result: Running ollama --version should print a version number. If it does not, close and reopen the terminal.

  2. Download the model

    Ollama only serves models that have been pulled onto your machine. Olungu will return a model-not-found error if this step is skipped.

    How to do it

    • Use qwen3.5:9b for this setup.
    • Run the pull command and wait for the download to finish.
    • If you later choose a different model in Olungu, pull that model first too.
    ollama pull qwen3.5:9b
    ollama list

    Expected result: The model list should include qwen3.5:9b.

  3. Allow Olungu's extension origin

    Browser extensions (Chrome, Edge, Brave, Firefox and Safari) do not share the same origin as ordinary localhost pages. Ollama must explicitly allow extension origins or it returns HTTP 403.

    How to do it

    • Open Terminal.
    • Run both commands below. The first saves the setting, the second prints it back.
    • The first command replaces any earlier value, so keep every browser you use in it.
    • This sets it for apps opened from now on. macOS forgets it when you restart or log out: run this command and the next step again afterwards.
    launchctl setenv OLLAMA_ORIGINS "chrome-extension://*,moz-extension://*,safari-web-extension://*,http://localhost:*,http://127.0.0.1:*"
    launchctl getenv OLLAMA_ORIGINS

    Expected result: The first prints nothing; the second prints the value you saved. Ollama only reads it after a restart, so running the first one again changes nothing by itself.

  4. Restart Ollama completely

    Changing OLLAMA_ORIGINS does not update an already-running Ollama process. A full restart is required.

    How to do it

    • Run the command below. It stops Ollama, waits, and opens it again. Any answer in progress is cut off.
    • Without a terminal: choose Quit Ollama from the menu bar icon, then open Ollama from Applications.
    • Opening Ollama while it is still running only brings it forward, and the old setting stays.
    killall Ollama ollama; sleep 3; open -a Ollama

    Expected result: The command usually prints nothing. "No matching processes" is fine: Ollama was already stopped. http://localhost:11434 should then show that Ollama is running.

  5. Fill in the Olungu dashboard

    Olungu needs to know that classification should use your local Ollama server instead of managed AI or browser built-in local AI.

    How to do it

    • Open the Olungu extension dashboard.
    • Find the AI configuration section.
    • Set AI Mode to Local Model / Ollama (best privacy).
    • Set Local Model Provider to Ollama local endpoint.
    • Set Ollama Base URL to http://localhost:11434.
    • Set Ollama Model to qwen3.5:9b.
    • Click Check connection. Olungu confirms it reached Ollama and that the model answered a test page check, or tells you what to fix.

    Expected result: Do not include /api/generate or /api/chat in the base URL. Olungu adds the Ollama API path itself. If an older red error is still showing after the status says Connected, close it with the ✕.

  6. Verify from the browser-origin path

    A normal local curl can work while browser extension requests still fail. This test sends the Origin header an extension would, so it shows what each browser gets.

    How to do it

    • Run the command below in a terminal.
    • Each line prints a browser name and a number. 200 means that browser is allowed.
    • If the browser you use shows 403, go back to the origin step and restart Ollama again.
    curl -s -o /dev/null -w 'Chrome: %{http_code}\n' -H 'Origin: chrome-extension://test' http://localhost:11434/api/tags
    curl -s -o /dev/null -w 'Firefox: %{http_code}\n' -H 'Origin: moz-extension://test' http://localhost:11434/api/tags

    Expected result: After this passes, open a normal browsing page and let Olungu classify it once. That confirms the extension path, not only the dashboard page.

What Olungu should contain

Use these values after completing the setup steps above.

AI Mode

Local Model / Ollama (best privacy)

Local Model Provider

Ollama local endpoint

Ollama Base URL

http://localhost:11434

Ollama Model

qwen3.5:9b

Troubleshooting

Start with the error shown in Olungu or in the verification command.

Olungu shows HTTP 403

Ollama is running, but your browser's extension origin is not allowed. Recheck OLLAMA_ORIGINS for your setup (it must include chrome-extension://* for Chrome, Edge and Brave, or moz-extension://* for Firefox) and fully restart Ollama.

One browser works, but another shows HTTP 403

OLLAMA_ORIGINS probably lists only the browser that works. Save it again with every browser you use, separated by commas, for example chrome-extension://*,moz-extension://*, then restart Ollama. Setting it replaces the old value, so do not enter only the new browser.

Still HTTP 403 after changing the setting

Ollama is probably still the same running process: it reads the setting only when it starts. Opening it again does not restart it. Use the restart step for your system above.

macOS says User cancelled (-128) when quitting Ollama by script

Ollama refused the polite quit request. Stop it with killall Ollama ollama, then open it again.

ollama serve says address already in use

Ollama is already running and holds port 11434. If you use the app or service, you do not need ollama serve. If you start it by hand, stop the running one first.

Olungu says Ollama is not reachable

Ollama is not running, or the base URL is wrong. Open http://localhost:11434 in a new tab: it should say Ollama is running. If it does not, start Ollama again.

It worked, then stopped after restarting your Mac

macOS forgets a launchctl setting when you restart or log out, so Ollama starts blocking Olungu again. Run the launchctl command from your setup again, then restart Ollama. The Windows user variable and the Linux service override are kept.

You need Ollama's own error log

macOS: the files in ~/.ollama/logs. Windows: run explorer %LOCALAPPDATA%\Ollama and open server.log. Linux service: run journalctl -e -u ollama.

Olungu shows HTTP 404

Use http://localhost:11434 as the base URL and make sure the model name in Olungu exactly matches a line in ollama list, including the part after the colon.

ollama pull says the model needs a newer version

Newer models need a recent Ollama. On macOS and Windows, update Ollama from the menu bar or tray icon. On Linux, run the install command again. Then restart Ollama and pull again.

The first check after a break is slow

Ollama unloads idle models to free memory. Olungu asks Ollama to keep the model loaded for 30 minutes after each check, so only the first check after a longer break waits for the model to load.

Checks are slow every time

The model is probably too large for your machine's memory. Switch to a lighter model above, pull it, and change only the Ollama Model field in Olungu.

Checks are weak or inconsistent

Move up one model size if your machine has the memory for it. Small models follow your distraction list less reliably than larger ones.

Security note

chrome-extension://* and moz-extension://* are convenient because they work before you look up Olungu's exact extension ID. They also allow any other extension in that browser to call Ollama. For a stricter setup, keep only the origin for the browser you use, or replace it with Olungu's exact extension origin.