Editor plugins
CodeCompanion.nvim
Chat, edit code, and connect models or coding agents inside Neovim.
Install
macOS / Linux · Neovim lazy.nvim plugin configurationConfiguration to paste
- Requires Neovim 0.12 or later.
- Obtain the required API key from the service; keep it in your local configuration.
- Use a macOS or Linux terminal for these commands.
Step 1 · Neovim lazy.nvim plugin configuration
Configuration file ~/.config/nvim/lua/plugins/codecompanion.lua
- Requires Neovim and lazy.nvim. Save the plugin configuration, then run :Lazy sync in Neovim.
return {
{
"olimorris/codecompanion.nvim",
version = "^19.0.0",
opts = {},
dependencies = {
{ "nvim-lua/plenary.nvim", branch = "master" },
"nvim-treesitter/nvim-treesitter",
},
},
}Step 2 · System terminal
- Use a macOS or Linux terminal for these commands.
- Obtain the required API key from the service; keep it in your local configuration.
- Replace the placeholder values below before running or saving.
Replace these values: YOUR_ANTHROPIC_API_KEY
export ANTHROPIC_API_KEY='YOUR_ANTHROPIC_API_KEY'
nvimStep 3 · Neovim command line (starts with :)
:Lazy sync
:checkhealth codecompanion
:CodeCompanionChatRequirements, costs and detailed steps
CodeCompanion.nvim setup documentation
Setup requirements have not been reviewed yet. Check the project’s setup guide.
Based on public documentation; not individually installed and tested here.
What is CodeCompanion.nvim?
CodeCompanion.nvim brings AI conversations and code changes into Neovim for developers who want to keep their existing editor. It supports multiple model services as well as coding agents and external tools, with chat and inline editing options. Prepare the plugin dependencies and configure the model or agent account you plan to use; requirements differ between integrations.
CodeCompanion.nvim use cases
- Chat and edit code within Neovim
- Connect models, coding agents, and external tools
- Prepare dependencies and accounts for the chosen integration
Official project & documentation
Alternatives to CodeCompanion.nvim for similar tasks
Compare plugins for similar tasks and check their setup requirements.
- Cline — Use AI in your editor to read a project, edit files, and run development commands.
- Kilo Code — Use AI coding in VS Code or JetBrains with your chosen models and tools.
- CopilotChat for Neovim — Chat with AI inside Neovim using project context and review suggested code changes.