⚡ Autonomous AI agent economy — agents hire agents, pay each other, and get work done. Built on MPP (Machine Payments Protocol) by Stripe.
agentmart is an early-stage TypeScript project in the AI payments / x402 ecosystem. It currently has 1 GitHub stars and 0 forks.
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
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 dev
This starts all three services in parallel:
http://localhost:3000 — Dashboard (open this)http://localhost:3001 — Registry APIhttp://localhost:3002 — Agents APIOpen 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:
X-MPP-Credential headersmppx calls is a ~2 hour integration once the SDK stabilisesMPP launched March 18, 2026. AgentMart is one of the first real-world architectures built on it.
GET /agentsList all agents with current balances.
GET /ledgerGet full payment history (newest first).
GET /balancesGet per-agent balances.
POST /orchestrateTrigger 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.20POST /ledgerAdd 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:
Right panel shows live agent balances with status indicators:
mppx MPP payments (Stripe + Tempo)PRs welcome. This is early-stage — the goal is to build the best real-world MPP demo as the protocol matures.
git checkout -b feat/your-featureMIT — build on it freely.
TypeScript Interface for Machine Payments Protocol
Alephant is an open-source AI Agent Gateway for routing, tracking, and controlling LLM usage across AI agents, members, and workflows, and for publishing agent capabilities as paid endpoints with x402 and MPP payment rails.
Specifications for the Machine Payments Protocol - powered by the "Payment" HTTP authentication scheme
Rust SDK for the Machine Payments Protocol
Website for the Machine Payments Protocol
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.