Ollama
Connect to a local Ollama server.
If you already use Ollama to run local models on your machine, you can easily connect OpenBrowse to your local server.
Setup
- Make sure your Ollama app is running locally.
- Go to Settings → Models.
- Select Ollama.
- Set your base URL (usually
http://127.0.0.1:11434orhttp://localhost:11434).
Resolving CORS Issues
By default, Ollama restricts which domains can connect to its local server. Because OpenBrowse runs as a Chrome extension, you need to configure Ollama to accept requests from the extension's origin.
Setting OLLAMA_ORIGINS
You must add your extension ID (e.g. chrome-extension://*) to the OLLAMA_ORIGINS environment variable.
On macOS
If you run Ollama via the macOS app:
- Open terminal and run:
launchctl setenv OLLAMA_ORIGINS "chrome-extension://*" - Restart the Ollama application.
On Windows
- Open the Start menu, search for "Environment Variables", and click "Edit the system environment variables".
- Click "Environment Variables...".
- Under "User variables", click "New...".
- Set Variable name to
OLLAMA_ORIGINSand Variable value tochrome-extension://*. - Restart your terminal and Ollama application.
On Linux
If you run Ollama via systemd:
- Run
systemctl edit ollama.service - Under
[Service], add:Environment="OLLAMA_ORIGINS=chrome-extension://*" - Save, then run
systemctl daemon-reloadandsystemctl restart ollama