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.
1. Install Ollama
Section titled “1. Install Ollama”Download and install Ollama for Linux, macOS, or Windows from ollama.com.
On Linux:
curl -fsSL https://ollama.com/install.sh | sh2. Pull a Coding Model
Section titled “2. Pull a Coding Model”Choose a model that fits your available RAM or GPU VRAM:
# 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:32bVerify the model responds locally:
ollama run qwen2.5-coder:7b "Write a PHP function to sanitize a filename."3. Connect CodRight to Ollama
Section titled “3. Connect CodRight to Ollama”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
Sharing an Office GPU Server Over LAN
Section titled “Sharing an Office GPU Server Over LAN”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.
- On the GPU host, bind Ollama to the local network by setting
OLLAMA_HOST=0.0.0.0:11434in the Ollama systemd service. - Restrict port
11434to your office LAN or VPN subnet usingufwor your firewall. - Point each developer’s CodRight endpoint to
http://<internal-server-ip>:11434/v1.