Configuring Netvara Client with Ollama
Overview
The Netvara Client can automatically detect a local Ollama installation and expose its installed models through the local Netvara gateway. Most installations require no manual backend configuration.
Prerequisites
- Netvara Client installed and paired
- Ollama installed on the same machine
- At least one Ollama model downloaded
- Ollama running locally, normally at
http://127.0.0.1:11434
Step-by-Step Instructions
1. Start Ollama if it is not already running:
ollama serveIf Ollama is managed by its desktop application or operating-system service, start it using that method instead.
2. Confirm that at least one model is installed:
ollama list3. Start or restart the Netvara Client. Ollama is detected automatically at its default local address.
4. If Ollama uses a custom host or port, set its base URL before restarting the Netvara Client:
export OLLAMA_BASE_URL="http://127.0.0.1:YOUR_PORT"5. On memory-constrained GPUs or Macs, optionally cap the context size used by the client:
export NETVARA_NUM_CTX_CAP=8192 You can use a larger value such as 32768 when your hardware has sufficient memory.
6. Make environment variables persistent using your shell profile or service configuration if needed, then restart the client.
Verification
Query the Netvara gateway:
curl -H "Authorization: Bearer $(cat ~/.netvara-client/local_api_key)" \
http://127.0.0.1:8091/v1/modelsThe returned model list should include the models shown by ollama list. Send a small test request through an OpenAI-compatible client configured with http://127.0.0.1:8091/v1 as its base URL.
Troubleshooting & Common Questions
Ollama is running but no models appear. Run ollama list, download a model if necessary, and restart the Netvara Client.
Ollama uses a non-default port. Set OLLAMA_BASE_URL to the complete local URL, then restart the client.
Responses run out of memory. Set NETVARA_NUM_CTX_CAP to a smaller value such as 8192. Reduce the model size or close other memory-intensive applications if needed.
Can I use a larger context cap? Yes, if your hardware can support it. Values such as 32768 require substantially more memory than 8192.
Which endpoint should my application use? Use http://127.0.0.1:8091/v1 with the token stored at ~/.netvara-client/local_api_key.
