CodeCompanion.nvim
AI coding chat, inline edits and agents for Neovim.
Overview
CodeCompanion is a Neovim plugin that adds chat buffers, inline transformations and agent workflows powered by your preferred LLM adapters. It supports many providers and local models.
- Chat buffer
- Inline assistant
- Agents and tools
- Adapters for many providers
Our verdict
What we like
- Very Neovim-native
- Extensible
Watch out for
- Lua configuration needed
Works with these providers
Keys from these providers work in this app. Usage is billed by the provider at its list price.
BYOK Key Safety Score
Key handling in CodeCompanion.nvim
Grade A
Your key is stored on your device and requests go directly to the provider.
- Key storage40/40
Key stays on your device; requests go direct to the provider.
- Auditable code25/25
Open source: anyone can verify how keys are handled.
- Self-hosting8/15
Runs as a local app, but not as a self-hosted service.
- Offline option10/10
Supports local models, so no key is needed at all for private work.
- Provider choice10/10
9 provider options, which lets you pick the provider whose data terms you trust.
Whatever the score, give each app its own key, set a monthly spend limit with your provider, and revoke keys you no longer use. Read the key-safety checklist.
CodeCompanion.nvim FAQ
- Does CodeCompanion.nvim support bring your own key?
- Yes. CodeCompanion.nvim accepts your own API key from OpenAI, Anthropic, Google Gemini, Mistral, DeepSeek, xAI, Ollama, Azure OpenAI and OpenAI-compatible. Usage is billed by the provider at its API rates.
- Where does CodeCompanion.nvim store my API key?
- On your device. Requests go directly from CodeCompanion.nvim to the provider. Its BYOK Tools Key Safety Score is 93/100.
- Is CodeCompanion.nvim free?
- Open source: Free & open source. API usage is billed separately by your model provider.
- Is CodeCompanion.nvim open source?
- Yes. The source code is at https://github.com/olimorris/codecompanion.nvim.
- Can CodeCompanion.nvim run local models?
- Yes. It can connect to local runtimes such as Ollama or LM Studio, so no API key is needed for private or offline use.
- Which platforms does CodeCompanion.nvim support?
- CLI.
Community reviews
No reviews yet.
Alternatives to CodeCompanion.nvim
All coding agents & ides →Aider
Coding Agents & IDEs
AI pair programming in your terminal with git-aware edits.
OpenCode
Coding Agents & IDEs
Open-source terminal coding agent that works with any provider.
gptel
Coding Agents & IDEs
Simple, provider-agnostic LLM client for Emacs.
Goose
Coding Agents & IDEs
Extensible open-source AI agent from Block for coding and beyond.
OpenHands
Coding Agents & IDEs
Open-source autonomous software engineering agent platform.
Cline
Coding Agents & IDEs
Autonomous coding agent in VS Code that uses your own API keys.