bernardo-bruning/ollama-copilot
A Go proxy for Copilot-style code completions with local or hosted models
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Ollama Copilot is a standalone Go compatibility proxy for inline code completion. A Copilot-compatible editor client sends requests to a direct endpoint or through a proxy listener, depending on the editor setup. The process routes generation to the configured provider and returns the completion to the client. It reuses the editor's existing completion UI rather than shipping its own editor plugin or implementing an MCP server.
The codebase has a root main.go entry point and an internal/ directory. The module declares Go 1.24.1 and pins github.com/ollama/ollama to v0.15.2. The CLI is the configuration surface for listeners, TLS, provider selection, and prompt construction. With Ollama or llmman, model serving is a separate process, so proxy health and inference health need to be checked independently.
Key Capabilities & Differentiators
Ollama is the default provider and codellama:code is the default model. -provider also accepts llmman, OpenRouter, DeepSeek, Mistral, and OpenAI. llmman serves the Ollama API on port 17434; its configuration example uses hf.co/unsloth/Qwen3.5-0.8B-GGUF. Hosted-provider examples pair DeepSeek with deepseek-coder and Mistral with codestral-latest, using -token to supply credentials.
The fill-in-the-middle template can include both {{.Prefix}} and {{.Suffix}}. -system sets the system prompt, while -num-ctx and -num-predict control context size and generated length. The prediction limit defaults to 250 tokens, with 25 suggested as a starting point for short inline suggestions. Validate that the selected model and provider handle the template well before treating a backend switch as a drop-in change.
Trade-offs & Limitations
The proxy is useful when keeping a Copilot-compatible editor client matters more than simplifying the integration. An editor extension that calls Ollama directly removes the Copilot compatibility layer; hosted GitHub Copilot avoids operating the proxy and inference backend, but not with the same control over model selection and inference location. Locally, size for the chosen model, context window, and concurrency, not for the Go proxy alone. With a hosted provider, completion latency and operating cost instead depend in part on network round trips and API usage.
Editor-specific routing settings are a maintenance dependency. The VS Code setup uses debug.overrideProxyUrl, and several editor recipes turn off certificate verification or accept untrusted certificates. Prefer trusted TLS where supported, scope proxy overrides as narrowly as possible, and verify what code context reaches the selected provider. A local runner does not make the whole integration offline: the Neovim and VS Code setups still include GitHub sign-in.
Hardware & Deployment Guide
For local inference, run Ollama, pull codellama:code, and start the proxy. Build or install with a toolchain that satisfies the module's Go version, using go install github.com/bernardo-bruning/ollama-copilot@latest or the repository's install.sh. The script installs to ~/.local/bin/ollama-copilot, offers systemd setup, and can configure Neovim, VS Code, and Zed. OLLAMA_HOST or LLMMAN_HOST can point the proxy at a separately hosted runner; switching to a hosted API shifts inference and its network dependency outside the workstation.
Verify the editor's endpoint before rollout: the direct HTTP listener defaults to :11437, while several editor examples point at the proxy on :11435; the experimental Emacs example instead uses 11434. Check the actual listener and TLS behavior rather than assuming the snippets are interchangeable. v0.3.0, released January 30, 2026, added a proxy domain and addressed both completion 404s and goroutines hanging after completion errors.
-provider supports Ollama, llmman, OpenRouter, DeepSeek, Mistral, and OpenAI; -model selects the model.-template exposes {{.Prefix}} and {{.Suffix}}; -num-ctx and -num-predict tune context and output length.:11437/:11436) and HTTP/HTTPS proxy listeners (:11438/:11435), with custom TLS via -cert and -key.install.sh installs to ~/.local/bin/ollama-copilot, offers systemd setup, and can configure Neovim, VS Code, and Zed.Developers or teams that want to keep a Copilot-compatible editor client while choosing where code completion runs, and can validate editor versions, TLS settings, and model behavior.
You require a fully offline workflow with no GitHub sign-in dependency, a centrally managed rollout without editor-specific network settings, or a native editor extension that connects directly to the model runner.
Quick Start & Installation
curl -fsSL https://ollama.com/install.sh | sh
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| ollama-copilot ★ | 889 | +1 | Go | MIT | A Go proxy for Copilot-style code completions with local or hosted models |
| open-code-review | 58.1k | +1.2k | Go | Apache-2.0 | Deterministic review pipelines and LLM agents for line-level code feedback |
| opencode | 230.9k | +1.3k | TypeScript | MIT | Terminal-first coding agent with separate planning and editing modes |
| claude-code | 158k | +709 | TypeScript | — | A terminal coding agent for navigating codebases, running tasks, and handling Gi |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/bernardo-bruning/ollama-copilot.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about ollama-copilot
Does this replace the editor extension or eliminate GitHub sign-in?
:Copilot signin before enabling the proxy.How should I size RAM and VRAM for local completions?
-num-ctx and -num-predict based on completion quality and responsiveness. There is no fixed VRAM requirement for the proxy and backend together.Can a company self-host or redistribute this proxy?
How does it compare with an Ollama-native extension or hosted Copilot?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy