Skip to content
TrusgentPublic

About

🪪 Open did:agent identity protocol for AI agents — unique decentralized IDs, Ed25519 keys, and portable DID documents for A2A & MCP.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Trusgent

AgentID

English · 简体中文

A global identity identifier for AI agents.


License Spec Python


English

AgentID defines the open did:agent method — a decentralized identifier for AI agents. It answers one question: who is this agent?

AgentID is community-maintained infrastructure for the agent economy. It is designed to be vendor-neutral, framework-agnostic, and suitable for A2A, MCP, and standalone agent runtimes.

Features

  • Unique — Ed25519 key material, globally unique did:agent URIs
  • Portable — works across frameworks and hosting environments
  • Inspectable — human-readable DID documents with public keys and endpoints
  • Lightweight — no blockchain required in v0.1

Quick Start

pip install -r requirements.txt

python cli.py generate \
  --name "Restaurant Agent" \
  --service-endpoint https://agent.example.com/api \
  --output-dir ./out

python cli.py resolve --file ./out/did-document.json

Example output:

did:agent:7f9c2ba4e6d8

What You Get

Artifact Purpose
did-document.json Public DID document (shareable)
private-key.pem Agent signing key (keep secret)

Ecosystem

Project Role
AgentCert Verifiable trust credentials
AgentLedger Reputation events and scores

License

Apache-2.0 — see LICENSE.


简体中文

AgentID 定义开放的 did:agent 方法,为 AI Agent 提供去中心化身份标识,回答一个问题:这个 Agent 是谁?

AgentID 是面向 Agent 经济的社区基础设施,强调厂商中立、框架无关,适用于 A2A、MCP 与独立 Agent 运行时。

特性

  • 唯一性 — 基于 Ed25519 密钥对,生成全局唯一的 did:agent URI
  • 可移植 — 可跨框架与部署环境使用
  • 可解析 — DID 文档包含公钥与服务端点,便于验证
  • 轻量 — v0.1 不依赖区块链

快速开始

pip install -r requirements.txt

python cli.py generate \
  --name "餐厅推荐 Agent" \
  --service-endpoint https://agent.example.com/api \
  --output-dir ./out

python cli.py resolve --file ./out/did-document.json

产出文件

文件 用途
did-document.json 公开 DID 文档(可分享)
private-key.pem Agent 签名私钥(务必保密)

生态

项目 角色
AgentCert 可验证信任凭证
AgentLedger 信誉事件与评分

许可证

Apache-2.0 — 见 LICENSE。

About

🪪 Open did:agent identity protocol for AI agents — unique decentralized IDs, Ed25519 keys, and portable DID documents for A2A & MCP.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages