# Repository Briefing: bernardo-bruning/ollama-copilot
> Source: https://repoforai.com/repo/bernardo-bruning/ollama-copilot (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/bernardo-bruning/ollama-copilot
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Go
- **License**: MIT
- **Engineering Health**: B+ (67/100 · Maintenance 20/35 · Adoption 16/25 · Releases 11/20 · License 20/20)
- **Latest Release**: v0.3.0 (2026-01-30) — https://github.com/bernardo-bruning/ollama-copilot/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Local AI, CLI, API
- **Momentum**: 889 ★ total (+0 24h / +1 7d) · 96 forks
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Editor integration: A standalone Go proxy reuses Copilot-compatible editor clients; it is not an MCP server or a model runner.
- Provider selection: `-provider` supports Ollama, llmman, OpenRouter, DeepSeek, Mistral, and OpenAI; `-model` selects the model.
- Fill-in-the-middle: `-template` exposes `{{.Prefix}}` and `{{.Suffix}}`; `-num-ctx` and `-num-predict` tune context and output length.
- Network layout: Separate direct HTTP/HTTPS listeners (`:11437`/`:11436`) and HTTP/HTTPS proxy listeners (`:11438`/`:11435`), with custom TLS via `-cert` and `-key`.
- Workstation deployment: `install.sh` installs to `~/.local/bin/ollama-copilot`, offers systemd setup, and can configure Neovim, VS Code, and Zed.
- Release maintenance: v0.3.0 added a proxy domain, fixed completion 404s and goroutines hanging on completion errors, and added experimental Emacs configuration.
```

## Quick Start / Clone
```bash
curl -fsSL https://ollama.com/install.sh | sh
```
