[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"pack-detail-china-programmer-ai-stack-zh":3,"seo:pack:china-programmer-ai-stack:zh":103},{"code":4,"message":5,"data":6},200,"操作成功",{"pack":7},{"slug":8,"icon":9,"tone":10,"status":11,"status_label":12,"title":13,"description":14,"items":15,"install_cmd":102},"china-programmer-ai-stack","🇨🇳","#DC2626","new","本周新建","国内 AI 编程主力栈 — Cursor\u002FCodex 不顺时的最佳替代","10 件套，给国内程序员搭一套不依赖 ChatGPT\u002FCursor 的 AI 编程栈：DeepSeek + Qwen + Kimi 做模型层，Cherry Studio 做桌面 chat 客户端，One API \u002F LiteLLM 做统一网关，Tabby \u002F Ollama 给完全断网的内网团队，外加 Continue 和 DeepSeek 原生 CLI — 全部支持人民币付款、无需翻墙。",[16,28,36,44,54,62,72,80,88,95],{"id":17,"uuid":18,"slug":19,"title":20,"description":21,"author_name":22,"view_count":23,"vote_count":24,"lang_type":25,"type":26,"type_label":27},3142,"d950a025-f3c2-477b-b2fb-db2975bcafd7","deepseek-tui-terminal-coding-agent-for-deepseek","DeepSeek TUI — Terminal Coding Agent for DeepSeek","DeepSeek TUI is a terminal coding agent for DeepSeek models. Install via npm\u002Fcargo\u002Fbrew, run on your repo, and keep approval gates for edits.","Script Depot",81,0,"en","script","Script",{"id":29,"uuid":30,"slug":31,"title":32,"description":33,"author_name":34,"view_count":35,"vote_count":24,"lang_type":25,"type":26,"type_label":27},3022,"2dff2d41-ba09-4f17-bcce-22b9537c1db9","qwen-code-terminal-coding-agent-for-qwen-models","Qwen Code — Terminal Coding Agent for Qwen Models","Qwen Code is an open-source terminal coding agent for Qwen models. Node 22+, npm or Homebrew install, \u002Fauth flow, codebase Q&A, refactors, and tests.","QwenLM",97,{"id":37,"uuid":38,"slug":39,"title":40,"description":41,"author_name":42,"view_count":43,"vote_count":24,"lang_type":25,"type":26,"type_label":27},3643,"b6547ac2-21f2-5e33-98db-4ddc3552d152","oh-my-kimi-evidence-gated-agent-runtime-for-kimi","oh-my-kimi — Evidence-gated Agent Runtime for Kimi","oh-my-kimi (OMK) is a CLI runtime that adds evidence gates and worktree isolation to Kimi Code; verified 69★ and ships `omk init\u002Fdoctor\u002Fchat`.","Skill Factory",103,{"id":45,"uuid":46,"slug":47,"title":48,"description":49,"author_name":50,"view_count":51,"vote_count":24,"lang_type":25,"type":52,"type_label":53},2821,"121c2d1e-678a-4ea4-8799-70391f0a11de","cherry-studio-custom-models-byok-any-llm-provider","Cherry Studio Custom Models — BYOK Any LLM Provider","Cherry Studio Custom Models adds any OpenAI-compatible endpoint — proxy, local, or third-party. Mix Claude, GPT, Gemini, DeepSeek, Ollama side-by-side.","Cherry Studio",107,"skill","Skill",{"id":55,"uuid":56,"slug":57,"title":58,"description":59,"author_name":60,"view_count":61,"vote_count":24,"lang_type":25,"type":52,"type_label":53},3821,"65f4b9a7-d932-51b8-aa22-6f0ff7cff276","one-api-unified-llm-api-gateway-docker","One API — Unified LLM API Gateway (Docker)","One API is a self-hosted LLM API gateway: unify OpenAI\u002FClaude\u002FGemini\u002FDeepSeek endpoints, manage keys, and deploy via Docker in minutes (33.7k★).","AI Open Source",89,{"id":63,"uuid":64,"slug":65,"title":66,"description":67,"author_name":68,"view_count":69,"vote_count":24,"lang_type":25,"type":70,"type_label":71},2789,"0f113965-1adc-4435-982b-fb613fa4d157","litellm-proxy-unified-gateway-for-100-llm-apis","LiteLLM Proxy — Unified Gateway for 100+ LLM APIs","LiteLLM Proxy maps 100+ LLM providers (Anthropic, OpenAI, Bedrock, Vertex) to one OpenAI-compatible endpoint. Auth, rate limit, cost track, fallbacks.","LiteLLM (BerriAI)",92,"agent","Agent",{"id":73,"uuid":74,"slug":75,"title":76,"description":77,"author_name":78,"view_count":79,"vote_count":24,"lang_type":25,"type":52,"type_label":53},613,"faed3b71-acbc-41f6-98f6-317143d41138","continue-open-source-ai-code-assistant-ides-faed3b71","Continue — Open-Source AI Code Assistant for IDEs","Open-source AI code assistant for VS Code and JetBrains. Connect any LLM model, use autocomplete, chat, and inline edits. Fully customizable with your own models and context. 22,000+ stars.","Continue",152,{"id":81,"uuid":82,"slug":83,"title":84,"description":85,"author_name":86,"view_count":87,"vote_count":24,"lang_type":25,"type":52,"type_label":53},216,"1a1d4061-a148-4566-a3d7-ab40e6f2a972","tabby-self-hosted-ai-coding-assistant-1a1d4061","Tabby — Self-Hosted AI Coding Assistant","Self-hosted AI code completion and chat assistant. Privacy-first alternative to GitHub Copilot. Supports 20+ models, repo-aware context, and IDE integrations. 33K+ stars.","TokRepo精选",907,{"id":89,"uuid":90,"slug":91,"title":92,"description":93,"author_name":22,"view_count":94,"vote_count":24,"lang_type":25,"type":52,"type_label":53},162,"0eefb7ad-754e-4f35-8967-586ebf4c2a6a","ollama-run-llms-locally-0eefb7ad","Ollama — Run LLMs Locally","Run large language models locally on your machine. Supports Llama 3, Mistral, Gemma, Phi, and dozens more. One-command install, OpenAI-compatible API.",197,{"id":96,"uuid":97,"slug":98,"title":99,"description":100,"author_name":22,"view_count":101,"vote_count":24,"lang_type":25,"type":26,"type_label":27},3604,"42bb7d1b-7879-54af-b319-83ecb7d9b53a","reasonix-deepseek-native-coding-agent-cli","Reasonix — DeepSeek-Native Coding Agent CLI","Reasonix is a DeepSeek-native coding agent CLI for the terminal; README reports a 99.82% cache hit in a real-day case study.",111,"tokrepo install pack\u002Fchina-programmer-ai-stack",{"pageType":104,"pageKey":8,"locale":105,"title":106,"metaDescription":107,"h1":108,"tldr":109,"bodyMarkdown":110,"faq":111,"schema":127,"internalLinks":134,"citations":147,"wordCount":160,"generatedAt":161},"pack","zh","国内 AI 编程主力栈 — 不靠 ChatGPT\u002FCursor 也能干活的 10 件套","DeepSeek + 通义千问 + Kimi 做模型层，Cherry Studio 做桌面 chat，One API + LiteLLM 做统一网关，Tabby + Ollama 给内网，外加 Continue 和 DeepSeek 原生 CLI。国内程序员 Cursor\u002FCodex 不顺时的真实可用替代栈，含安装顺序、踩坑和合规建议。","国内 AI 编程主力栈 — 不翻墙、人民币付款、能上生产","10 件套，给大陆程序员搭一套不依赖 ChatGPT\u002FCursor 的 AI 编程栈：先选一个国产模型 (DeepSeek \u002F 通义千问 \u002F Kimi) 拿到 RMB 计费的 API key，再用 Cherry Studio 当桌面 chat、One API 当统一网关，纯内网就上 Tabby + Ollama，IDE 端挂 Continue 或 DeepSeek 原生 CLI。安装顺序有讲究。","## 这个 pack 包含什么\n\n这是一个**在国内真实工作环境下能跑**的 AI 编程栈 — 给每周都被同样三堵墙撞回来的工程师：**Cursor 和 Codex 注册要外国手机号**、**OpenAI \u002F Anthropic API 在网络层会被间歇性阻断**、**公司防火墙 + 只能微信\u002F支付宝付款**让国外 SaaS 直接走不通。本 pack 不是这些工具的「绕路方案」，而是**国内原生替代**：建立在国内模型厂（DeepSeek \u002F 阿里通义千问 \u002F 月之暗面 Kimi）+ 可自托管网关 + IDE 插件之上。\n\n每一项都满足三条铁律：**人民币可付费或可自托管**、**国内一般网络无需 VPN 即可访问**、**质量真的能当日常编程助手用** — 而不只是「能跑通」。如果你已经把 Cursor 配好且不想换，这不是你的 pack；如果你拿的是公司发的本本、连外网都过不去，这是你**唯一能上线的 pack**。\n\n## 推荐安装顺序\n\n1. **DeepSeek TUI** *(id: 3142)* — 先装它，因为 **DeepSeek-V3 \u002F R1 是目前国产模型里代码质量最高 + RMB 计费的 API**，TUI 是一个单 binary 终端 agent，能在你连其他东西之前先证明 API key 可用。`npm i -g deepseek-tui`，从 `platform.deepseek.com` 复制 key，30 秒拿到回复。\n2. **Qwen Code** *(id: 3022)* — 阿里官方的 Qwen 终端编码 agent。**第二个装**，因为 Qwen-Max \u002F Qwen3-Coder 是 DeepSeek 容量被限流时最强的备份模型，正式写脚本前先把备份模型接好。`npm i -g @qwen-code\u002Fqwen-code`，`\u002Fauth` 输入 DashScope（bailian.console.aliyun.com）的 key。\n3. **oh-my-kimi** *(id: 3643)* — 月之暗面的 Kimi K2 在国产模型里**长上下文窗口最稳定**（1M token 真的能用），oh-my-kimi 在 agent 循环里加了证据校验门控。**第三个装**，把模型层补齐：DeepSeek 日常写码、Qwen 备份、Kimi 给「整库提问」场景。\n4. **Cherry Studio Custom Models** *(id: 2821)* — 开源桌面 chat 客户端（Mac\u002FWin\u002FLinux），**支持把任意 OpenAI-compat 端点加成 BYOK provider**。第四个装，因为这时你已经有三个模型 provider，需要一个能在对话中途切模型的 chat UI。Cherry Studio 是国内开发者圈的事实标准 — 30K+ star、MIT 协议、无 telemetry。\n5. **One API** *(id: 3821)* — 自托管 LLM API 网关（Docker，Go 写的）。**第五个装**，因为这时你已经有多个 key（DeepSeek + Qwen + Kimi），团队需要一个统一的 OpenAI-compat URL 在它们之间轮询。One API 是大多数国内团队的首选（33K+ star，中文管理后台）。\n6. **LiteLLM Proxy** *(id: 2789)* — 国际派的另一选项，Python 写的，100+ provider 支持。**和 One API 二选一**，只在你还需要代理国外 provider（OpenRouter \u002F Together \u002F 反代 Anthropic）+ 要更强成本追踪时才上 LiteLLM。**别两个都跑。**\n7. **Continue** *(id: 613)* — 开源 IDE 助手（VSCode + JetBrains），**指向任意 OpenAI-compat 端点** — 即指向你的 One API 网关，即 IDE 的代码补全和 chat 现在跑在 DeepSeek-Coder 上，每百万 token 几毛钱。\n8. **Tabby** *(id: 216)* — 自托管的 GitHub Copilot 替代品。**只在公司禁止外部 API 调用时装**（银行、政企、内部 R&D）。Tabby 完全跑在你自己的硬件上，支持 DeepSeek-Coder \u002F Qwen-Coder 权重，给 VSCode + JetBrains 提供 FIM 自动补全。\n9. **Ollama** *(id: 162)* — 本地模型 runtime。**装的条件**：Mac 32GB+ 统一内存，或工作站有 24GB+ 显存。`ollama pull qwen3:14b` 或 `deepseek-r1:7b`，Cherry Studio \u002F Continue 就能指向 `localhost:11434` 替代任何 API。\n10. **Reasonix** *(id: 3604)* — DeepSeek 原生编码 agent CLI，针对 prompt cache 做了优化（README 称 99%+ 命中率）。**最后装**，作为高阶玩家的升级 — 用 DeepSeek TUI 一周后想要更低延迟 + 真实仓库上更低账单时再上。\n\n## 它们怎么协同\n\n```\n  国内模型 API （全部 RMB 计费、不需要 VPN）\n  ┌─────────────────┬─────────────────┬─────────────────┐\n  │ DeepSeek-V3\u002FR1  │ 通义千问 Qwen   │  Kimi K2 (1M ctx)│\n  │(platform.deepseek)│(bailian.aliyun)│(platform.moonshot)│\n  └────────┬────────┴────────┬────────┴────────┬─────────┘\n           │                 │                 │\n           ▼                 ▼                 ▼\n           One API  \u002F  LiteLLM Proxy  (Docker，部署在你 VPS)\n          （统一 OpenAI-compat URL + key 轮询 + 账单日志）\n                              │\n        ┌─────────────────────┼─────────────────────┐\n        ▼                     ▼                     ▼\n  DeepSeek TUI \u002F         Cherry Studio          Continue\n  Qwen Code \u002F           （桌面 chat，          （VSCode\u002FJB 内\n  oh-my-kimi \u002F            BYOK 任意 provider）   chat + 自动补全）\n  Reasonix\n  （终端 agent）\n\n  ── 完全断网兜底（公司不让连外网） ──\n          Tabby（自托管 Copilot，跑 DeepSeek-Coder 权重）\n          Ollama（本地跑 Qwen \u002F DeepSeek-Coder \u002F Yi \u002F GLM）\n```\n\n分水岭是 **One API 挂在三个国产 provider 前面**。之前你有三个 API key 散在各 `.env` 文件里，每个工具都得各自适配每个 provider；之后所有工具指向一个 URL，换模型只是改模型名，财务团队看到一份汇总账单。**别跳过网关** — 没有它，多模型工作流第二周就崩。\n\n## 你会遇到的取舍\n\n- **DeepSeek vs Qwen vs Kimi** — DeepSeek 在代码质量 + 价格上赢（¥0.50-2\u002FM token）。Qwen 在中文文档、多模态、阿里云企业合规上赢。Kimi 在上下文长度上赢（1M 真的能用）。多数团队 DeepSeek 默认、Qwen 做阿里云合规备份、Kimi 给「整库提问」场景。\n- **One API vs LiteLLM** — One API 国产开发者优先（中文管理 UI、支持微信支付计费插件、占用更低）。LiteLLM 国际派优先（成本追踪更强、provider 接入更多、Python 生态）。只用国产 provider，One API 是显而易见的选择。\n- **Continue vs DeepSeek TUI \u002F Qwen Code** — Continue 在 IDE 里（自动补全 + chat 面板）。CLI agent 在终端里、能跑多步重构。互补关系：Continue 给敲代码，CLI agent 给「重构这个模块」。多数工程师两个都跑。\n- **云 API vs Tabby vs Ollama** — 云 API 最便宜质量最高，但要外部网络。Tabby 中等质量（模型本地）需要 GPU。Ollama 跑笔记本，14B 参数以下质量掉得厉害。**只在合规要求或真的有闲置 4090 \u002F M 系列 Pro 时才走本地**。\n- **Cherry Studio vs 模型厂的网页 chat** — DeepSeek \u002F Qwen \u002F Kimi 都有免费网页 chat。Cherry Studio 在你想**对话中途切模型**、本地保存对话历史、接入自己的 RAG 知识库时才有价值。如果你只在浏览器用一个模型，不需要装。\n\n## 常见踩坑\n\n- **「DeepSeek API 又挂了」** — DeepSeek 在高峰期有数小时容量问题。这正是 One API + Qwen 兜底存在的意义。网关配 `priority: 1 deepseek, priority: 2 qwen`，多数故障对用户无感。\n- **JetBrains Continue 插件商店国内慢** — IDE 里安装失败，去 `plugins.jetbrains.com`（一般可达）下 `.zip` 离线装。VSCode 商店走微软 CN 镜像一般没问题。\n- **百炼（阿里云）认证流程默认中国手机号** — Qwen API 经 bailian.console.aliyun.com 需要阿里云账号 + 支付宝实名。国外账号团队走 **DashScope International**（`dashscope-intl.aliyuncs.com`）— 端点不同、模型一样、计费实体不同。\n- **Cherry Studio + 公司代理** — Cherry Studio 默认走系统代理，如果公司代理白名单只放外国域名，DeepSeek 调用会失败。要么把 `api.deepseek.com` 加到代理 bypass，要么在 Cherry Studio 里配置 per-provider 代理覆盖。\n- **Tabby + 显存** — DeepSeek-Coder-V2-Lite-16B fp16 要 ~24GB 显存，4-bit 量化要 ~12GB。3090 \u002F 4090 单卡够用，4060Ti 16GB 不够。**先把硬件量好再向团队承诺「替代 Copilot」**。\n- **One API 挂公网 IP 又不改密码 = key 被偷** — One API 管理后台默认 `root\u002F123456`。**部署第一小时改掉**，挂 nginx + basic auth 或塞 VPN 后面。国内开发者论坛已经多次见到 DeepSeek key 被偷一夜烧掉 ¥10K+ 账单的截图。\n- **微信\u002F支付宝充值最低门槛 + 发票（fapiao）** — DeepSeek 和 Moonshot 充值起步 ¥10-50；个人无所谓，但**公司财务团队要发票（普票\u002F专票）**，**从第一天就申请企业账号**，别用个人账号充值再切换 — 中途换计费主体浪费一周。\n- **DeepSeek 思维链开关** — DeepSeek-R1 \u002F V3 thinking 模式会把 reasoning 也算入 token 计费，且响应慢 3-5 倍。日常 chat 关掉，难题再开。在 One API 里建两个虚拟模型 (`deepseek-chat` \u002F `deepseek-reasoner`) 让用户显式选。",[112,115,118,121,124],{"q":113,"a":114},"我会翻墙能用 Cursor \u002F Claude，为什么还要换国产栈？","三个原因：(1) 公司本本 + 公司 VPN 早晚和你的个人 VPN 工具冲突，**哪天客户会议登不上工具，就是这套栈回本的那天**；(2) DeepSeek 和 Qwen 现在代码质量已经真实有竞争力，价格只有海外的 1\u002F10 — 即使翻墙稳定，团队规模一上来成本差异显著；(3) **发票（fapiao）**。公司财务报销不了 USD Stripe 账单，RMB 计费的国产模型是唯一可行路径。**多数工程师最后两套都跑** — 方便时用海外工具，本套栈作为「永远能用」的兜底。",{"q":116,"a":117},"我公司禁止任何外部 API 调用，这个 pack 还能用哪部分？","云 API 全砍掉，只跑：Tabby（自托管 Copilot，第 8 项）+ Ollama（本地模型 runtime，第 9 项）+ Continue（IDE 插件，第 7 项）指向 Ollama 的 localhost 端点。Cherry Studio（第 4 项）也能指向本地模型。你需要一台 24GB+ 显存的工作站，或 32GB+ 统一内存的 M 系列 Mac。模型推荐：代码用 DeepSeek-Coder-V2-Lite-16B，通用 chat 用 Qwen3-14B。质量低于云端 DeepSeek，但远高于「没 AI」。",{"q":119,"a":120},"整套栈每个工程师每月真实花多少钱？","个人重度日常使用 DeepSeek 为主：¥30-80\u002F月（1-3M token\u002F天）。加上 One API 兜底到 Qwen，再加 ¥20-40。对比 Cursor Pro ~$20\u002F月（~¥150）+ Copilot $10\u002F月（~¥75），还得 VPN 稳定。**10 人团队**：一台 ¥80\u002F月的 VPS 跑 One API + 共享 DeepSeek+Qwen key pool，通常落在 ¥500-1500\u002F月，对比国际 SaaS 等价方案 ¥6000+。",{"q":122,"a":123},"公司财务要发票，这个栈能开吗？","DeepSeek、阿里云（百炼跑 Qwen）、月之暗面（Kimi）**都能开中国增值税发票**（普票 \u002F 专票），按需申请，**从第一天就用企业账号注册**而不是个人账号。One API 和 LiteLLM 是开源自托管，没有 SaaS 账单需要开票。**坑**：从个人阿里云账号月中切到企业账号很痛（计费实体分开）。先把企业账号建好，再在它下面建开发者 key。",{"q":125,"a":126},"什么任务用什么模型？","**代码默认**：DeepSeek-V3 (chat) + DeepSeek-Coder (补全) — 2026 年性价比之王。**推理 \u002F 难数学 \u002F 重构规划**：DeepSeek-R1 或 DeepSeek-V3 thinking 模式。**整库提问 \u002F 长文档分析（>200K token）**：Kimi K2 — 1M 上下文真的能用（多数模型过 64K 就开始掉链子）。**多模态 \u002F 视觉 \u002F 阿里云企业原生**：Qwen-VL 或 Qwen-Max。**断网本地**：DeepSeek-Coder-V2-Lite-16B（代码）或 Qwen3-14B（通用）。**别选一个模型死磕** — 通过 Cherry Studio 或 One API 在 provider 间切换才是这个栈的精髓。",{"@context":128,"@type":129,"name":130,"description":131,"numberOfItems":132,"inLanguage":133},"https:\u002F\u002Fschema.org","ItemList","国内 AI 编程主力栈","10 个面向中国大陆开发者的 AI 编程工具，覆盖国产模型 \u002F 网关 \u002F IDE \u002F 内网兜底，全部支持 RMB 付款、无需 VPN。",10,"zh-CN",[135,139,143],{"url":136,"anchor":137,"reason":138},"\u002Fzh\u002Fpacks\u002Fwindows-engineer-ai-stack","Windows 工程师 AI 战机","国内程序员多数跑 Windows + WSL，这套栈和操作系统层 pack 配对",{"url":140,"anchor":141,"reason":142},"\u002Fzh\u002Fpacks\u002Fterminal-first-workflow-ai","终端优先 AI 工作流","本 pack 的 CLI agent（DeepSeek TUI \u002F Qwen Code \u002F Reasonix）属于更大的终端优先生态",{"url":144,"anchor":145,"reason":146},"\u002Fzh\u002Fpacks\u002Faider-pair-programming","Aider 结对编程","Aider 是模型无关的替代方案，通过 One API 配合 DeepSeek-Coder 非常合适",[148,152,156],{"claim":149,"source_name":150,"source_url":151},"DeepSeek-V3 是开放权重 MoE 模型，提供 RMB 计费的公开 API","DeepSeek 开放平台文档","https:\u002F\u002Fplatform.deepseek.com\u002F",{"claim":153,"source_name":154,"source_url":155},"Qwen Code 是 QwenLM 官方终端编码 agent，Apache-2.0 协议","QwenLM\u002Fqwen-code GitHub 仓库","https:\u002F\u002Fgithub.com\u002FQwenLM\u002Fqwen-code",{"claim":157,"source_name":158,"source_url":159},"One API 是开源自托管 LLM 网关，GitHub 33K+ star","One API GitHub 仓库","https:\u002F\u002Fgithub.com\u002Fsongquanpeng\u002Fone-api",1050,"2026-05-23T12:00:00Z"]