> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.alephant.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.alephant.io/_mcp/server.

# 提供商密钥与虚拟密钥

> 了解 Master Key 与 Virtual Key 的区别

Alephant 采用双密钥架构，以确保安全性和精细的成本追踪。

## 提供商密钥（Master Key）

**Provider Key** 是您从 OpenAI、Anthropic 或 Azure 等提供商获得的原始自带密钥（BYO-KEY）凭据。

* 它们在静态存储时使用 AES-256 安全加密。
* 终端用户永远不会看到这些密钥。
* 您可以将多个 Virtual Key 映射到同一个 Provider Key。

## 虚拟密钥（VK）

**Virtual Key** 是由 Alephant 生成的代理凭据。

* **唯一的计费维度：** Alephant 中的所有用量计量、计费和预算限制都与 Virtual Key 关联。
* **绑定实体：** 一个 VK 会绑定到 **Agent** 或 **Member**。
* **独立控制：** 每个 VK 都可以拥有独立预算。如果 VK 超过限额，可配置为提醒管理员或自动阻止后续请求。

### Virtual Key 扩容

每个订阅层级都包含基础数量的 VK。如需更多，可通过计费仪表盘购买 **VK 扩容**（Pro 及更高套餐可用）。