经 AI Skill Hub 精选评估,codecompanion-nvim AI工具 获评「强烈推荐」。已获得 6.6k 颗 GitHub Star,这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.2 分,适合有一定技术背景的用户使用。
为Neovim量身打造的开源AI编码助手,集成ChatGPT、Claude等模型,支持Agent协议,提供代码生成、调试、重构等功能。适合使用Vim/Neovim的开发者提升编码效率。
codecompanion-nvim AI工具 是一款基于 Lua 开发的开源工具,专注于 Neovim插件、AI编程助手、代码生成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
为Neovim量身打造的开源AI编码助手,集成ChatGPT、Claude等模型,支持Agent协议,提供代码生成、调试、重构等功能。适合使用Vim/Neovim的开发者提升编码效率。
codecompanion-nvim AI工具 是一款基于 Lua 开发的开源工具,专注于 Neovim插件、AI编程助手、代码生成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 克隆仓库 git clone https://github.com/olimorris/codecompanion.nvim cd codecompanion.nvim # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 codecompanion.nvim --help # 基本运行 codecompanion.nvim [options] <input> # 详细使用说明请查阅文档 # https://github.com/olimorris/codecompanion.nvim
# codecompanion.nvim 配置说明 # 查看配置选项 codecompanion.nvim --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export CODECOMPANION.NVIM_CONFIG="/path/to/config.yml"
<p align="center"> <a href="https://codecompanion.olimorris.dev"><img src="https://github.com/user-attachments/assets/64da6a69-a54d-4799-b034-59d9efd27b76" alt="CodeCompanion.nvim" /></a> </p>
<p align="center"> <a href="https://github.com/olimorris/codecompanion.nvim/stargazers"><img src="https://img.shields.io/github/stars/olimorris/codecompanion.nvim?color=c678dd&logoColor=e06c75&style=for-the-badge"></a> <a href="https://github.com/olimorris/codecompanion.nvim/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/olimorris/codecompanion.nvim/ci.yml?branch=main&label=tests&style=for-the-badge"></a> <a href="https://github.com/olimorris/codecompanion.nvim/releases"><img src="https://img.shields.io/github/v/release/olimorris/codecompanion.nvim?style=for-the-badge"></a> </p>
<p align="center">A Neovim AI coding assistant for coding with LLMs (Anthropic, OpenAI, Gemini, Copilot and <a href="https://codecompanion.olimorris.dev/getting-started.html">more</a>) and AI agents. With built-in support for <a href="https://agentclientprotocol.com">Agent Client Protocol (ACP)</a>, <a href="https://codecompanion.olimorris.dev/model-context-protocol">Model Context Protocol (MCP)</a>, and agents like <a href="https://docs.anthropic.com/en/docs/claude-code/overview">Claude Code</a> and <a href="https://openai.com/codex">Codex</a></p>
<p align="center">New features are always announced <a href="https://github.com/olimorris/codecompanion.nvim/discussions/categories/announcements">here</a></p>
CLAUDE.md, .cursor/rules and your own custom onesEverything you need to know about CodeCompanion (installation, configuration and usage) is within the docs.
Before raising an issue, there are a number of steps you can take to troubleshoot a problem:
Checkhealth
Run :checkhealth codecompanion and check all dependencies are installed correctly. Also take note of the log file path.
Turn on logging
Update your config and turn debug logging on:
-- lazy.nvim
{
"olimorris/codecompanion.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
},
opts = {
-- NOTE: The log_level is in `opts.opts`
opts = {
log_level = "DEBUG", -- or "TRACE"
},
},
},
-- Other package managers
require("codecompanion").setup({
opts = {
log_level = "DEBUG", -- or "TRACE"
}
})
and inspect the log file as per the location from the checkhealth command.
Try with a minimal.lua file
A large proportion of issues which are raised in Neovim plugins are to do with a user's own config. That's why I always ask users to fill in a minimal.lua file when they raise an issue. We can rule out their config being an issue and it allows me to recreate the problem.
For this purpose, I have included a minimal.lua file in the repository for you to test out if you're facing issues. Simply copy the file, edit it and run neovim with nvim --clean -u minimal.lua.
优质的Vim生态AI工具,6.6k星标证明活跃度和认可度高。支持多模型接入和Agent协议,架构先进。维护态度积极,是Vim用户首选的AI编程伴侣。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:codecompanion-nvim AI工具 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | codecompanion-nvim |
| 原始描述 | 开源ChatGPT插件:✨ AI Coding, Vim Style。⭐6.6k · Lua |
| Topics | Neovim插件AI编程助手代码生成多模型支持Agent协议 |
| GitHub | https://github.com/olimorris/codecompanion.nvim |
| License | Apache-2.0 |
| 语言 | Lua |
收录时间:2026-05-14 · 更新时间:2026-05-16 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。