项目介绍
Agent 智能体 · 2026-11-09 更新 · 本站尚未实测
Nanocoder 是由 Nano Collective 社区集体开发的终端编码 Agent。按仓库 README 的表述,它的定位是“An open coding agent for your terminal”,即运行在终端内的编码代理工具,让用户自带模型(Bring your own model),并主张将代码保留在本机。
README 明确说明它支持通过 Ollama 使用本地模型,也可以使用任何 OpenAI 兼容 API,例如 OpenRouter、Requesty、Anthropic 和 Google。实际能力如何、回答质量怎样,需要在本地按自身模型与网络环境验证,仓库资料未提供第三方评测结论。
需要注意:Nanocoder 是命令行编码助手,不是 MCP 服务器,也不是可导入客户端的工作流文件;仓库资料未提供 MCP 服务端配置或在线托管服务。
核心能力
点击能力名称查看输入、输出和原文依据。
- 多模型接入:支持 Ollama 本地模型,以及 OpenRouter、Requesty、Anthropic、Google 等 OpenAI 兼容 API。
- 非交互执行:
run子命令可在命令行中指定 provider 与 model,执行一次编码任务后返回。 - 交互模式:可直接用指定 provider 与 model 启动会话。
- 开发模式:README 列出 normal、auto-accept、yolo、plan、architect 等模式,可通过
--mode直接进入。 - 分支/PR 评审:
nanocoder review对分支或 PR 做缺陷、安全与风格检查。README 注明该功能目前为 diff-only v1,且需要交互式终端(TTY),不支持管道或重定向,输出也无法保存为文件。 - 隔离工作树:
nanocoder worktree <PR-number>在独立工作树中打开 PR 进行交互式编码。 - 两种渲染模式:全屏模式(默认,独立屏幕缓冲区)与内联模式(
--no-alt-screen),后者把完成的消息写入终端原生滚动历史。 - 扩展机制:文档目录提到 Skills(命令、子代理、工具、事件触发器)、生命周期 Hook、按项目守护进程、检查点、任务管理等,具体细节应以官方文档为准。
实际应用场景
适用场景
- 希望在终端内完成代码分析与重构,同时不把代码提交到非选定供应商的开发者。
- 有本地算力、希望用 Ollama 运行模型的隐私敏感团队。
- 已使用 OpenRouter 等聚合 API 或 Anthropic、Google 等服务的用户,希望在同一工具内切换模型。
- 需要快速对分支或 PR 做初筛检查的维护者,但需注意 review 功能依赖 TTY 且无法输出到文件。
安装与接入
README 给出的快速开始命令为:
npm install -g @nanocollective/nanocoder
nanocoder
README 还说明可通过 Homebrew(macOS/Linux)与 Nix Flakes 安装,具体步骤在官方安装文档中,本稿未收录,需查阅原文档后再操作。
使用时可显式指定 provider 与模型,例如 README 中的示例写法为 nanocoder --provider openrouter --model ... run "analyze src/app.ts",或 nanocoder --provider ollama --model llama3.1。模型名称是否有效、可用上下文长度、是否收费,均以对应供应商的实际情况为准,仓库资料未逐一确认。
worktree 命令的前置条件在 README 中有明确说明:需要 Git、已认证的 gh CLI 和交互式终端。
MCP 相关配置文件在本次采集中返回 404,因此本稿不提供 MCP 接入配置;如需接入 MCP 服务器,请以官方配置文档为准。
使用条件与限制
- 是否需要部署
- 需自行准备运行环境,具体要求见正文
- 是否需要注册
- 账号和认证要求见正文;未明确说明的项目仍待核验
- 是否需要 API Key
- 待核验
- 费用与额度
- 费用边界见正文,项目许可不代表模型或托管服务免费
- 所需权限
- 待核验
- 许可证与服务条款
- 待核验
权限费用与限制
- 代码与数据去向:README 强调本地优先与隐私保护,具体网络和数据行为仍需自行核查;若使用云端 API,代码片段会发送给对应供应商,其隐私政策与数据留存规则不由本项目决定。
- 费用:README 声明没有付费层级(no paid tiers),但第三方模型 API、Ollama 本地运行所需的硬件成本以及赞助渠道独立存在,实际费用需向各供应商核对,仓库资料未给出价格。
- 操作系统支持:README 仅单独提到 Homebrew 支持 macOS/Linux,Windows 支持情况未在资料中明确说明,待核验。
- 功能限制:review 为 diff-only v1,需要 TTY,无法管道输入或保存输出。
- 国内网络:README 未说明国内网络可用性或镜像方案,待核验。
- 维护状态:仓库元数据显示未归档、未禁用,最近推送时间可在仓库确认;长期维护承诺未在资料中说明。
国内使用情况
网友核验 用户经验分享
与站长实测独立,不代表官方认证或本站已实测。
最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。
分项统计、有效期与样本量
| 核验项目 | 有效人数 | 成功 / 部分 / 失败 / 无法判断 | 成功率 | 最近核验 / 有效期 |
|---|---|---|---|---|
| 官方网站访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| GitHub 仓库访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 安装与运行 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 官方服务国内连接 / MCP 连接 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 国内网络情况 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 国内模型兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 自定义 API | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外服务依赖 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外账号要求 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 中文界面 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 客户端兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 账号及费用信息 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。
最近有效核验
暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。
查看全部有效核验 →国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。
- 官方网站访问
- 尚未实测 待核验
- GitHub 仓库访问
- 尚未实测 待核验
- 官方服务国内连接
- 尚未实测 待核验
- 国内网络情况
- 尚未实测 待核验
- 国内模型兼容性
- 尚未实测 待核验
- 自定义 API
- 尚未实测 待核验
- 海外服务依赖
- 尚未实测 待核验
- 海外账号要求
- 尚未实测 待核验
- 中文界面
- 尚未实测 待核验
- 国内最后核验时间
- 尚未实测
许可与国内使用
仓库 LICENSE.md 文本为 MIT License,版权归 Nano Collective。该许可覆盖仓库中的软件代码;通过 API 调用的第三方模型、托管服务与本地 Ollama 模型各自遵循其自身条款,不应视为同一许可范围。公开仓库与 MIT 许可不等于模型或云服务免费。
国内使用方面,资料未给出大陆网络下的下载、安装或 API 访问可行性结论,也未提供镜像或代理方案,需自行核验。
项目资料与来源
字段依据与待核验事项
access:来源确认 · npm install -g @nanocollective/nanocoder
project_type:来源确认 · An open coding agent for your terminal, built by a community collective rather than a company.
原始 README(折叠技术参考)
# Nanocoder [简体中文](README.zh-CN.md) [繁體中文](README.zh-TW.md) An open coding agent for your terminal, built by a community collective rather than a company. Bring your own model, keep your code on your machine, and owe nothing to anyone. Built by the [Nano Collective](https://nanocollective.org), a community collective building AI tooling not for profit, but for the community. Nanocoder runs agentic coding on the model of your choice: local models via Ollama, or any OpenAI-compatible API such as OpenRouter, Requesty, Anthropic, and Google. You decide which provider runs your code and where your data goes. No closed-source features and no paid tiers gating the useful parts: **privacy-respecting**, **local-first**, and **open for all**. [](https://git.io/typing-svg)  ---         ## Quick Start ```bash npm install -g @nanocollective/nanocoder nanocoder ``` Also available via [Homebrew](docs/getting-started/installation.md#homebrew-macoslinux) and [Nix Flakes](docs/getting-started/installation.md#nix-flakes). ### CLI Flags Specify provider, model, and starting mode directly: ```bash # Non-interactive mode with specific provider/model nanocoder --provider openrouter --model google/gemini-3.1-flash run "analyze src/app.ts" # Interactive mode starting with specific provider nanocoder --provider ollama --model llama3.1 # Flags can appear before or after 'run' command nanocoder run --provider openrouter "refactor database module" # Boot directly into a development mode (normal, auto-accept, yolo, plan, architect) nanocoder --mode yolo nanocoder --mode plan run "audit the auth module" # Inline mode (native terminal scrollback) instead of the fullscreen default nanocoder --no-alt-screen # Review a branch or PR for bugs, security issues, and style violations nanocoder review main nanocoder review 42 # Open a PR in an isolated worktree for an interactive coding session nanocoder worktree 42 ``` > **Note:** `nanocoder review` is diff-only v1 and requires an interactive terminal (TTY). It cannot be used with pipes or redirection and its output cannot currently be captured to a file — see [#1287](https://github.com/Nano-Collective/nanocoder/issues/1287). `nanocoder worktree <PR-number>` requires Git, an authenticated `gh` CLI, and an interactive terminal. It creates a sibling directory named `<repository>-pr-<number>`, checks out the PR head on a local `nanocoder/pr-<number>` branch, and starts Nanocoder there. The original working tree is left alone. Both the worktree and branch remain after Nanocoder exits; remove them with `git worktree remove <path>` and `git branch -d nanocoder/pr-<number>` when finished. An existing directory or branch is never reused or overwritten. ### Screen Modes Nanocoder supports two rendering modes, mirroring what Claude Code and Codex ship: - **Fullscreen (default)** — a fixed-height layout on the alternate screen buffer with in-app scrolling: PgUp/PgDn, with a scroll indicator and automatic snap-back to bottom on new output. Mouse reporting can be toggled with `--mouse` / `--no-mouse` or in preferences. - **Inline** (`--no-alt-screen` flag, or `"alternateScreen": false` in preferences) — renders on the main screen; finished messages print once into the terminal's native scrollback, so your terminal's scrollbar, mouse wheel, and search work as usual. The transcript stays in the terminal after you exit. In both modes, `/clear` fully resets the terminal to a fresh welcome banner, and exiting (Ctrl+C or `/exit`) erases the input UI cleanly instead of leaving a dead input box. Inline mode leaves the transcript in your scrollback; fullscreen mode restores the terminal to what it showed before Nanocoder started, so the transcript is not kept on screen (use `/resume` or `/export` to get it back). ## Documentation Full documentation is available online at **[docs.nanocollective.org](https://docs.nanocollective.org/nanocoder/docs)** or in the [docs/](docs/) folder: - **[Getting Started](docs/getting-started/index.md)** - Installation, setup, and first steps - **[Configuration](docs/configuration/index.md)** - AI providers, MCP servers, preferences, logging, timeouts - **[Features](docs/features/index.md)** - Skills (commands, subagents, tools, event triggers), lifecycle hooks, the per-project daemon, checkpointing, development modes, task management, and more - **[Commands Reference](docs/features/commands.md)** - Complete list of built-in slash commands - **[Keyboard Shortcuts](docs/features/keyboard-shortcuts.md)** - Full shortcut reference - **[Community](docs/community.md)** - Contributing, Discord, and how to help ## Why a collective Nanocoder is built by the Nano Collective rather than a company, and that shapes the tool itself. There are no paid tiers, no telemetry quietly shipping your prompts somewhere, and no roadmap steered by what monetises best — the people building it are the people using it. Building in the open as a collective means the harness stays multi-provider on principle: you are never locked to one vendor's model, and the conventions, tests, and release standards are shared across every Nano Collective project so the work stays legible and contributable. It is also bigger than one tool. The collective is assembling an open ecosystem of AI tooling — see the [other projects](https://nanocollective.org) — and contributors who show up now help shape what that becomes. ## Sponsors Nanocoder is built not for profit, but for the community, and that work is funded by sponsors. [Become one](https://nanocollective.org/sponsor). ## Community The Nano Collective is a community collective building AI tooling for the community, not for profit. We'd love your help. - **Contribute**: See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines. - **The collective**: [nanocollective.org](https://nanocollective.org) · [docs](https://docs.nanocollective.org) · [GitHub](https://github.com/Nano-Collective) · [Discord](https://discord.gg/ktPDV6rekE) - **Support the work**: The [Support page](https://docs.nanocollective.org/collective/organisation/support) covers donations and sponsorship. - **Paid contribution**: The [Economics Charter](https://docs.nanocollective.org/collective/organisation/economics-charter) sets out how scoped paid bounties work.
历史前置条件说明(补充参考)
需 Node.js/npm 环境(README 使用 npm 全局安装,具体 Node 版本待核验);可选 Ollama 本地模型或 OpenRouter、Requesty、Anthropic、Google 等服务的 API Key;worktree 功能需 Git 与已认证的 gh CLI;review 功能需交互式终端;第三方模型与 API 费用待核验;Windows 支持待核验;国内网络可用性待核验。
项目来源与清单版权许可
https://github.com/Nano-Collective/nanocoder
整理来源:https://github.com/slavakurilyak/awesome-ai-agents
清单版权与许可:
MIT License
Copyright (c) 2024 Slava Kurilyak
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.