Skip to content

Welcome to CodeCompanion.nvim ​

AI Coding, Vim Style

CodeCompanion lets you code with LLMs and agents in Neovim.

Features ​

Overview ​

CodeCompanion is built around interactions, the different ways you work with an LLM. The chat interaction is a buffer where you converse with an LLM or an agent, and the inline interaction writes the LLM's response straight into the buffer you're editing.

An adapter connects an interaction to an LLM or an agent, and sets its model and parameters. Each interaction, and each prompt library item, can use a different adapter. The full set is in the adapters folder. To write your own, see Extending with Adapters.

Using the Docs ​

Ask an LLM to search these docs for you with the @{search_help} tool. On the site, use the search bar at the top left of the page.

Released under the Apache-2.0 License.