Skip to content

Welcome to CodeCompanion.nvim

AI Coding, Vim Style

CodeCompanion is a plugin which enables you to code with AI, using LLMs and agents, in Neovim.

Features

Overview

CodeCompanion utilises objects called interactions. These are the different ways that a user can interact with an LLM. The chat interaction harnesses a buffer to allow direct conversations with LLMs. The inline interaction allows for output from the LLM to be written directly, inline to a pre-existing Neovim buffer.

CodeCompanion uses adapters to connect Neovim to an LLM or agent, even going as far as specifying models and/or hyperparameters. You can specify adapters for each interaction type and also for each prompt library entry. There are far too many adapters to list so be sure to check out the adapters folder in the main repository. You can also roll your own adapters. Refer to the extending adapters documentation for more information. Finally, be sure to check out the community adapters section for user contributed adapters.

Released under the Apache-2.0 License.