登录 注册
其他
3,915
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Lua
语言
—
创建时间
最近更新

项目能做什么

在熟悉的开发工作流中,无缝结合 Neovim 与 OpenCode。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

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

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# opencode.nvim

Neovim plugin that integrates with [OpenCode](https://opencode.ai/) to keep you in the flow that you already know.

https://github.com/user-attachments/assets/e85e021c-fa8f-466e-830c-c667b28f611e

## ⭐ Motivation

AI works best at small, focused scopes — as a pair programmer with the human driving. You stay in control, craft the code that matters, and keep your skills sharp. opencode.nvim just provides the context and connection to make that pairing seamless.

Rather than introduce yet another interaction model, opencode.nvim leverages OpenCode's existing TUI and API via standard Neovim interfaces. You keep your environment, your config, your flow.

For me, the best tools are the ones that "just work." opencode.nvim is designed to be one of them.

## ✨ Features

- Connect to _any_ OpenCode server, or start an integrated instance
- Inject editor context (cursor, selection, buffer, etc.)
- Input prompts with completions and highlights
- Select from built-in and custom prompts
- Execute OpenCode commands
- Accept/reject and reload OpenCode edits
- Handle OpenCode events as autocmds
- Simple, sensible, Vim-y defaults and interfaces

## 📦 Setup

[vim.pack](https://neovim.io/doc/user/pack/#vim.pack) (recommended)

```lua
vim.pack.add({
  {
    src = "https://github.com/nickjvandyke/opencode.nvim",
    -- Defaults to "main", supporting OpenCode v2.
    -- Uncomment to pull the latest stable release, supporting OpenCode v1.
    -- version = vim.version.range("*"),
  },
})

---@type opencode.Opts
vim.g.opencode_opts = {
  -- Your configuration, if any; goto definition on the type for details
}

-- Recommended/example keymaps
vim.keymap.set({ "n", "x" }, "<C-a>",   function() require("opencode").ask("@this: ") end,                    { desc = "Ask OpenCode…" })
vim.keymap.set({ "n", "x" }, "<C-x>",   function() require("opencode").select() end,                          { desc = "Select OpenCode…" })
vim.keymap.set({ "n", "x" }, "go",      function() return require("opencode").operator("@this") end,         { desc = "Send range to OpenCode", expr = true })
vim.keymap.set({ "n" },      "goo",     function() return require("opencode").operator("@this") .. "_" end,  { desc = "Send line to OpenCode", expr = true })
```

<details>
<summary><a href="https://github.com/folke/lazy.nvim">lazy.nvim</a></summary>

```lua
{
  "nickjvandyke/opencode.nvim",
  -- Defaults to "main", supporting OpenCode v2.
  -- Uncomment to pull the latest stable release, supporting OpenCode v1.
  -- version = "*",
  config = function()
    ---@type opencode.Opts
    vim.g.opencode_opts = {
      -- Your configuration, if any; goto definition on the type for details
    }

    -- Recommended/example keymaps
    vim.keymap.set({ "n", "x" }, "<C-a>",   function() require("opencode").ask("@this: ") end,                    { desc = "Ask OpenCode…" })
    vim.keymap.set({ "n", "x" }, "<C-x>",   function() require("opencode").select() end,                          { desc = "Sel
阅读完整原文

项目深度分析 AI 生成

OpenCode 商业托管服务推广与代销

产品构想作为 OpenCode 的官方或生态级客户端,通过推广 OpenCode 官方商业算力/订阅包赚取佣金,或联合提供专为终端极客定制的 Token 算力包。
核心功能一键激活商业 Token、用量配额面板展示、低延迟服务器接入预设、优先技术支持通道。
目标用户不想自建/自理 OpenCode server、需要稳定开箱即用模型的个人开发者。
难度/周期低 · 2-4周 · 成本:低于 $500(主要是商务对接与轻量凭证管理代理)
收费模式分销佣金或差价利润
竞争风险极度依赖 OpenCode 官方商业政策;开发者大多偏好自备 API Key(BYOK)。
依据 已验证事实

企业私有化代码安全网关与审计集成版

产品构想针对企业内网合规需求,提供中间件服务与配套插件扩展,对发送至 OpenCode 的上下文进行代码脱敏、合规检测与审计日志留存。
核心功能代码敏感信息(密钥、私有业务标记)自动脱敏拦截、企业私有模型路由、审计追踪、团队 Prompt 预设下发。
目标用户使用 Neovim 且对代码泄露敏感的企业研发团队、金融/安全敏感行业开发组。
难度/周期中等 · 2-3个月 · 成本:每月 $1000 - $3000(服务器与测试合规环境)
收费模式按企业席位订阅计费(SaaS或私有化部署授权费)
竞争风险Neovim 用户群体在企业中相对小众且分散,B2B 销售周期长、决策链条复杂。
依据 尚需验证的假设

定制化团队工作流与极客工作空间发行版配置

产品构想将插件与团队最佳实践打包为开箱即用的 Neovim 极客 AI 开发配置套件,提供付费文档、专属配置脚本与一对一工作流咨询。
核心功能精调的 Snacks/Telescope 深度集成方案、团队级 Prompt 资产库同步、自动化重构工作流脚本、持续更新的技术支持群组。
目标用户重度终端开发者、中小型敏捷团队技术负责人、自由职业开发者。
难度/周期低 · 1-2周 · 成本:极低(仅个人时间投入)
收费模式数字商品销售(Gumroad 等平台售卖配置与视频指南)或 Patreon/GitHub Sponsors 会员制
竞争风险受众开源极客习惯自行抄写配置,付费转化率天然偏低。
依据 数据支持的判断
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

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

项目中文简介Stars语言
sudo-tee/opencode.nvim 中文介绍暂未生成
neovim frontend for opencode - a terminal-based AI coding ag
981 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 后可生成对比分析。

项目优势与风险

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

安装与使用

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