claude-code-router VS codecompanion.nvim

Compare claude-code-router vs codecompanion.nvim and see what are their differences.

claude-code-router

Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the model while enjoying updates from Anthropic. (by musistudio)
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
claude-code-router codecompanion.nvim
25 16
34,739 6,642
5.4% 1.8%
9.5 9.8
3 months ago 1 day ago
TypeScript Lua
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

claude-code-router

Posts with mentions or reviews of claude-code-router. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-01-11.

codecompanion.nvim

Posts with mentions or reviews of codecompanion.nvim. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-06-04.
  • Agent Client Protocol (ACP): Connect Any AI Agent to Any Editor
    5 projects | dev.to | 4 Jun 2026
    Neovim support comes through community plugins like CodeCompanion.nvim and avante.nvim. The config follows the same pattern: a command path, args, and environment variables. Neovim spawns the agent as a subprocess and pipes JSON-RPC over stdio, same as the other editors.
  • Vim 9.2 Released
    13 projects | news.ycombinator.com | 14 Feb 2026
  • Amazonq.nvim: Official AWS AI Assistant Plugin for Neovim
    5 projects | news.ycombinator.com | 3 Sep 2025
    This doesn’t even come close to CodeCompanion[1], which doesn’t require any new LSP config/dependencies or filetype limitations.

    There is no ability to share the current buffer(s) for context, no tool support. This seems like a checkbox release. You’re better off using CodeCompanion with Amazon Bedrock, which includes the added benefit of sovereignty.

    [1]: https://github.com/olimorris/codecompanion.nvim

  • GPT-5 vs. Sonnet: Complex Agentic Coding
    6 projects | news.ycombinator.com | 8 Aug 2025
    I've been using codecompanion.nvim[0] combined with mcp-hub.nvim[1]. Code Companion works well for interactive chat but falls short for agentic coding. It's limited to some pre-configured and user-defined "workflows" which are basically templated steps with prompts, actions, and loops.

    I've been meaning to give avante.nvim[2] a try since it aims to provide a "Cursor like" experience, but for now I've been alternating between Code Companion for simple prompts and Claude CLI (in a tmux pane next to Neovim) for agentic stuff.

    [0] https://codecompanion.olimorris.dev/

    [1] https://ravitemer.github.io/mcphub.nvim/

    [2] https://github.com/yetone/avante.nvim

  • CodeCompanion: AI-powered coding, seamlessly in Neovim
    1 project | news.ycombinator.com | 23 Jun 2025
  • Awesome Neovim Plugins That You Must Try
    9 projects | dev.to | 22 May 2025
    If you gravitate to GitHub Copilot Chat but want more model choice, codecompanion.nvim is for you.  It opens a resizable floating panel where you can talk to Anthropic Claude, Google Gemini, Ollama, or plain OpenAI.  Inline edits (“fix this function” or “add unit tests”) are just a visual-mode mapping away, and every conversation gets stored so you can scroll back for context.
  • Breaking Free from AI Subscriptions: Cost-Effective All-in-One Solution with OpenRouter
    2 projects | dev.to | 15 Mar 2025
    I tried many options for Neovim, and everyone is quite hyped about Avante. But to me, it felt like a lot of tooling I don't need as it is more focused for cursor-like code generation agentic workflow. So if anyone into that they will I think really like avante. After testing many options, I ultimately selected CodeCompanion. It impressed me with its simplicity while still being feature-rich. It provides excellent support for different context providers, makes switching between models effortless, and maintains the lightweight experience I value in my Neovim setup. CodeCompanion also offers clear, comprehensive documentation, making it straightforward to implement advanced features if anyone wants it.
  • Augment.vim: AI Chat and completion in Vim and Neovim
    5 projects | news.ycombinator.com | 18 Feb 2025
    I've used it a ton too and it feels quite polished. Lately I've seen codecompanion.nvim[1] around a lot and been wondering if someone has tried both, are there differences between these two in actual use that would make other one worth trying over the another?

    [1] https://github.com/olimorris/codecompanion.nvim

  • Zed now predicts your next edit with Zeta, our new open model
    18 projects | news.ycombinator.com | 14 Feb 2025
    Yes, copilot's tab in vim is that made me think that AI is useless. However next iteration of AI coding tools made me rethink this (I am using https://github.com/olimorris/codecompanion.nvim with nvim now).
  • Llama.vim – Local LLM-assisted text completion
    9 projects | news.ycombinator.com | 23 Jan 2025
    this plugin is designed specifically for the llama.cpp server api, if you want copilot like features with ollama, you can use an ollama instance as a drop-in replacement for github copilot with this plugin: https://github.com/bernardo-bruning/ollama-copilot

    There is also https://github.com/olimorris/codecompanion.nvim which doesn't have text completion, but supports a lot of other AI editor workflows that I believe are inspired by Zed and supports ollama out of the box

What are some alternatives?

When comparing claude-code-router and codecompanion.nvim you can also consider the following projects:

claude-code - Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

avante.nvim - Use your Neovim like using Cursor AI IDE!

qwen-code - An open-source AI coding agent that lives in your terminal.

opencode.nvim - Integrate the opencode AI assistant with Neovim — streamline editor-aware research, reviews, and requests. [Moved to: https://github.com/nickjvandyke/opencode.nvim]

ruler - Ruler — apply the same rules to all coding agents

gp.nvim - Gp.nvim (GPT prompt) Neovim AI plugin: ChatGPT sessions & Instructable text/code operations & Speech to text [OpenAI, Ollama, Anthropic, ..]

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you know that TypeScript is
the 2nd most popular programming language
based on number of references?