head to head · open source
opencode.nvim vs claude-code.nvim
opencode.nvim has 3,841 GitHub stars, 161 forks, 6 open issues and last shipped today. claude-code.nvim has 2,097 stars, 70 forks, 77 open issues and last shipped 8 months ago. opencode.nvim leads on adoption by 83% (3,841 vs 2,097 stars). opencode.nvim is written in Lua under MIT; claude-code.nvim is written in Lua under MIT. opencode.nvim has attracted 4% as many forks as stars, claude-code.nvim 3%. opencode.nvim was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 5 topic tags (ai-assistant, neovim, nvim, plugin), so they are genuine substitutes rather than adjacent tools.
Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.
← all 20902 open source comparisons
Side by side
| opencode.nvim | claude-code.nvim | |
|---|---|---|
| GitHub stars | ★ 3.8K | ★ 2.1K |
| License | MIT | MIT |
| Written in | Lua | Lua |
| Last push | 2026-09-20 | 2026-02-04 |
| Forks | ⑂ 161 | ⑂ 70 |
| Self-hosting | Yes | Yes |
| Data ownership | Your server | Your server |
pick opencode.nvim if
- You weight community size — 3.8K stars and counting
- You want the MIT license terms
- Your stack matches Lua
- You value the larger contributor base for long-term maintenance
pick claude-code.nvim if
- You want the claude-code.nvim feature set and don't need the biggest community
- You prefer the MIT license terms
- Your stack matches Lua
- You evaluated both and claude-code.nvim fits your workflow better
About opencode.nvim
opencode.nvim is Neovim plugin, Lua code, MIT license. It connects Neovim to OpenCode, AI coding assistant. It lives in Neovim plugin ecosystem, under AI and machine learning, AI interaction and interfaces. It targets users wanting AI help without leaving terminal text editor. It bridges Neovim buffers, selections, cursor position, and prompt selection to OpenCode. It keeps user in known Neovim flow. It does not replace OpenCode interface. It uses OpenCode existing terminal user interface and API through standard Neovim interfaces. Topic tags include ai, ai agents, ai assistant, lua, neovim, neovim plugin, nvim, …
read the full opencode.nvim overview →
About claude-code.nvim
claude code.nvim is a Neovim plugin that runs the Claude Code CLI inside a terminal buffer in the editor, giving Neovim users a single keypress interface to Anthropic's Claude Code AI assistant without leaving their session.
read the full claude-code.nvim overview →
More in AI & Machine Learning
Related comparisons
More AI Interaction & Interfaces projects
Compare either of these against the rest of the AI Interaction & Interfaces field.
Frequently asked questions
Is opencode.nvim or claude-code.nvim more popular?
opencode.nvim has 3,841 GitHub stars and claude-code.nvim has 2,097. opencode.nvim has the larger community by that measure.
Are opencode.nvim and claude-code.nvim free?
Both are open source. opencode.nvim is licensed under MIT and claude-code.nvim under MIT. Neither carries a licence fee.
What is the difference between opencode.nvim and claude-code.nvim?
opencode.nvim is written in Lua and claude-code.nvim in Lua. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.
Which should I choose, opencode.nvim or claude-code.nvim?
Choose opencode.nvim if you want the larger community (3,841 stars) or its MIT licence terms. Choose claude-code.nvim if its feature set, stack or MIT licence fits better. Both are self-hostable.