codecompanion.nvim
An AI coding assistant for Neovim with Ollama support, inline code edits, and connections to CLI agents such as Claude Code and Codex.
Alternative to:

codecompanion.nvim is an AI coding assistant for developers who want model chat, code edits, and coding agents inside Neovim. It lets you bring editor context into AI conversations and review agent changes in the editor.
- Chat in editor buffers: Keep multiple conversations open and include images or PDFs as input, with built-in prompts for code explanations and help with language server errors.
- Inline code edits: Generate code, rewrite selections, or refactor existing code directly in a Neovim buffer.
- Coding agents and reviews: Connect to Claude Code, Codex, Gemini CLI, or OpenCode through Agent Client Protocol, then comment on agent changes and approve or reject them.
- Project context and tools: Use editor context, Model Context Protocol tools, and project skills and rules such as CLAUDE.md and .cursor/rules.
- Custom assistance: Create your own prompts and slash commands, use workflows for recurring tasks, and extend model connections with custom or community adapters.
The plugin runs in Neovim and is open source under the Apache 2.0 license. It supports Ollama alongside connections to Anthropic, OpenAI, Google Gemini, GitHub Copilot, DeepSeek, Mistral, and OpenRouter. You can choose different model or agent adapters for chat, inline edits, and individual prompts.