Outcome
读完本页后,你可以判断 Nexus 是否适合你的应用,并能解释 Provider Secret、应用后端和最终用户之间的安全边界。
Nexus 面向已经拥有 OpenAI-compatible Provider 能力的 SaaS、Agent 和应用开发者。开发者把 Provider Secret 安全接入一个 Workspace,再为每名应用用户创建独立的 Access、Inference Key 和 Quota。最终用户继续使用原有 SDK,只替换 Base URL 和 Key。
What Nexus gives your application
| Need | Nexus MVP behavior |
|---|---|
| Protect upstream credentials | Provider Secret 加密保存在 Workspace 的 ProviderConnection 中,不交付给最终用户。 |
| Identify each application user | User + WorkspaceAccess 是数据面身份和授权关系。 |
| Control usage | WorkspacePlan 绑定 QuotaStrategy;QuotaPeriod 记录当前周期额度。 |
| Keep existing clients | OpenAI-compatible SDK 和 OpenCode 使用 Gateway Base URL 与 Inference Key。 |
| Explain each request | Invocation、Reservation、UsageEvent 和 Audit 通过 Request ID 关联。 |
Provider boundary
Developer Provider Secret
Written by the platform developer; never delivered to the application user.
Encrypted ProviderConnection
Stores one explicit upstream capability inside a Workspace.
Admin Plane
Application Backend
Uses a Management Key to configure resources and provision users.
Nexus Admin API
Creates User, WorkspaceAccess and QuotaPeriod.
Inference Key
Returned once and delivered to the trusted user client.
Data Plane
User SDK or Agent
Sends the Inference Key and an explicit connection UUID.
Nexus Gateway
Resolves Access and commits a Quota Reservation in PostgreSQL.
Workspace ProviderConnection
Supplies the selected Base URL and decrypted short-lived credential.
Model Provider
Receives the original provider path, model and payload.
Provider Secret 不到达最终用户;Admin Plane 管理配置与生命周期;Data Plane 只有在 PostgreSQL 中的 Access、Quota 和 Workspace-scoped ProviderConnection 校验全部成功后才调用 Provider。
The two planes
- Admin Plane:Console、Admin API 和 Management SDK 管理 Workspace、ProviderConnection、Plan、User、Access、Key、Usage 与 Audit。应用后端使用 Management Key。
- Data Plane:Gateway 接受 Inference Key 和包含
providerConnectionIdUUID 的请求。它在调用 Provider 前校验 Access 并预留 Quota。
Organization Member 是控制面关系;WorkspaceAccess 是数据面关系。任何一方都不能自动推出另一方。
What the MVP deliberately leaves outside
Nexus MVP 不替客户端选择上游连接,不改写 Provider 定义的模型名,也不在连接失败时自动切换另一条连接。它不维护模型目录、模型级收费规则或货币账户。一个请求明确选择一个 Workspace 内的 ProviderConnection,Payload 对 Nexus 保持不透明。
Choose the next page
- 想理解完整调用链路:How Nexus works。
- 想建立术语关系:Core concepts。
- 准备开始接入:Choose a quickstart。