← Back to Leaderboard
Colimorris

olimorris/codecompanion.nvim

A Neovim plugin for AI coding with model adapters, ACP agents, and MCP tools

Engineering Health (Methodology)
A+ · 92/100
Maintenance Activity
● Updated today
Latest Release
v20.5.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption17/25
Release Cadence20/20
License Clarity20/20
DockerMCPCLIAPILocal AI
Total Stars
★ 6,965
24h Growth
+1
7d Growth
+9
Forks
478

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

olimorris/codecompanion.nvim Star History (2024-02-02 - 2026-12-04) ALL-TIME STAR HISTORY (2024-02 – 2026-12) +7k in 1036d · avg +7/day 7.4k 3.7k 0 2024-02-02: ★ 12024-04-06: ★ 582024-06-08: ★ 1072024-08-10: ★ 2182024-10-12: ★ 7102024-12-14: ★ 1,3022025-02-15: ★ 2,1312025-04-19: ★ 3,0692025-06-21: ★ 3,9512025-08-23: ★ 4,5482025-10-25: ★ 5,2442025-12-27: ★ 5,5902026-02-28: ★ 6,0062026-05-02: ★ 6,3662026-07-04: ★ 6,6012026-09-05: ★ 6,7662026-12-04: ★ 6,965 ★ 7k 2024-02 2025-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

CodeCompanion is a Lua plugin that runs inside Neovim. The repository separates plugin files into plugin/, Lua code into lua/, and queries into queries/. The installation example lists plenary.nvim and nvim-treesitter as dependencies. Chat buffers and inline interactions provide editor-native entry points without moving model inference into the editor.

There are two distinct backend paths: HTTP adapters connect to model services, while ACP connects to external coding-agent processes that manage their own sessions. MCP addresses tool and context integration rather than agent lifecycle or inference. Custom adapters and an extensions API make the integration layer extensible, but the selected provider or agent still determines what runs outside Neovim.

Key Capabilities & Differentiators

The HTTP adapter lineup covers Anthropic, OpenAI, Gemini, DeepSeek, GitHub Copilot, Azure OpenAI, OpenRouter, Ollama, and other backends, giving users a choice between hosted APIs and a locally operated inference service. ACP covers a different workflow: Claude Code, Codex, Gemini CLI, and OpenCode are examples of external coding agents, not interchangeable model endpoints.

A chat buffer gives longer tasks a dedicated workspace, while inline interaction keeps requests close to the code. Tools extend chat beyond text: @{search_help} searches CodeCompanion help, and v20.2.0 added overwrite_file, which can replace file contents. For teams adopting tool-enabled workflows, the important distinction is whether a request only produces a response or can also modify the workspace.

Trade-offs & Limitations

Compared with running Claude Code or Codex directly in a terminal, CodeCompanion adds Neovim-native interaction and lets users keep the same editor interface when switching to a direct model adapter. In return, there are more components to configure and troubleshoot: the editor dependencies, the adapter or agent, and any tools attached to the workflow. Protocol support does not make every backend behave the same way.

Hosted APIs avoid local inference sizing but introduce network dependence, provider charges, and a data-handling boundary. Ollama can keep inference local, but that alone does not establish that the full workflow is offline: agents and tools need their own review. The plugin's Apache-2.0 license is separate from provider and model terms. When using file-writing tools, establish what they can write and how changes will be reviewed before giving them access to a shared workspace.

Hardware & Deployment Guide

Install CodeCompanion with a Neovim package manager and configure it through require("codecompanion").setup(...). Add the chosen backend separately: configure hosted provider access, run Ollama for local inference, or install and configure the external agent for ACP. Start troubleshooting with :checkhealth codecompanion; if the problem persists, use DEBUG or TRACE logging and reproduce it with nvim --clean -u minimal.lua.

