Skip to main content

Agent Auth

Agent Auth 为 Agent 提供最小的身份注册、调用签名与身份验证能力。它不管理模型、提示词、工作流或业务授权。

  • verifiable-agent-auth-sdk:应用侧 SDK,Python import 为 agent_auth
  • verifiable-agent-auth-registry:单节点 SQLite 身份 Registry。

当前版本 1.1.0,支持 Python 3.11–3.14;OpenAI Agents 支持范围为 >=0.18.2,<0.19

安装

pip install "verifiable-agent-auth-sdk==1.1.0"
pip install "verifiable-agent-auth-sdk[openai]==1.1.0"  # OpenAI Agents
pip install "verifiable-agent-auth-sdk[server]==1.1.0"  # OpenAI Agents + FastAPI endpoint

基础 SDK 只有 cryptographyhttpx 两个直接依赖。

最短用法

from agent_auth import AgentAuth

async with AgentAuth() as auth:  # 读取 agent-auth.toml
    result = await auth.call("coordinator", "researcher", {"query": "分析这个问题"})

已有 OpenAI Agents 项目只需绑定身份并替换 Runner 入口:

auth = AgentAuth().bind({"coordinator": coordinator, "researcher": researcher})
async with auth:
    result = await auth.run(coordinator, "分析这个问题")

auth.run() 会认证 FunctionTool 执行事件、Agent.as_tool() 与 handoff;远程边界使用 remote_tool()endpoint()

运行模式

mode 密钥与 nonce 服务地址 用途
dev 临时内存 key/nonce 允许开发地址 无基础设施测试
local Vault + SQLite 仅 loopback 本机真实集成
production Vault + SQLite 公网 HTTPS 生产部署

安全边界

  • 所有 Agent 边界使用同一 SignedEnvelope v1,并校验 audience、timestamp、nonce 和响应关联。
  • 同进程认证不提供进程级私钥隔离;生产建议一进程一身份。
  • production 只信任中心 Registry,且不回退到任意 well-known URL。
  • capability 是经过签名的声明,不等于授权;handler 必须根据 AuthContext 决策。
  • Registry v1 是单节点、单 worker 服务,不支持 HA。

文档

License: MIT

Release files for verifiable-agent-auth-sdk 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for verifiable-agent-auth-sdk 1.1.0
File Size Uploaded
verifiable_agent_auth_sdk-1.1.0.tar.gz 41.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for verifiable-agent-auth-sdk 1.1.0
File Interpreter ABI Platform
verifiable_agent_auth_sdk-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 69.7 kB

Release files / verifiable_agent_auth_sdk-1.1.0.tar.gz

Download URL verifiable_agent_auth_sdk-1.1.0.tar.gz
Size 41.3 kB
Tags Source
SHA-256 checksum
How to use checksums
29f00ef5c0feddd591870ea45f00339669db1154abb1663f5fc8257e385ccfbe
BLAKE2b-256 checksum
How to use checksums
af63b6ecd8b8ea10cfe38bd7effa1faf8f050a87649721dcbcb83381a2225237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.

Transparency log

Release files / verifiable_agent_auth_sdk-1.1.0-py3-none-any.whl

Download URL verifiable_agent_auth_sdk-1.1.0-py3-none-any.whl
Size 28.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46a2013348572528768b0ef77b6eb2eee8939f1732bcfaae3e050a4ddb288703
BLAKE2b-256 checksum
How to use checksums
b68b418f765f2dbe35d805d2fd6c18c2e037571b73ed79aadb99b8e17c7129a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page