Prerequisites
Node.js ≥ 18
JavaScript runtime
pnpm
Workspace-aware package manager
- Rust / Cargo — required only for Kora gasless relay
- Docker — required only for containerized deployment
Installation
1
Clone the repository
2
Install dependencies
3
Build the workspace
wallet-core → cli → mcp-server → sdk.4
Configure environment variables
.env with your values:.env
.env.guide.md in the repo root.5
Secure your master wallet (recommended)
The master wallet automatically funds new agent wallets. Import securely:
- Set
MASTER_WALLET_SECRET_KEYin.envwith your base58 private key. - Run
pnpm key:import— the key is encrypted with AES-256-GCM and saved to~/.agent-economy-wallet/keys/. - Remove
MASTER_WALLET_SECRET_KEYfrom.env. - Set
MASTER_WALLET_KEY_LABEL=master-funderin.env. - Clear your shell history (
history -c && history -won bash).
6
Start the server
- MCP transport on
stdio— for Claude Desktop, Cursor, VS Code - Express API on
http://localhost:3000— for HTTP clients and merchant endpoints
Connect an MCP Client
Point your AI client at the built MCP server. For Claude Desktop, update your config:Next Steps
I want to sell services
Set up x402 paywalls, publish your manifest, and register on-chain.
I want to buy services
Discover merchants, evaluate trust, and pay autonomously.
Run the demo
22 copy-paste prompts to exercise every capability of the system.
Use the SDK in your app
Install from npm and embed Yanga Market into your own Node.js app.