The Ubuntu 24.04 Dockerfile provisions Neovim nightly and development tooling, including Rust 1.93.0 and Tree-sitter CLI v0.26.5. Those are choices made by the container build, not universal runtime prerequisites for the plugin. The v20.3.0 release added ACP subagents and sends session/close before terminating the agent process. v20.4.0 added :CodeCompanionCLI Resume and refined Claude Code interactions.

Editor integration: A Lua-based Neovim plugin with a chat buffer, inline interaction, and a CLI workflow.
Model adapters: Built-in HTTP integrations include Anthropic, OpenAI, Gemini, GitHub Copilot, and Ollama; custom adapters can extend the set.
Protocol separation: ACP connects external coding agents such as Claude Code and Codex; MCP addresses tool and context integration.
Session lifecycle: v20.3.0 added ACP subagent support and sends session/close before agent termination; v20.4.0 added :CodeCompanionCLI Resume.
Diagnostics: :checkhealth codecompanion reports dependency status and the log path; DEBUG or TRACE logging and nvim --clean -u minimal.lua help isolate configuration issues.
Container scope: The Dockerfile uses Ubuntu 24.04 and provisions Neovim nightly, Tree-sitter CLI v0.26.5, and other development tools; it is not a bundled inference backend.
Best For

Neovim users who want editor-native chat and inline assistance, with the option to switch between direct model APIs, local Ollama inference, and external ACP agents.

Skip If

You do not use Neovim, prefer an agent's terminal interface, or require a turnkey offline stack with inference, agents, and tool permissions already configured.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releases · Newer release v20.5.0 (2026-12-03) shipped after this reviewMethodology

Quick Start & Installation

DockerMCPCLIAPI
-- lazy.nvim
{
  "olimorris/codecompanion.nvim",
  dependencies = {
    "nvim-lua/plenary.nvim",
    "nvim-treesitter/nvim-treesitter",
  },
  opts = {
    -- NOTE: The log_level is in `opts.opts`
    opts = {
      log_level = "DEBUG", -- or "TRACE"
    },
  },
},

-- Other package managers
require("codecompanion").setup({
  opts = {
    log_level = "DEBUG", -- or "TRACE"
  }
})

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
codecompanion.nvim ★7k+9LuaApache-2.0A Neovim plugin for AI coding with model adapters, ACP agents, and MCP tools
ECC316.1k+4.2kJavaScriptMITPlugins and CLI workflows for planning, reviewing, and verifying agent-written c
spec-kit153.7k+1.3kPythonMITA Python CLI for spec-driven coding-agent workflows and reviewable handoffs
caveman124.8k+1.4kGoApache-2.0Coding-agent skill and local Go proxy for shorter replies and smaller tool outpu

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/olimorris/codecompanion.nvim.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

olimorris/codecompanion.nvim Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about codecompanion.nvim

When should I choose an HTTP adapter, ACP, or MCP?

Use an HTTP adapter when you want CodeCompanion to talk directly to a model backend. Use ACP when you want an external agent such as Claude Code or Codex to manage the coding session. MCP is for tool and context integration; it does not replace the model adapter or the ACP connection.

How much RAM or VRAM should I budget?

There is no single VRAM requirement. The Lua plugin does not run model inference when using a hosted API. With Ollama, size the inference host for the selected model, context length, and concurrency. With ACP, account for the agent process separately and check where that agent runs inference.

Can we use it commercially or in a self-hosted environment?

The plugin is Apache-2.0, which permits commercial use subject to its license conditions, including applicable notice requirements when redistributing it. That license does not cover the models, agents, or hosted APIs you connect. For a self-hosted rollout, review those terms separately and verify whether agents and tools can send workspace data outside your environment.

Why use this instead of running Claude Code or Codex in a terminal?

Choose CodeCompanion if you want chat and inline interaction in Neovim and the option to switch between direct model calls and agent sessions. If your team already uses Claude Code or Codex in the terminal and does not need an editor-native interface, running the agent directly avoids another layer of configuration.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining olimorris/codecompanion.nvim? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature olimorris/codecompanion.nvim on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare