Skip to content

Local Ollama Setup

Pairing CodRight with Ollama lets you run AI coding assistance completely offline at zero monthly cost. Your source code never leaves your workstation or office network.

Download and install Ollama for Linux, macOS, or Windows from ollama.com.

On Linux:

Terminal window
curl -fsSL https://ollama.com/install.sh | sh

Choose a model that fits your available RAM or GPU VRAM:

Terminal window
# Fast everyday coding (requires ~6 GB RAM/VRAM)
ollama pull qwen2.5-coder:7b
# Stronger reasoning and refactoring (requires ~10-12 GB VRAM)
ollama pull qwen2.5-coder:14b
# Heavyweight architecture tasks (requires 24 GB+ VRAM)
ollama pull qwen2.5-coder:32b

Verify the model responds locally:

Terminal window
ollama run qwen2.5-coder:7b "Write a PHP function to sanitize a filename."

Open VS Code Settings, search for CodRight, and configure:

  • API Endpoint: http://localhost:11434/v1
  • Model: qwen2.5-coder:7b (or whichever model tag you pulled)
  • API Key: Not required for localhost

Agencies can run a single Ollama server on an internal Linux workstation with a dedicated GPU and point every developer’s VS Code setup to it.

  1. On the GPU host, bind Ollama to the local network by setting OLLAMA_HOST=0.0.0.0:11434 in the Ollama systemd service.
  2. Restrict port 11434 to your office LAN or VPN subnet using ufw or your firewall.
  3. Point each developer’s CodRight endpoint to http://<internal-server-ip>:11434/v1.