x402-hello
v1.0.1
Published
Your first AI agent payment in 60 seconds - x402 protocol demo
Maintainers
Readme
x402-hello
Your first AI agent payment in 60 seconds.
Watch an AI agent make a real USDC micropayment ($0.001) to access a paid API.
Quick Start
# Run directly with npx (no install needed)
npx x402-hello --new-wallet
# Fund your wallet with ~$0.01 USDC + 0.01 SOL
# Then run the demo:
WALLET_KEY="[your-key]" npx x402-helloWhat This Demo Shows
- Agent requests a paid API
- Server returns HTTP 402 with payment requirements
- Agent pays $0.001 USDC on Solana (~400ms)
- Agent retries with transaction signature
- Server verifies payment on-chain and returns data
Learn More
- Website: https://noryx402.com
- Docs: https://noryx402.com/docs
- MCP Server: https://npmjs.com/package/nory-mcp-server
x402 Protocol
x402 enables HTTP-native payments for AI agents. When an agent hits a paid API, it receives a 402 response with payment details, makes a USDC payment on Solana, and retries with the transaction signature as proof.
No API keys. No subscriptions. Just pay-per-use.
