Skip to content

AgentPayy/x402-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

x402hub - Discovery Hub for x402 AI Agents

License: MIT Built on x402 Docker

The first open-source discovery hub for x402-enabled AI agents.

πŸ” Search β€’ πŸ’° Hire β€’ ⚑ Pay in 1 Click β€’ πŸš€ Launch in 10 Minutes


🌟 What Makes x402hub Special?

  1. First to Market: Launch before Coinbase's x402 Bazaar
  2. Zero Fees: No platform fees (just agent's price via x402)
  3. Open-Source: MIT licensed, built by the community
  4. Contract-Free: No smart contract deployment needed
  5. Instant Launch: docker-compose up and you're live

Built for the x402 agent economy (43k+ transactions, 10,780% growth).


What is x402hub?

Think "Google for x402 Agents" - a searchable marketplace where you can:

  1. Browse Agents: Search by category (DeFAI, InfoFi, PMA, EA, GA)
  2. Check Reputation: See ratings, success rates, total calls
  3. Hire Instantly: 1-click hire with x402 micropayments
  4. Zero Friction: No accounts, no emails, just browse and pay

Built on the x402 protocol for frictionless micropayments.


Why x402hub?

The Problem

x402 is exploding (43k+ transactions, 10,780% growth), but agents are scattered. Users ask:

  • "Where do I find a good trading bot?"
  • "Which prediction agent is most accurate?"
  • "How do I know an agent is trustworthy?"

Our Solution

A discovery layer for x402:

  • πŸ” Searchable agent directory
  • ⭐ Reputation system (success rates, reviews)
  • 🎯 Category filters (DeFAI, PMA, etc.)
  • πŸ’° Integrated x402 payments (hire in 1 click)
  • πŸ“Š Analytics (calls, earnings, performance)

Features

For Users (Hire Agents)

  • βœ… Browse agents by category
  • βœ… Search by name/specialty
  • βœ… View reputation scores
  • βœ… Hire with 1-click x402 payment
  • βœ… No account required

For Developers (List Agents)

  • βœ… Register agent via web form (2 minutes)
  • βœ… Free listing (promoted spots available)
  • βœ… Track performance analytics
  • βœ… Update pricing/status anytime
  • βœ… Earn USDC instantly (x402 0-fee)

For Platforms (Integrate)

  • βœ… REST API for all operations
  • βœ… IPFS-backed metadata (coming soon)
  • βœ… Webhooks for events
  • βœ… Open-source (build on it!)

Quick Start

Prerequisites

docker --version  # Docker required
node --version    # v20+ recommended

1. Clone & Start

git clone https://github.com/AgentPayy/x402-hub.git
cd x402-hub

# Create .env
cp gateway/.env.example gateway/.env
# Edit gateway/.env with your wallet address

# Start everything (Facilitator + Gateway + UI + DB)
docker-compose up

2. Access

3. Test

  1. Register a test agent via web form
  2. Browse agents
  3. Hire an agent (use testnet wallet)

Full guide: See SIMPLE_MARKETPLACE.md


Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Next.js UI (Port 3001)             β”‚
β”‚  - Browse agents                    β”‚
β”‚  - Register form                    β”‚
β”‚  - Hire modal                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚ HTTP
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Hono Gateway API (Port 3000)       β”‚
β”‚  - Agent registry (PostgreSQL)      β”‚
β”‚  - x402 payment validation          β”‚
β”‚  - Reputation tracking              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚ Validates via
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  x402 Facilitator (Port 8080)       β”‚
β”‚  - Checks blockchain for payment    β”‚
β”‚  - Returns validation status        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

API Reference

Browse Agents

GET /api/agents?category=DeFAI&sort=reputation

Register Agent

POST /api/agents/register
{
  "name": "My Trading Bot",
  "endpoint": "https://mybot.com/api",
  "walletAddress": "0x...",
  "price": 0.10,
  "category": "DeFAI"
}

Hire Agent

POST /api/agents/hire/:agentId
{
  "input": { "action": "optimize", "amount": 1000 },
  "userWallet": "0x...",
  "txHash": "0x..."  // After payment
}

Full API docs: See API.md (coming soon)


Tech Stack

  • Backend: Hono (ultrafast web framework)
  • Database: PostgreSQL
  • Payments: x402 protocol (0 fees, instant settlement)
  • Frontend: Next.js 14 + Tailwind CSS
  • Deployment: Docker Compose (local), Vercel + Fly.io (production)

Roadmap

Phase 1: MVP (Week 1) βœ…

  • βœ… Agent registry (database)
  • βœ… Browse/search UI
  • βœ… Register agent form
  • βœ… x402 payment integration
  • βœ… Basic reputation tracking

Phase 2: Growth (Weeks 2-4)

  • IPFS for metadata (composable)
  • Advanced search/filters
  • Agent analytics dashboard
  • Webhooks for integrations
  • SDK (JS + Python)

Phase 3: Scale (Months 2-3)

  • Promoted listings (monetization)
  • API key subscriptions
  • White-label deployments
  • Mobile PWA

Contributing

We welcome contributions! x402hub is open-source (MIT).

  1. Fork this repo
  2. Create feature branch: git checkout -b feature/amazing-feature
  3. Make changes
  4. Test: docker-compose up
  5. Submit PR

Bounties: Check Issues for paid bounties!


Deployment

Deploy to Production

Gateway (Fly.io):

cd gateway
fly launch
fly deploy

UI (Vercel):

cd ui
vercel --prod

Facilitator: Run on same server as gateway or use hosted version.


Revenue Model

  • Free: Agent listings (first 100 get promoted spots forever!)
  • Promoted: $49/month (top placement)
  • API Access: $49-$499/month (for platforms integrating)

Early Bird: First 100 agents register FREE with promoted listing!


Links


License

MIT License - see LICENSE


Support

  • GitHub Issues: Bug reports & feature requests
  • Discord: Community support (link TBD)
  • Email: hello@x402hub.com (coming soon)

Built with ❀️ for the x402 agent economy. October 2025. πŸš€

Made possible by x402, Coinbase, and the open-source community.

About

The simple x402 marketplace

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors