[{"data":1,"prerenderedAt":377},["ShallowReactive",2],{"project-\u002Fprojects\u002Fnexuskey":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"status":10,"weight":11,"featured":12,"language":13,"highlights":14,"tags":18,"url":23,"docs":24,"body":25,"_type":371,"_id":372,"_source":373,"_file":374,"_stem":375,"_extension":376},"\u002Fprojects\u002Fnexuskey","projects",false,"","NexusKey · 多协议商业级 AI API 网关","面向开发者与小团队的统一大模型 API 网关：一套 Base URL 兼容 OpenAI、Anthropic、Gemini 与图像\u002F视频协议，内置多上游容灾、不可变账本、BYOK 加密托管与实时透明遥测。","在线运行",96,true,"Go + Vue 3",[15,16,17],"四协议统一接入：OpenAI \u002F Anthropic \u002F Gemini \u002F 图像与视频端点一套密钥打通","商业级稳定性与风控：深度就绪探针、多上游自动容灾、单 Key 模型白名单与 RPM 护栏","账本透明与 BYOK：不可变钱包账本 + CSV 对账、自有上游加密托管、真实 24h \u002F 30d 调用遥测",[19,20,21,22],"AI 网关","Go","多模型路由","高可用","https:\u002F\u002Fnexuskey.cn","https:\u002F\u002Fdocs.nexuskey.cn",{"type":26,"children":27,"toc":362},"root",[28,36,42,71,139,144,153,158,283,288,328,334],{"type":29,"tag":30,"props":31,"children":33},"element","h2",{"id":32},"项目定位",[34],{"type":35,"value":32},"text",{"type":29,"tag":37,"props":38,"children":39},"p",{},[40],{"type":35,"value":41},"在自己同时维护数据平台、量化研究和多个 AI 编码工作流的过程中，反复踩到同一个痛点：不同模型厂商协议不统一、单一上游晚高峰抖动限流、多个工具各自管 Key 导致费用成了黑盒。",{"type":29,"tag":37,"props":43,"children":44},{},[45,51,53,61,63,69],{"type":29,"tag":46,"props":47,"children":48},"strong",{},[49],{"type":35,"value":50},"NexusKey",{"type":35,"value":52},"（",{"type":29,"tag":54,"props":55,"children":58},"a",{"href":23,"rel":56},[57],"nofollow",[59],{"type":35,"value":60},"nexuskey.cn",{"type":35,"value":62},"）就是冲着这三件事做的多协议 AI API 网关，配套完整使用文档（",{"type":29,"tag":54,"props":64,"children":66},{"href":24,"rel":65},[57],[67],{"type":35,"value":68},"docs.nexuskey.cn",{"type":35,"value":70},"）与公开模型广场：",{"type":29,"tag":72,"props":73,"children":74},"ul",{},[75,111,129],{"type":29,"tag":76,"props":77,"children":78},"li",{},[79,84,86,93,95,101,103,109],{"type":29,"tag":46,"props":80,"children":81},{},[82],{"type":35,"value":83},"统一协议层",{"type":35,"value":85},"：一个 Base URL 覆盖 OpenAI（",{"type":29,"tag":87,"props":88,"children":90},"code",{"className":89},[],[91],{"type":35,"value":92},"\u002Fv1\u002Fchat\u002Fcompletions",{"type":35,"value":94},"、",{"type":29,"tag":87,"props":96,"children":98},{"className":97},[],[99],{"type":35,"value":100},"\u002Fv1\u002Fresponses",{"type":35,"value":102},"）、Anthropic Messages（",{"type":29,"tag":87,"props":104,"children":106},{"className":105},[],[107],{"type":35,"value":108},"\u002Fv1\u002Fmessages",{"type":35,"value":110},"）、Gemini 原生端点以及图像\u002F视频多模态接口，开箱适配 Claude Code、Codex、Cursor 与自研 Agent。",{"type":29,"tag":76,"props":112,"children":113},{},[114,119,121,127],{"type":29,"tag":46,"props":115,"children":116},{},[117],{"type":35,"value":118},"稳定优先的路由容灾",{"type":35,"value":120},"：内置深度就绪探针（",{"type":29,"tag":87,"props":122,"children":124},{"className":123},[],[125],{"type":35,"value":126},"\u002Fhealth\u002Fready",{"type":35,"value":128},"）与多上游主备切换机制，在单通道波动或限流时平滑承接流量。",{"type":29,"tag":76,"props":130,"children":131},{},[132,137],{"type":29,"tag":46,"props":133,"children":134},{},[135],{"type":35,"value":136},"把账算明白",{"type":35,"value":138},"：采用不可变钱包账本记录每一笔消耗并支持 CSV 导出对账；公开模型广场直接展示分组倍率与折后价格，拒绝暗箱扣费。",{"type":29,"tag":30,"props":140,"children":142},{"id":141},"逻辑架构",[143],{"type":35,"value":141},{"type":29,"tag":37,"props":145,"children":146},{},[147],{"type":29,"tag":148,"props":149,"children":152},"img",{"alt":150,"src":151},"NexusKey 多协议 AI API 网关逻辑架构：调用方经 OpenAI\u002FAnthropic\u002FGemini\u002F多模态四协议入口进入网关，通过单 Key 白名单与 RPM 护栏，再由多上游路由容灾与 BYOK 引擎转发，底层落地不可变钱包账本与 24h\u002F30d 真实调用遥测","\u002Fimages\u002Fprojects\u002Fnexuskey\u002Farchitecture.svg",[],{"type":29,"tag":30,"props":154,"children":156},{"id":155},"核心工程能力",[157],{"type":35,"value":155},{"type":29,"tag":159,"props":160,"children":161},"table",{},[162,186],{"type":29,"tag":163,"props":164,"children":165},"thead",{},[166],{"type":29,"tag":167,"props":168,"children":169},"tr",{},[170,176,181],{"type":29,"tag":171,"props":172,"children":173},"th",{},[174],{"type":35,"value":175},"能力域",{"type":29,"tag":171,"props":177,"children":178},{},[179],{"type":35,"value":180},"关键实现",{"type":29,"tag":171,"props":182,"children":183},{},[184],{"type":35,"value":185},"解决的实际问题",{"type":29,"tag":187,"props":188,"children":189},"tbody",{},[190,212,233,262],{"type":29,"tag":167,"props":191,"children":192},{},[193,202,207],{"type":29,"tag":194,"props":195,"children":196},"td",{},[197],{"type":29,"tag":46,"props":198,"children":199},{},[200],{"type":35,"value":201},"单 Key 精细护栏",{"type":29,"tag":194,"props":203,"children":204},{},[205],{"type":35,"value":206},"逐 Key 配置模型白名单、RPM 限流与额度上限",{"type":29,"tag":194,"props":208,"children":209},{},[210],{"type":35,"value":211},"给测试环境、自动化脚本或团队成员发 Key 时，避免误调高价模型或死循环刷爆余额",{"type":29,"tag":167,"props":213,"children":214},{},[215,223,228],{"type":29,"tag":194,"props":216,"children":217},{},[218],{"type":29,"tag":46,"props":219,"children":220},{},[221],{"type":35,"value":222},"BYOK 混合托管",{"type":29,"tag":194,"props":224,"children":225},{},[226],{"type":35,"value":227},"支持加密托管用户自有上游凭证，主备容灾且零扣平台余额",{"type":29,"tag":194,"props":229,"children":230},{},[231],{"type":35,"value":232},"既有官方账号又有平台兜底需求时，统一收口到一个入口管理",{"type":29,"tag":167,"props":234,"children":235},{},[236,244,257],{"type":29,"tag":194,"props":237,"children":238},{},[239],{"type":29,"tag":46,"props":240,"children":241},{},[242],{"type":35,"value":243},"实时透明遥测",{"type":29,"tag":194,"props":245,"children":246},{},[247,249,255],{"type":35,"value":248},"只读统计服务（",{"type":29,"tag":87,"props":250,"children":252},{"className":251},[],[253],{"type":35,"value":254},"singleflight",{"type":35,"value":256}," + 缓存 + 查询超时）聚合 24h 分时调用、TTFT P50 与 30 天归档成功率",{"type":29,"tag":194,"props":258,"children":259},{},[260],{"type":35,"value":261},"首页与状态面板只展示真实运行态数据，无数据时诚实展示空态，不伪造 SLA 数字",{"type":29,"tag":167,"props":263,"children":264},{},[265,273,278],{"type":29,"tag":194,"props":266,"children":267},{},[268],{"type":29,"tag":46,"props":269,"children":270},{},[271],{"type":35,"value":272},"克制的运维与客服边界",{"type":29,"tag":194,"props":274,"children":275},{},[276],{"type":35,"value":277},"计费、发布排空与渠道监控保留在确定性作业层，智能客服设计坚持先过代码级凭据拦截与硬规则转人工",{"type":29,"tag":194,"props":279,"children":280},{},[281],{"type":35,"value":282},"避免让大模型越权碰账本、承诺价格或泄露敏感凭证",{"type":29,"tag":30,"props":284,"children":286},{"id":285},"技术栈",[287],{"type":35,"value":285},{"type":29,"tag":72,"props":289,"children":290},{},[291,308,318],{"type":29,"tag":76,"props":292,"children":293},{},[294,299,301,306],{"type":29,"tag":46,"props":295,"children":296},{},[297],{"type":35,"value":298},"后端",{"type":35,"value":300},"：Go + PostgreSQL + Redis，高并发流式代理（SSE）、",{"type":29,"tag":87,"props":302,"children":304},{"className":303},[],[305],{"type":35,"value":254},{"type":35,"value":307}," 防击穿聚合与发布排空护栏",{"type":29,"tag":76,"props":309,"children":310},{},[311,316],{"type":29,"tag":46,"props":312,"children":313},{},[314],{"type":35,"value":315},"前端",{"type":35,"value":317},"：Vue 3 + TypeScript + Tailwind CSS（中英双语 Editorial Tech 编辑型首页、独立模型广场与控制台）",{"type":29,"tag":76,"props":319,"children":320},{},[321,326],{"type":29,"tag":46,"props":322,"children":323},{},[324],{"type":35,"value":325},"配套工具",{"type":35,"value":327},"：独立的 Python 3 零依赖上游探测与隐式 Token 虚标审计 CLI，用于上游接入前的质量把关",{"type":29,"tag":30,"props":329,"children":331},{"id":330},"当前阶段截至-2026-年-11-月",[332],{"type":35,"value":333},"当前阶段（截至 2026 年 11 月）",{"type":29,"tag":72,"props":335,"children":336},{},[337,342],{"type":29,"tag":76,"props":338,"children":339},{},[340],{"type":35,"value":341},"已完成商业化 C1 核心闭环（深度探针、不可变账本与 CSV 对账、单 Key 护栏、BYOK 托管与容灾）与全新编辑型官网、独立模型广场改版上线。",{"type":29,"tag":76,"props":343,"children":344},{},[345,347,352,354,360],{"type":35,"value":346},"支持公网注册体验与文档自助接入：",{"type":29,"tag":54,"props":348,"children":350},{"href":23,"rel":349},[57],[351],{"type":35,"value":60},{"type":35,"value":353}," · ",{"type":29,"tag":54,"props":355,"children":357},{"href":24,"rel":356},[57],[358],{"type":35,"value":359},"使用文档",{"type":35,"value":361},"。",{"title":7,"searchDepth":363,"depth":363,"links":364},3,[365,367,368,369,370],{"id":32,"depth":366,"text":32},2,{"id":141,"depth":366,"text":141},{"id":155,"depth":366,"text":155},{"id":285,"depth":366,"text":285},{"id":330,"depth":366,"text":333},"markdown","content:projects:nexuskey.md","content","projects\u002Fnexuskey.md","projects\u002Fnexuskey","md",1796523532742]