An autonomous AI agent economy — agents hire agents, pay each other, and get work done.
Built on top of the Machine Payments Protocol (MPP) by Stripe.
AgentMart is a proof-of-concept autonomous agent economy. You submit a task, and a Master Orchestrator agent breaks it down and autonomously hires specialist agents — paying each one for their work via a real-time payment ledger.
Every transaction is logged. Every balance tracked. No human approval needed between steps.
User submits task
│
▼
Master Orchestrator ($1.00 received)
│
├──► Web Research Agent ($0.30 paid)
├──► AI Analysis Agent ($0.50 paid)
└──► Report Generator ($0.20 paid)
│
▼
Final Report
AgentMart is a monorepo with three services:
| Service | Port | Description |
|---|---|---|
registry/ |
3001 | Agent registry + SQLite ledger + Master Orchestrator |
agents/ |
3002 | Specialist agents (research, analysis, report) |
dashboard/ |
3000 | Live Next.js dashboard with real-time payment feed |
agentmart/
├── registry/ # Express + SQLite — agent registry, ledger, orchestration
├── agents/ # Express — specialist agent endpoints
├── dashboard/ # Next.js — live dark-theme dashboard
└── package.json # Root workspace scripts
- Node.js 18+
- npm 9+
git clone https://github.com/teckedd-code2save/agentmart.git
cd agentmart
npm install
cd registry && npm install && cd ..
cd agents && npm install && cd ..
cd dashboard && npm install && cd ..npm run devThis starts all three services in parallel:
http://localhost:3000— Dashboard (open this)http://localhost:3001— Registry APIhttp://localhost:3002— Agents API
Open http://localhost:3000, type a task like:
"Analyze Notion's competitors and market positioning"
Watch the payment ledger light up in real time as agents hire each other.
Every agent-to-agent payment is logged with:
| Field | Description |
|---|---|
from_agent |
Who paid |
to_agent |
Who received |
amount_usd |
Amount in USD |
reason |
Human-readable description |
status |
paid / pending / failed |
balance_after |
Receiver's balance after transaction |
All agents start with a $5.00 balance.
| Agent | Price/call | Role |
|---|---|---|
master-orchestrator |
$0.00 | Breaks down tasks, hires specialists |
web-research-agent |
$0.30 | Fetches and summarizes research |
ai-analysis-agent |
$0.50 | Runs deep analysis on data |
report-generator-agent |
$0.20 | Formats the final markdown report |
AgentMart is architected for MPP — the open protocol for machine-to-machine payments by Stripe. Currently, payments are simulated (stubs) while the mppx SDK matures. The architecture is fully MPP-ready:
- Each agent validates
X-MPP-Credentialheaders - The ledger mirrors MPP's Challenge → Credential → Receipt flow
- Swapping stubs for real
mppxcalls is a ~2 hour integration once the SDK stabilises
MPP launched March 18, 2026. AgentMart is one of the first real-world architectures built on it.
List all agents with current balances.
Get full payment history (newest first).
Get per-agent balances.
Trigger the full multi-agent pipeline.
// Request
{ "task": "Analyze Notion's competitors" }
// Response
{
"report": "# AgentMart Report\n\n...",
"ledger_entries": [ ... ]
}Pipeline:
user → master-orchestrator— $1.00 task feemaster-orchestrator → web-research-agent— $0.30master-orchestrator → ai-analysis-agent— $0.50master-orchestrator → report-generator-agent— $0.20
Add a ledger entry manually.
{
"from_agent": "master-orchestrator",
"to_agent": "web-research-agent",
"amount_usd": 0.30,
"reason": "Research task",
"status": "paid"
}All routes accept X-Agent-ID and X-MPP-Credential headers.
| Route | Body | Returns |
|---|---|---|
POST /research |
{ query } |
Research findings |
POST /analysis |
{ data } |
AI analysis |
POST /report |
{ analysis } |
Formatted markdown report |
The dashboard polls /ledger every 2 seconds and renders a live feed:
- 💸 Paid — agent sent payment
- ✅ Received — agent got paid
- ⏳ Pending — in-flight
- ❌ Failed — insufficient balance
Right panel shows live agent balances with status indicators:
- 🟢 Green — balance > $2.00
- 🟡 Yellow — $1.00–$2.00
- 🔴 Red — below $1.00
- Wire in real
mppxMPP payments (Stripe + Tempo) - Add more specialist agents (image gen, code execution, data viz)
- Agent registration UI — let anyone add their agent to the marketplace
- Balance top-up via Stripe Checkout
- Agent reputation scores based on task history
- WebSocket live ledger (replace polling)
- Deploy to Railway / Vercel one-click button
PRs welcome. This is early-stage — the goal is to build the best real-world MPP demo as the protocol matures.
- Fork the repo
- Create a branch:
git checkout -b feat/your-feature - Commit and push
- Open a PR
MIT — build on it freely.