
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@yault/aesp
Advanced tools
Agent Economic Sovereignty Protocol — defining how AI agents operate economically under human sovereignty
Defining how AI agents operate economically under human sovereignty.
AESP is a TypeScript SDK and MCP integration layer for agent payments under explicit human control. It is designed so that agents can execute economic actions while humans retain full economic sovereignty.
Core principles:
npm install @yault/aesp
Requires Node.js >= 18.
The package includes a yault-mcp binary that connects to a Yault backend and exposes vault operations as MCP tools, compatible with Claude Desktop, Claude Code, and any MCP-compliant client.
export YAULT_API_URL="https://api.yault.io"
export YAULT_API_KEY="sk-yault-..."
yault-mcp
Or with npx:
YAULT_API_URL="https://api.yault.io" YAULT_API_KEY="sk-yault-..." npx @yault/aesp
import { PolicyEngine } from '@yault/aesp/policy';
import { getAllMCPTools } from '@yault/aesp/mcp';
import { NegotiationStateMachine } from '@yault/aesp/negotiation';
const engine = new PolicyEngine(storageAdapter);
await engine.load();
const tools = getAllMCPTools(); // 6 MCP tool definitions
AESP is organized into subpath exports so you can import only what you need:
| Subpath | Description |
|---|---|
@yault/aesp | Unified re-export of all modules |
@yault/aesp/types | Shared type definitions (AgentExecutionRequest, TransferPayload, ChainId, etc.) |
@yault/aesp/policy | Policy engine with 8-check evaluation, budget tracking, and policy change classification |
@yault/aesp/identity | Agent identity derivation, certificate creation, and hierarchy management |
@yault/aesp/negotiation | Offer/counter-offer state machine with session management |
@yault/aesp/commitment | EIP-712 structured commitment builder for dual-signed agreements |
@yault/aesp/review | Human-in-the-loop review queue with freeze/unfreeze controls |
@yault/aesp/mcp | MCP tool definitions, argument validation, and server router |
@yault/aesp/a2a | Agent-card builder for cross-agent discovery (A2A protocol) |
@yault/aesp/crypto | Cryptographic helpers: signing, encryption, hashing, ZK proof bridge |
@yault/aesp/privacy | Context tagging, ephemeral address pools, and consolidation scheduling |
The stdio server exposes 6 backend-connected tools:
| Tool | Method + Endpoint | Purpose |
|---|---|---|
yault_check_balance | GET /api/vault/balance/:address | Read a wallet vault balance |
yault_deposit | POST /api/vault/deposit | Deposit underlying into vault |
yault_redeem | POST /api/vault/redeem | Redeem vault shares |
yault_transfer | POST /api/vault/transfer | Transfer vault allocation (parent to sub-account) |
yault_check_authorization | GET /api/vault/agent-authorization | Read operator/allowance status |
yault_get_balances | GET /api/vault/balances/:address | Read multi-balance breakdown |
The MCP server is a thin API client. It expects a Yault backend providing:
GET /api/vault/balance/:addressGET /api/vault/balances/:addressGET /api/vault/agent-authorizationPOST /api/vault/deposit -- { address, amount }POST /api/vault/redeem -- { address, shares }POST /api/vault/transfer -- { from_address, to_address, amount, currency? }Authentication: Authorization: Bearer sk-yault-* via YAULT_API_KEY env variable.
AESP is built around "bounded autonomy":
For vulnerability reporting, see SECURITY.md.
| Package | Description |
|---|---|
@yault/elizaos-plugin-aesp | ElizaOS plugin wrapping AESP for agent frameworks |
Run tests:
npm test
Build TypeScript:
npm run build:ts
Build with WASM (requires acegf-wallet as a sibling repo, or set ACEGF_ROOT):
npm run build:wasm
npm run build:ts
See CONTRIBUTING.md for the full development guide.
This project is licensed under the Apache License 2.0. See LICENSE for the full text.
FAQs
Agent Economic Sovereignty Protocol — defining how AI agents operate economically under human sovereignty
The npm package @yault/aesp receives a total of 13 weekly downloads. As such, @yault/aesp popularity was classified as not popular.
We found that @yault/aesp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.