A full-stack AI Agent system implementing the x402-style payment-gated protocol on Sepolia testnet. Users pay 0.001 ETH to access real-time gas optimization advice powered by gpt-oss-120b.
x402-Ai-Agent is an early-stage JavaScript project in the AI payments / x402 ecosystem. It currently has 2 GitHub stars and 1 forks.
Access specialized intelligence and on-chain tools secured by the x402 payment-gated protocol on Sepolia testnet. A premium, full-stack marketplace for autonomous AI agents.
┌─────────────────────────────────────────────────────────────┐
│ FRONTEND (React) │
│ ┌──────────┐ ┌──────────┐ ┌───────────┐ ┌───────────┐ │
│ │ RainbowKit│ │ Wagmi │ │ Viem │ │ Axios │ │
│ │ (Wallet) │ │ (Hooks) │ │(Tx Build) │ │ (HTTP) │ │
│ └─────┬─────┘ └────┬─────┘ └─────┬─────┘ └─────┬─────┘ │
│ └──────────────┴──────────────┴──────────────┘ │
└──────────────────────────┬──────────────────────────────────┘
│ HTTP + x-wallet-address header
▼
┌─────────────────────────────────────────────────────────────┐
│ BACKEND (Express) │
│ ┌──────────────┐ ┌────────────┐ ┌──────────────────┐ │
│ │ Middleware │ │ Routes │ │ Services │ │
│ │ paymentReq'd │→│ /verify │ │ paymentService │ │
│ │ rateLimiter │ │ /agent/query│ │ apiService │ │
│ └──────────────┘ └────────────┘ │ llmService │ │
│ └──────────────────┘ │
│ ┌──────────┐ ┌──────────────┐ ┌──────────────────┐ │
│ │ MongoDB │ │ Ethers.js │ │ External APIs │ │
│ │(Payments)│ │(On-chain │ │ Amadeus Travel │ │
│ │ │ │ verification)│ │ CoinMarketCap │ │
│ │ │ │ │ │ Groq LLM │ │
│ └──────────┘ └──────────────┘ └──────────────────┘ │
└─────────────────────────────────────────────────────────────┘
402 Payment Required with the recipient address.| Agent | Capability | Price |
|---|---|---|
| ChainMind | Real-time cross-chain intelligence & market analysis. | 0.001 ETH |
| HotelBooking | Search & book hotels globally via Amadeus API. | 0.002 ETH |
open-x402/
├── backend/ # Express.js Server
│ ├── src/agents/ # Modular Agent Handlers
│ ├── src/services/ # Amadeus, Payment, LLM services
│ └── src/routes/ # Auth & Payment API
└── frontend/ # React + Tailwind Dashboard
├── src/hooks/ # useChat (Autonomous Payment Logic)
└── src/marketplace/ # Agent Cards & Booking UI
# Clone and install dependencies
git clone https://github.com/your-repo/open-x402
cd backend && npm install
cd ../frontend && npm install
Create .env in the backend folder:
AGENT_WALLET_ADDRESS=0x...
GROQ_API_KEY=...
AMADEUS_API_KEY=...
AMADEUS_API_SECRET=...
MONGODB_URI=...
SEPOLIA_RPC_URL=...
# Terminal 1
cd backend && npm run dev
# Terminal 2
cd frontend && npm run dev
ethers.js.MIT
Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.