agent-receipts/ar
GitHub: agent-receipts/ar
为 AI 代理操作提供密码学签名、防篡改的可审计收据协议与多语言 SDK,解决代理行为不可追溯、不可验证的信任问题。
Stars: 2 | Forks: 0
# Agent Receipts
**为 AI 代理操作提供密码学签名的审计跟踪**
[](https://github.com/agent-receipts/ar/actions/workflows/sdk-go.yml)
[](https://github.com/agent-receipts/ar/actions/workflows/sdk-ts.yml)
[](https://github.com/agent-receipts/ar/actions/workflows/sdk-py.yml)
[](LICENSE)
## 这是什么?
Agent Receipts 是一个开放协议和 SDK 集合,用于生成带有密码学签名、防篡改的 AI 代理操作记录。代理执行的每个操作——API 调用、工具使用、数据访问——都会获得一个可在日后审计的可验证收据。
## 快速开始
### Go
```
go get github.com/agent-receipts/ar/sdk/go
```
```
import receipt "github.com/agent-receipts/ar/sdk/go/receipt"
r, _ := receipt.New(receipt.WithAction("tool_call", payload))
signed, _ := r.Sign(privateKey)
```
### TypeScript
```
npm install @agent-receipts/sdk-ts
```
```
import { Receipt } from "@agent-receipts/sdk-ts";
const receipt = await Receipt.create({ action: "tool_call", payload });
const signed = await receipt.sign(privateKey);
```
### Python
```
pip install agent-receipts
```
```
from agent_receipts import Receipt
receipt = Receipt.create(action="tool_call", payload=payload)
signed = receipt.sign(private_key)
```
## 项目结构
| 目录 | 描述 |
|-----------|-------------|
| [`spec/`](spec/) | 协议规范,JSON schemas,治理 |
| [`sdk/go/`](sdk/go/) | Go SDK |
| [`sdk/ts/`](sdk/ts/) | TypeScript SDK |
| [`sdk/py/`](sdk/py/) | Python SDK |
| [`mcp-proxy/`](mcp-proxy/) | 带有收据签名、策略引擎、意图跟踪的 MCP 代理 |
| [`cross-sdk-tests/`](cross-sdk-tests/) | 跨语言验证测试 |
## 集成
| 项目 | 描述 |
|---------|-------------|
| [openclaw](https://github.com/agent-receipts/openclaw) | 用于 OpenClaw 的 Agent Receipts 插件 |
## 贡献
有关开发设置和 PR 指南,请参阅 [CONTRIBUTING.md](CONTRIBUTING.md)。
## 安全
要报告漏洞,请参阅 [SECURITY.md](SECURITY.md)。
## 许可证
Apache License 2.0 -- 详见 [LICENSE](LICENSE)。
`spec/` 中的协议规范采用 MIT 许可证授权。
标签:Agent Receipts, AI安全, AI智能体, AI治理, API调用审计, Chat Copilot, CVE, EVTX分析, Go SDK, JSON Schema, MCP Proxy, MCP代理, Python SDK, TypeScript SDK, 协议规范, 可验证凭证, 威胁情报, 安全合规, 审计追踪, 密码学签名, 密钥签名, 工具调用监控, 开发者工具, 开源协议, 数字签名, 数据访问审计, 日志审计, 模型上下文协议, 网络代理, 逆向工具, 链式记录, 防篡改记录