Skip to main content

Agent Auth

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

两个发行包:

  • verifiable-agent-auth-sdk:应用侧认证,Python import 为 agent_auth
  • verifiable-agent-auth-registry:单节点 SQLite 中心 Registry。

当前正式版为 1.0.0,支持 Python 3.11–3.14 和 openai-agents>=0.18.2,<0.19

安装

pip install "verifiable-agent-auth-sdk[openai]==1.0.0"
# 提供远程 FastAPI endpoint:
pip install "verifiable-agent-auth-sdk[server]==1.0.0"

基础 SDK 只有 cryptographyhttpx 两个直接依赖。生产 Vault Transit 通过 httpx 直接访问。

三分钟本地接入

agent-auth init
agent-auth check
from agent_auth import AgentAuth

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

auth.run() 自动认证普通 FunctionTool、Agent.as_tool() 和 handoff。dev 模式使用临时内存 key;production 使用固定版本 Vault key。

远程 Agent:

research_tool = auth.remote_tool(
    "researcher",
    input_type=ResearchRequest,
    output_type=ResearchResult,
)
@auth.endpoint("/invoke", identity="researcher", request=ResearchRequest, response=ResearchResult)
async def invoke(ctx, request):
    return ResearchResult(summary=f"request from {ctx.sender}")

app.include_router(auth.router)

安全边界

  • 本地和远程 Agent 调用使用同一种 SignedEnvelope,并执行请求与结果签名验签。
  • 同进程认证不提供私钥或代码隔离;同一进程能访问它加载的全部 Vault token。
  • production 只从中心 Registry 解析身份,不回退到 Agent 声明的任意 URL。
  • Registry namespace 由管理员分配;v1 不实现 DNS challenge。
  • capability 是签名声明,不等于业务授权。handler 使用 AuthContext 自行授权。
  • Registry 和 SDK production state 均为单节点 SQLite,不宣称 HA。

文档

License: MIT

Release files for verifiable-agent-auth-sdk 1.0.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.0.0
File Size Uploaded
verifiable_agent_auth_sdk-1.0.0.tar.gz 36.9 kB Details

Built distribution (wheel)

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

Total release size: 64.2 kB

Release files / verifiable_agent_auth_sdk-1.0.0.tar.gz

Download URL verifiable_agent_auth_sdk-1.0.0.tar.gz
Size 36.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2ee7854f09a99b7127a8969830baf4f3a5e214c3828ac6f01b896ed27203e84c
BLAKE2b-256 checksum
How to use checksums
b8c30f03f78b79fb701dddc12f7ed35bf46422d95ca6854543c10661cad45858
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 15, 2026.

Transparency log

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

Download URL verifiable_agent_auth_sdk-1.0.0-py3-none-any.whl
Size 27.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d1a3e5e3899cce0c680fe7640578da99cd71a0ed31d04193f241fde4f91dfa7
BLAKE2b-256 checksum
How to use checksums
a6495de276333507cc4cc8af096edaef3cbfcd12ab06333572cc38edf74b5d62
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 15, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.0

2 release files

This release

1.0.0 This release

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