Setting up Ollama
Ollama allows you to run large language models locally on your own machine. Eviory OS can connect to your local Ollama instance so you can use AI completely offline without paying for API credits.
1. Configuring Ollama CORS
By default, the Ollama server rejects requests coming from an external domain (https://eviory.com). You must explicitly configure Ollama to allow https://eviory.com by setting the OLLAMA_ORIGINS environment variable.
For macOS
If you run Ollama from the terminal, run:
OLLAMA_ORIGINS="https://eviory.com" ollama serveIf you use the macOS desktop app, you need to set it globally using launchctl:
launchctl setenv OLLAMA_ORIGINS "https://eviory.com"(Restart the Ollama app after running this command).
For Windows
- Open the Windows Start menu and search for “Environment Variables”.
- Click Edit the system environment variables.
- Click the Environment Variables… button at the bottom.
- Under “User variables”, click New….
- Set Variable name to
OLLAMA_ORIGINS. - Set Variable value to
https://eviory.com. - Click OK, then restart the Ollama application.
For Linux (systemd)
Edit the Ollama service:
systemctl edit ollama.serviceAdd the following lines:
[Service]
Environment="OLLAMA_ORIGINS=https://eviory.com"Then restart the service:
systemctl daemon-reload
systemctl restart ollama2. Configuring Eviory OS Settings
Once your Ollama server is running and configured correctly:
- Open Settings in Eviory OS.
- Go to the AI Integrations tab.
- Scroll down to Custom Local AI / Proxy.
- Fill in the fields exactly as follows:
- Base URL:
http://127.0.0.1:11434/v1 - API Key: Leave blank
- Model ID: Match the model you have loaded in Ollama (e.g.,
llama3orphi3).
- Click Save Changes.
(Note: If the connection fails, see the Troubleshooting CORS guide).