登录 注册

opencode.nvim

去点 Star
AI 应用与 AI Agent开发者工具
982
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Lua
语言
—
创建时间
最近更新

项目能做什么

终端 AI 编码代理 opencode 的 Neovim 前端插件。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<div align="center">
  <img src="https://raw.githubusercontent.com/sudo-tee/opencode.nvim/docs-assets/opencode-nvim.png" alt="opencode.nvim logo" width="30%" />
</div>

# 🤖 opencode.nvim

A Neovim frontend for [OpenCode](https://opencode.ai). Chat with the agent in a
side panel, send it files, selections, and diagnostics, and review its edits
without leaving the editor.

---

<div align="center">

![Neovim](https://img.shields.io/badge/NeoVim-%2357A143.svg?&style=for-the-badge&logo=neovim&logoColor=white)
[![GitHub stars](https://img.shields.io/github/stars/sudo-tee/opencode.nvim?style=for-the-badge)](https://github.com/sudo-tee/opencode.nvim/stargazers)
![Last Commit](https://img.shields.io/github/last-commit/sudo-tee/opencode.nvim?style=for-the-badge)

<a href="https://www.buymeacoffee.com/sudo.tee"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" height="30px"></a>

</div>

<div align="center">

![OpenCode chat panel beside a code buffer](https://github.com/user-attachments/assets/42da57f3-86b6-4409-b612-12c31fb1873f)
</div>

## Features

- [Chat panel](docs/usage.md#move-between-code-and-conversation) with separate
  input and output buffers, [prompt history](docs/usage.md#prompt-history), and
  [Markdown rendering](docs/usage.md#markdown-rendering).
- [Context](docs/context.md) from the current file,
  [visual selections](docs/context.md#add-a-selection),
  [`@` file mentions](docs/context.md#mention-files-and-agents), diagnostics,
  and [clipboard images](docs/context.md#attach-an-image).
- [Multiple sessions](docs/usage.md#sessions-and-panel-tabs), each in its own
  panel tab, plus a session picker and
  [timeline](docs/usage.md#timeline-and-session-tree) with undo and fork.
- [Session diff review](docs/review.md) with
  [inline comments](docs/review.md#leave-inline-feedback) that go into your next
  prompt (OpenCode V2).
- [Quick chat](docs/quick-chat.md) for one-off edits on the
  current line or selection (experimental).

Works with OpenCode V1 and V2 servers; the protocol is detected automatically.
The `v1` branch keeps the old plugin code and is not needed for a V1 server.
See [Compatibility](docs/compatibility.md).

## Install

Requires Neovim 0.10.3 or later and the `opencode` CLI on your `PATH`, with a
provider already connected (run `opencode` and use `/connect`).

With [lazy.nvim](https://github.com/folke/lazy.nvim):

```lua
return {
  'sudo-tee/opencode.nvim',
  dependencies = {
    -- Optional: choose a picker you already use, or keep vim.ui.select.
    -- 'folke/snacks.nvim',
    -- 'nvim-telescope/telescope.nvim',
    -- 'ibhagwan/fzf-lua',
    -- 'nvim-mini/mini.pick',
    -- Optional: use your configured completion engine, or built-in completion.
    -- 'saghen/blink.cmp',
    -- 'hrsh7th/nvim-cmp',
    {
      'MeanderingProgrammer/render-markdown.nvim',
      opts = {
        anti_conceal = { enabled = false },
        file_types = { 'markdown', 'opencode_output' },
      },
      ft = { 'ma
阅读完整原文

项目深度分析 AI 生成

企业级私有化 AI 编码流与 Neovim 集成解决方案

产品构想为重度使用 Neovim 的技术型企业或极客团队提供合规、可审计的私有 Agent 集成与定制配置方案。
核心功能私有模型网关集成插件、审计日志记录、敏感代码脱敏过滤、团队统一提示词与工作流配置同步。
目标用户有数据安全与合规要求的科技企业研发团队、量化交易团队(推测)。
难度/周期中等 · 1-2 个月 · 成本:极低(主要是开发与企业对接支持工时)
收费模式按企业团队订阅席位收费,或按定制交付服务费收费(推测)。
竞争风险Neovim 用户群体在企业中总体占比偏小,B端市场切入点过于小众。
依据 AI推测

围绕 Neovim 现代化 AI 工作流的高级赞助与内容知识付费

产品构想作者已接入 Buy Me a Coffee,可通过面向 Neovim 极客群体的赞助人专属特权(Early Access、专属配置库、高级视频工作流指南)进行个人变现。
核心功能新功能先行测试版、精选开箱即用的 Neovim AI 发行版配置、复杂项目架构下使用 OpenCode 的深度工作流教程。
目标用户Neovim 爱好者、独立开发者、技术极客。
难度/周期低 · 持续运营 · 成本:零成本
收费模式GitHub Sponsors / Buy Me a Coffee 赞助、会员专栏订阅。
竞争风险赞助收入天花板低,无法支撑专职全职研发。
依据 已验证事实

跨编辑器 AI Agent 协议中继与增值协作网关

产品构想超越单一前端,构建一个轻量的 Agent 状态同步服务,使用户在 Neovim、VS Code 或终端之间切换时保持会话上下文、历史分支与 Prompt 同步。
核心功能多端 Session 树漫游与同步、远程 Diff 协作审查、云端跨设备上下文缓存。
目标用户在 Neovim 和 GUI 编辑器间混合使用的多端开发者。
难度/周期较高 · 2-3 个月 · 成本:轻度云服务器与数据库成本(< $50/月)
收费模式SaaS 订阅(免费版限制同步设备与历史存储,专业版按月收费)。
竞争风险依赖 OpenCode 协议稳定性,且用户可能不愿意为小工具服务额外付订阅费。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
nickjvandyke/opencode.nvim 中文介绍暂未生成
Neovim 🤝 OpenCode in the flow that you already know.
3,913 Lua
cousine/opencode-context.nvim 中文介绍暂未生成
Neovim plugin to interact with the opencode AI assistant TUI
37 Lua
wwnbb/opencode.nvim 中文介绍暂未生成
15 Lua
silvabyte/opencode.nvim 中文介绍暂未生成
10 Lua
jaswdr/opencode-completion.nvim 中文介绍暂未生成
Code completion with OpenCode server
9 Lua
e-cal/opencode-tmux.nvim 中文介绍暂未生成
8 Lua
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建时间待补全,最近推送
社区活跃Star 982 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。