
ollama-copilot
让本地 Ollama 模型变身 Copilot,编辑器里直接补全代码
项目预览
项目数据
项目介绍
Star 增长趋势
本站每日记录该项目 GitHub 星标变化,观测越久曲线越完整
数据来源:GitHub API 逐日快照 · 收录于 2026-09-25 · 当前星标 ★ 885
使用教程
环境要求
- Go 1.21+ 或 Docker
- ollama
- 支持自定义补全地址的编辑器
安装与启动步骤
-
1装 ollama
先把 ollama 装好并拉一个代码模型。
ollama pull qwen2.5-coder -
2装代理
这个项目把 ollama 包装成 Copilot 兼容接口。
go install github.com/bernardo-bruning/ollama-copilot@latest -
3起服务
跑 install.sh 或直接起二进制,监听默认端口。
./install.sh -
4配 IDE
在编辑器里把 Copilot 补全地址指向本地代理端口。
如何确认成功
编辑器里能触发本地模型补全。
注意事项
- 本地补全延迟取决于显卡,7B 量化模型是体验与质量的平衡点。
核心亮点
- 本地推理,代码不出本机,隐私友好且无需 API Key
- 用 Go 单文件实现,依赖少、启动快、部署简单
- 兼容 Copilot/OpenAI 风格接口,可对接常见编辑器插件
不足之处
- 仅做代理转发,缺少补全质量优化与上下文裁剪策略
- 项目较早期,文档和社区生态相对有限
适用场景
- 在 VS Code 中用本地 Ollama 模型做代码自动补全
- 内网或离线环境下搭建私有 AI 编程助手
- 想省去云端 API 费用、用本地显卡跑补全的开发者
替代项目
Continue、Tabby、FauxPilot
同类项目推荐
easy-agent
开源
终端里的可控编码助手,权限沙箱齐全,代码好读好改
Production-ready open source terminal coding agent with readable, layered code: perm···
gpt-with-taste
开源
给 Codex 里的 GPT 装上判断力,少写废话代码
Better judgment. Better taste. Less ceremony. System instructions and source-aware s···
EchoIsland
开源
把多个AI编程助手收进灵动岛,切换零打扰
Free, open-source Dynamic Island-style desktop hub for AI coding sessions. Unify Cod···
continue
开源
在 IDE 里直接聊代码,自动补全、重构、改 bug,一步到位
open-source coding agent
better-claude
开源
给 Claude Code 加提示队列,多步指令自动接力
Small plugins and mods that make your life (and Claude Code) better
REA-Prompts
开源
一套提示词模板,让 AI 陪你按步骤拆解陌生程序
REAP - Prompts for you to use REA (Reverse Engineer Anything), get the most out of i···
claude-codex-settings
开源
一套配置,让 Claude/Codex/Cursor 用上国产大模型
Battle-tested Claude Code, OpenAI Codex, Cursor configs, plugins, hooks and agents w···
SRepair
开源
花 3 分钱,让 LLM 自动修好 Java Bug
✅SRepair: Powerful LLM-based Program Repairer with $0.029/Fixed Bug
void
开源
在 VS Code 里直接对话 AI,边写代码边解决问题