跳转到内容
EN

Vault API

(待译)

Vault stores write-only credentials through /vault/v1, with a compatibility face at /anthropic/v1/vaults. Concepts and behavior follow Anthropic vaults (credential collections, write-only values, rotation and archival), so Anthropic experience applies. Differences: native secrets use names and static/oauth kinds; native OAuth uses authorizations, while compatible mcp_oauth creation and updates return 501; native allowed_hosts may be omitted and then stays an empty list, which no destination matches at redemption, while Anthropic credentials still require nonempty allowed_hosts. allowed_hosts is validated when the secret is written, enforced when the vault hands a value to a destination host, and applied by MCP credential matching, where a *. entry covers subdomains and never the apex; a service agent’s session environment carries no credential that declares hosts and no OAuth token; by-name plaintext resolution still returns a value without checking a destination host (open gap tracked in #3294). A session carries the vaults of its agent plus its own vault_ids (at most 50 together, owned by the organization and not archived); the agent’s vaults come from vault_ids on agents.create or agents.update, which a department or organization rule’s grants also write, and sessions.create or sessions.update add or replace the session’s own. Deployments take vault_ids too. The credentials are matched against the session’s MCP servers, so vault-backed MCP authentication works, and the secrets of those vaults reach the session’s machine as environment variables named after the secret, with their real values, in every command it runs, for every agent kind; a name that is not a shell variable name, an empty value and the names the platform login owns are left out, and a service agent’s session also leaves out OAuth credentials and secrets that declare allowed_hosts. allowed_hosts does not limit what a command does with an exported value; there is no egress substitution (ADR-058 §6 is suspended). The environment is read when a command first runs and kept for that machine and vault set, so a secret added or rotated later shows after the machine restarts or the vault set changes. Application vault references return 501, including praxis_vault_ref bindings and secret writes with a vault source. Metadata labels do not attach credentials to either resource. Start with praxis.vault.vaults.create to create the containing vault.

用 API Key 作为 Bearer 凭据,通过以下地址管理库与 Secret。Secret 的值只写,任何接口都不会返回。

https://api.deepraxis.com/vault/v1

指南 →

资源 路径
库 /vault/v1/vaults
Secret /vault/v1/vaults/{vault_id}/secrets
模板 /vault/v1/templates
一键授权 /vault/v1/authorizations

Secret 可以用名字或 vsec_ 开头的 ID 寻址。列表用 cursor 与 limit 翻页(limit 默认 50,最大 200),返回的 next_cursor 为 null 表示没有后续页。

同一批库也可以通过 Claude 托管智能体的凭据库接口访问:Claude 托管智能体

错误码