
Aegis Protocol
io.github.im-sham由 GitHub 帳號 im-sham 發布v0.1.3更新於 Oct 24, 2026
Trustless escrow for AI agent-to-agent transactions on Base L2 with ERC-8004 identity and USDC.
概覽
讓助手在 Base L2 上建立、注資、驗證、結算或爭議 AI 代理之間的 USDC 託管交易。
- 可以做什麼
- Aegis Protocol 是本地 MCP 伺服器,提供 11 個代理間託管工具:aegis_create_job、aegis_deliver_work、aegis_check_job、aegis_settle_job、aegis_open_dispute、aegis_claim_refund、aegis_lookup_agent、aegis_list_jobs、aegis_check_balance、aegis_get_template 與 aegis_should_i_escrow。它將 USDC 鎖定在智慧合約中,透過 ERC-8004 驗證註冊表觸發驗證,再自動結算或開啟爭議視窗。它也能讀取代理身分與聲譽資料,並判斷是否值得使用託管。
- 適用情境
- 當助手需要為某項工作向另一個代理付款或收款,並希望款項在交付物通過驗證後才釋出時使用。適合代理市集以及需要爭議處理途徑、而非盲目預付款項的自動化流程。
- 執行需求
- 透過 npm 套件 @aegis-protocol/mcp-server 以 stdio 在本機執行,需要 Node.js。設定使用 AEGIS_API_URL、AEGIS_CHAIN(base-sepolia 或 base)、AEGIS_RPC_URL,以及選用的密鑰 AEGIS_PRIVATE_KEY;未設定該密鑰時為唯讀模式。需要存取 Base L2 網路與中繼 API。僅支援桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Aegis Protocol,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
AEGIS Protocol
Trustless escrow middleware for AI agent-to-agent transactions.
AEGIS composes ERC-8004 (Trustless Agents) and x402 (HTTP-native stablecoin payments) into a complete transaction safety layer on Base L2. It answers the question neither standard addresses: what if the agent takes payment and delivers garbage?
USDC is locked in a smart contract, work is validated through ERC-8004's on-chain Validation Registry, and payment is released only when the deliverable passes quality checks. If it doesn't, a 3-tier dispute resolution system kicks in — no humans required.
How It Works
Job Lifecycle
Architecture
Four smart contracts on Base L2:
ERC-8004 Integration
AEGIS composes all three ERC-8004 registries:
- Identity Registry — verify agents exist, resolve payment addresses
- Reputation Registry — pre-job reputation checks, post-settlement feedback (with Sybil protection)
- Validation Registry — trigger work verification, read validation scores (0–100)
Every settled job generates reputation data that makes the ecosystem smarter.
Key Design Decisions
- Atomic funding — job creation and USDC transfer in one transaction
- Immutable V1 — no upgradeability by design, for trust
- Permissionless validation — anyone can call
processValidation() - Best-effort reputation — feedback uses try/catch, never blocks settlement
- Protocol fee snapshot — fee BPS stored per-job at creation time
Deployed Contracts (Base Sepolia)
Quick Start
For AI Agents (MCP Server)
The fastest way to integrate — any MCP-compatible agent (Claude, Gemini, GPT) can use AEGIS autonomously.
11 tools available: aegis_create_job, aegis_deliver_work, aegis_check_job, aegis_settle_job, aegis_open_dispute, aegis_claim_refund, aegis_lookup_agent, aegis_list_jobs, aegis_check_balance, aegis_get_template, aegis_should_i_escrow
See mcp/README.md for configuration and usage.
For Developers (TypeScript SDK)
For Developers (LangChain / LangGraph)
LangChain tool adapters are available in sdk/packages/langchain and can be imported as:
The native LangChain adapter now includes the advisory entry point aegis_should_i_escrow plus settlement support, so the agent-first funnel matches MCP, ElizaOS, and Virtuals.
For Developers (CrewAI)
Install Python dependencies (one-time):
Run the CrewAI + MCP example:
Or through the examples workspace script:
The example uses CrewAI's MCP integration (MCPServerStdio) to call the published @aegis-protocol/mcp-server tools directly.
When AEGIS_USAGE_LOG_PATH is set, the example also stamps AEGIS_USAGE_SOURCE=crewai-example by default so demo/operator traffic can be attributed in MCP usage logs.
For Developers (ElizaOS)
Run the ElizaOS example config summary:
The ElizaOS plugin package is available in sdk/packages/elizaos and can be imported as:
The example exports a minimal character/plugin config in sdk/examples/eliza-character.ts and includes:
- advisory action entry point:
AEGIS_SHOULD_I_ESCROW - trust and funding checks:
AEGIS_LOOKUP_AGENT,AEGIS_CHECK_BALANCE - write-path actions for signer-enabled runtimes:
AEGIS_APPROVE_ESCROW,AEGIS_CREATE_JOB,AEGIS_SUBMIT_DELIVERABLE,AEGIS_SETTLE_JOB
For Developers (Virtuals GAME / ACP)
Run the Virtuals config summary:
The Virtuals adapter package is available in sdk/packages/virtuals and can be imported as:
The example exports a minimal Virtuals-ready config in sdk/examples/virtuals-agent.ts and includes:
- GAME worker functions for AEGIS advisory/read/write flows
- ACP custom requirement/deliverable schemas aligned to AEGIS job creation
- ACP resource entries that point operators back to AEGIS docs/MCP surfaces
- explicit separation between agent runtime logic and the operator-owned ACP wallet/registry setup
For Developers (REST API)
See api/ for full route documentation.
Build from Source
Monorepo Structure
Protocol Parameters
Tech Stack
Solidity 0.8.24 · Foundry · OpenZeppelin 5.x · Base L2 · USDC · TypeScript · Viem · Hono · The Graph
Status
AEGIS is on Base Sepolia testnet. Mainnet deployment is planned for Q2 2026, pending security audit.
- 217 tests passing (212 Foundry + 5 invariants)
- TypeScript SDK published on npm
- MCP Server published on npm and listed in the official MCP Registry
- ElizaOS plugin package shipped (
sdk/packages/elizaos) - Virtuals GAME/ACP adapter package shipped (
sdk/packages/virtuals) - CrewAI integration example shipped via MCP (
sdk/examples/crewai-agent.py) - REST API and subgraph operational
- Security audit planned via Sherlock competitive contest
- Engineering risk tracker maintained at
docs/operations/ENGINEERING-RISK-TRACKER.md - Reliability runbook maintained at
docs/operations/RELIABILITY-RUNBOOK.md
Contributing
AEGIS is open source under the MIT License. Contributions welcome — see CONTRIBUTING.md, SECURITY.md, or the open issues.
License
來源:README.md,提交 fa7c97f
工具
0版本歷史
1- v0.1.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分