An open source JupyterLab extension that adds a chat UI for connecting AI agents like Claude, Codex, and Gemini to notebooks.
olimorris/codecompanion.nvim
A Neovim plugin that brings AI chat, inline code edits and coding agents into the editor, with support for many LLM providers.
Open-source alternative to:GitHub Copilot Chat
Cursor
- Stars
- 6,924
- Forks
- 472
- Open issues
- 23
- Last commit
- 21 hours ago
What is it?
CodeCompanion.nvim is an AI coding assistant for Neovim. It provides a chat buffer similar to Copilot Chat, lets you transform or create code inline in the current file, and runs prompts from a built-in prompt library. You can connect it to hosted and local models, including Anthropic, OpenAI, Gemini, GitHub Copilot, DeepSeek, OpenRouter and Ollama, or add your own adapter.
The plugin also works with coding agents through the Agent Client Protocol (ACP), including Claude Code, Codex, Gemini CLI and OpenCode, and supports Model Context Protocol (MCP) servers. Agents and tools can read editor context, slash commands and skills or rules files such as CLAUDE.md, and changes made by agents can be reviewed and approved or rejected within Neovim.
Installation is done through a Neovim plugin manager, and the project documentation covers configuration, adapters and usage.
Key features
- 01Chat buffer for asking questions about code and iterating on answers
- 02Inline transformations, code creation and refactoring in the current buffer
- 03Adapters for many hosted and local LLM providers, plus custom adapters
- 04Support for Agent Client Protocol agents such as Claude Code and Codex
- 05MCP server support and reusable tools, slash commands and workflows
- 06Code review flow to comment on and approve or reject agent changes
Use cases
- Asking an LLM about the code in your current Neovim buffer without leaving the editor
- Refactoring or generating a function inline with a prompt
- Running coding agents like Claude Code from inside Neovim and reviewing their edits
- Using a local model through Ollama for AI assistance in Neovim
Quick start
- 1
Install the plugin with your Neovim package manager, following the docs
- 2
Check that dependencies are installed correctly inside Neovim
:checkhealth codecompanion
Things to know
- It only runs inside Neovim, so it is not usable from other editors.
- It depends on plenary.nvim and nvim-treesitter.
In collections
Topics
FAQ
- What is codecompanion.nvim?
- A Neovim plugin that brings AI chat, inline code edits and coding agents into the editor, with support for many LLM providers. CodeCompanion.nvim is an AI coding assistant for Neovim. It provides a chat buffer similar to Copilot Chat, lets you transform or create code inline in the current file, and runs prompts from a built-in prompt library. You can connect it to hosted and local models, including Anthropic, OpenAI, Gemini, GitHub Copilot, DeepSeek, OpenRouter and Ollama, or add your own adapter.
- Is codecompanion.nvim free to use? What license does it have?
- codecompanion.nvim is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is codecompanion.nvim still maintained?
- Actively maintained. The last commit to codecompanion.nvim was on Nov 6, 2026.
- What can I use codecompanion.nvim for?
- Asking an LLM about the code in your current Neovim buffer without leaving the editor Refactoring or generating a function inline with a prompt Running coding agents like Claude Code from inside Neovim and reviewing their edits Using a local model through Ollama for AI assistance in Neovim
- How do I install codecompanion.nvim?
- Install the plugin with your Neovim package manager, following the docs Check that dependencies are installed correctly inside Neovim: :checkhealth codecompanion
- Where can I get codecompanion.nvim?
- The source code and installation instructions are on GitHub: https://github.com/olimorris/codecompanion.nvim
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Open-source AI coding agent for VS Code that works with your own models, including hosted APIs, accounts, and local Ollama or llama.cpp.
A TypeScript runtime that runs Claude Code, Codex, Grok Build, OpenCode and other coding agent CLIs behind one API, with checks the runtime runs itself.
A Neovim plugin that brings Cursor-style AI chat, code suggestions and one-click diff application to your editor.
A VS Code extension that turns plain .chat.md files into editable AI chat sessions with MCP tool support across LLM providers.
A CLI-first open-source AI coding agent runtime that works with any model via MCP tools, interactively, piped, as a daemon, or over WebSocket/ACP.