Complete guide to set up Ollama backend for the Chrome Extension
Visit the official website to download Ollama:
Once installed, start the Ollama server:
This launches the Ollama API at:
After installation, run a model of your choice:
Once downloaded, you're ready to chat!
Whether you need to configure CORS depends on your browser:
If you're using Chrome-based browsers and extension version 0.1.3 or later, you likely do not need to set any CORS headers.
Ollama Client uses Chrome's Declarative Net Request (DNR) API to rewrite Origin headers in requests to localhost, which lets it bypass CORS errors without backend changes.
Firefox does not support Chrome's DNR API, so manual configuration is required.
If you're using Firefox, set this in your environment:
To cover both Chrome and Firefox, you can combine origins:
If you're seeing CORS errors or using Firefox, follow these platform-specific instructions to set OLLAMA_ORIGINS:
1. Edit the plist file:
2. Add inside <key>EnvironmentVariables</key>:
3. Reload the agent:
1. Edit the service file:
2. Add under [Service]:
3. Reload and restart:
1. Press Win + R, type sysdm.cpl, press Enter.
2. Go to Advanced → Environment Variables.
3. Add a new User variable:
4. Restart Ollama.
You can also allow local web apps like this:
Open this in your browser:
Or use curl:
1. Click the ⚙️ Settings icon in the extension popup.
2. You can configure: