Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Neovim
  3. codecompanion.nvim

codecompanion.nvim

Apache-2.0Luav19.20.0

A Neovim plugin that integrates LLMs and AI agents for coding assistance, chat, and inline transformations.

Visit WebsiteGitHubGitHub
6.8k stars442 forks0 contributors

What is codecompanion.nvim?

CodeCompanion.nvim is a Neovim plugin that integrates large language models and AI agents directly into the editor for coding assistance. It provides chat-based interactions, inline code transformations, and support for various LLM providers and agent protocols, allowing developers to leverage AI without switching contexts.

Target Audience

Neovim users who want AI-powered coding assistance, including developers using Vim-style editors who seek integrated chat, refactoring tools, and agentic workflows within their existing environment.

Value Proposition

It offers a highly extensible and configurable AI coding experience tailored for the Neovim ecosystem, supporting a wide range of LLMs and agents while maintaining the editor's performance and customizability that Vim users expect.

Overview

✨ AI Coding, Vim Style

Use Cases

Best For

  • Integrating AI chat and code generation directly into Neovim workflows
  • Using multiple LLM providers (OpenAI, Anthropic, Gemini, etc.) within a single plugin
  • Leveraging agentic coding tools like Claude Code or Cursor CLI from inside Vim
  • Performing inline code refactoring and transformations with AI assistance
  • Building custom AI adapters and prompts for specialized coding tasks
  • Managing multiple AI chat sessions simultaneously while coding

Not Ideal For

  • Developers using IDEs like VSCode or JetBrains with built-in AI tools
  • Teams wanting plug-and-play AI assistance with zero configuration
  • Projects requiring tightly integrated, vendor-supported AI environments without API management
  • Users who prefer graphical AI interfaces over terminal-based workflows

Pros & Cons

Pros

Multi-LLM Flexibility

Supports a wide range of LLMs from Anthropic, OpenAI, Gemini to local models via Ollama, allowing cost and performance tailoring through built-in or custom adapters.

Agentic Workflow Integration

Compatible with Agent Client Protocol for tools like Claude Code and Cursor CLI, enabling advanced, agent-driven coding beyond basic chat interactions.

Inline Code Transformations

Allows direct AI-assisted editing and refactoring within buffers, streamlining code changes without context switching.

High Customizability

Users can build custom adapters, prompts, and rules files, making it adaptable to specific development needs and workflows.

Async Performance

Executes tasks asynchronously to maintain Neovim's responsiveness, preventing UI blocks during AI operations.

Cons

Complex Setup Process

Requires configuring dependencies, API keys, and adapters, with troubleshooting steps in the README highlighting potential installation and configuration hurdles.

Neovim-Exclusive Limitation

Only works within Neovim, excluding users of other editors or older Vim versions, which narrows its applicability.

External API Dependence

Relies on third-party LLM services that may incur costs, have rate limits, or experience downtime, impacting reliability and control.

Open Source Alternative To

codecompanion.nvim is an open-source alternative to the following products:

Zed AI
Zed AI

Zed AI is an AI-powered code editor developed by Zed Industries, focusing on performance and collaborative features.

C
Cursor

Cursor is an AI-powered code editor built on VS Code, designed to enhance developer productivity with features like AI-assisted coding, code generation, and intelligent autocomplete.

GitHub Copilot Chat
GitHub Copilot Chat

GitHub Copilot Chat is an AI assistant integrated into the IDE that allows developers to ask coding questions, get explanations, and generate code through conversation.

Frequently Asked Questions

Quick Stats

Stars6,764
Forks442
Contributors0
Open Issues0
Last commit2 days ago
CreatedSince 2023

Tags

#agent-client-protocol#gemini#llm-integration#code-assistance#openai#anthropic#neovim-plugin#plugin#llm#ollama#google-gemini#prompt-library#neovim#nvim#ai-coding#copilot#chat-interface

Built With

N
Neovim
n
nvim-lua/plenary.nvim
L
Lua

Links & Resources

Website

Included in

Neovim20.6k
Auto-fetched 4 hours ago

Related Projects

avante.nvimavante.nvim

Use your Neovim like using Cursor AI IDE!

Stars18,071
Forks838
Last commit3 days ago
ChatGPT.nvimChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API

Stars3,999
Forks320
Last commit6 months ago
opencode.nvimopencode.nvim

Neovim 🤝 OpenCode in the flow that you already know.

Stars3,697
Forks145
Last commit15 hours ago
CopilotChat.nvimCopilotChat.nvim

Chat with GitHub Copilot in Neovim

Stars3,651
Forks171
Last commit22 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub