CodeCompanion.nvim
AI coding chat for Neovim with a Vim-native feel — prompts, agents, and workflows.
About
CodeCompanion.nvim is a Neovim plugin that describes itself as AI coding, Vim style: a chat-driven interface where you talk to LLMs about your code, transform selections inline, and define reusable prompt libraries, slash commands, and agentic workflows. With ~6,900 stars it sits just behind Avante as one of the two dominant Neovim AI assistants.
Its strength is the adapter model — Anthropic, OpenAI, Gemini, Ollama, Copilot, and many more providers plug in through a uniform interface — and the depth of its action system: chat buffers, inline edits, code review actions, and agents that can execute tools to accomplish multi-step tasks. The documentation site is unusually thorough for a community plugin, which matters because there is a lot to configure.
That depth is also the tradeoff. CodeCompanion rewards users who enjoy tuning their setup and will feel like work to anyone who wants an assistant that just works out of the box. Apache-2.0 licensed, Neovim-only, and proudly Vim-idiomatic.
What it can do
- Chat buffers, inline code transformation, and agentic tool-using workflows
- Adapter system covering Anthropic, OpenAI, Gemini, Ollama, Copilot, and more
- Prompt libraries, slash commands, and reusable action palettes
- Extensive documentation site with per-adapter and per-action guides
- Apache-2.0 licensed; MCP server support via companion plugins
Setup
- Install via lazy.nvim:
{ "olimorris/codecompanion.nvim", dependencies = { ... } }. - Configure an adapter with your provider API key in the setup call.
- Open a chat buffer (
:CodeCompanionChat) or select code and run an inline action. - Build prompt libraries and slash commands for your recurring workflows.
Prerequisites
Neovim 0.10+; an API key for at least one supported LLM provider (or a local Ollama setup).
Use cases
Works with
Trust score — 8/10
Scored 8/10 (metrics tier, metrics-v1). Evidence: 6,897 GitHub stars (olimorris/codecompanion.nvim); Apache-2.0 license confirmed via GitHub API; AI coding chat for Neovim: chat buffers, inline edits, adapters for Anthropic/OpenAI/Gemini/Ollama/Copilot, prompt libraries, slash commands, agentic workflows — verified against README and docs site (codecompanion.olimorris.dev, verified 200). Manual review: depth-of-configuration is both the strength and the cost; claims are docs-verified; Neovim-only scope is explicit. License: Apache-2.0.
★ 6,897 GitHub stars
How the trust score is built
Full methodology →- Adoption · stars/downloads, log-scaled vs peers
- 7.0/10
- Maintenance · recency, releases, issue load
- 8.0/10
- Openness · license + docs
- 10.0/10
- Manual review · sanity read + red-flag check
- 8.0/10
- · 6,897 GitHub stars (olimorris/codecompanion.nvim); Apache-2.0 license confirmed via GitHub API
- · AI coding chat for Neovim: chat buffers, inline edits, adapters for Anthropic/OpenAI/Gemini/Ollama/Copilot, prompt libraries, slash commands, agentic workflows — verified against README and docs site (codecompanion.olimorris.dev, verified 200)
- · manual review: depth-of-configuration is both the strength and the cost; claims are docs-verified; Neovim-only scope is explicit
Sources
Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.