olimorris / codecompanion.nvim
git clone https://github.com/olimorris/codecompanion.nvim.git
v20.0.1 · 3d ago
🔥 on GitHub Trending today
✨ AI Coding, Vim Style
—
stars, 24h
+18
stars, 7 days · #1,549
+72
stars, 30 days · #3,085
6.9k
★ total · +0% this week
475
forks · 20 open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageLua
LicenseApache-2.0
Created2023-12-27 (2y ago)
Last pushtoday
Watchers26
OwnerUser
Seen on GitHub Trending
- 2026-10-20 — #1 monthly in lua · +72 ★
- 2026-10-20 — #6 weekly in lua · +18 ★
GitHub topics
acpagentagent-client-protocolanthropicclaude-codecopilotdeepseekgeminigoogle-geminikimillmneovimnvimollamaopenaiopenrouterplugin
Links
- GitHub: github.com/olimorris/codecompanion.nvim
- Homepage: https://codecompanion.olimorris.dev
- Releases · Issues · Hacker News mentions
README excerpt
A Neovim AI coding assistant for coding with LLMs (Anthropic, OpenAI, Gemini, Copilot and more ) and AI agents. With built-in support for Agent Client Protocol (ACP) , Model Context Protocol (MCP) , and agents like Claude Code and Codex
New features are always announced here
## :purple_heart: Sponsors
Thank you to the following people:
If you love CodeCompanion and use it in your workflow, please consider sponsoring me
## :sparkles: Features
- :speech_balloon: Copilot Chat meets Zed AI, in Neovim
- :zap: Integrates Neovim with LLMs and Agents in the CLI
- :electric_plug: Support for LLMs from Anthropic, DeepSeek, Google Gemini, GitHub Copilot, Kimi, Mistral, Novita, Ollama, OpenAI, Azure OpenAI, OpenRouter, Hugging Face and xAI out of the box (or bring your own)
- :robot: Support for Agent Client Protocol, enabling coding with agents like Augment Code, Cagent from Docker, Claude Code, Codex, Copilot CLI, Gemini CLI, Goose, Cursor CLI, Kimi CLI, Kiro, Mistral Vibe and OpenCode
- :heart_hands: User contributed and supported adapters
- :man_technologist: Code reviews enabling you to comment on and approve/reject agent code
- :battery: Support for Model Context Protocol (MCP)
- :rocket: Inline transformations, code creation and refactoring
- :art: Editor Context, Slash Commands, Agents/Tools and Workflows to improve LLM output
- :brain: Support for skills and rules (like `CLAUDE.md`, `.cursor/rules` and your own custom ones)
- :sparkles: Built-in prompt library for common tasks like advice on LSP errors and code explanations
- :building_construction: Create your own custom prompts, Editor Context and Slash Commands
- :inbox_tray: Have multiple chats open at the same time
- :art: Support for images and PDFs as input
- :muscle: Async execution for fast performance
## :camera_flash: In Action
The Chat Buffer
Tools + Agentic Workflows
Inline Interaction
## :rocket: Getting Started
Everything you need to know about CodeCompanion (installation, configuration and usage) is within the docs.
You can use the @{search_help} tool to ask an LLM to search the CodeCompanion docs for you.
## :toolbox: Troubleshooting
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:
[code]
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