Demo for AI Agent Micropayments Using x402 and Solana

The x402-hello demo provides a hands-on illustration of how AI agents can autonomously handle micropayments for API access. This is achieved using HTTP 402 (Payment Required) responses and transactions on the Solana blockchain.
Key Details
To try out the demo, use the following commands:
npx x402-hello --new-walletThis initializes a new wallet that you can fund with approximately $0.01 USDC and 0.01 SOL. After funding your wallet, execute:
WALLET_KEY="[...]" npx x402-helloHere's how the process works:
- The AI agent requests access to a paid API.
- The API responds with a 402 status code, detailing the payment requirements.
- The agent sends a micropayment of $0.001 USDC on the Solana mainnet.
- Upon successful transaction, the agent retries the API request, including the transaction signature as proof of payment.
- The server verifies the transaction on-chain and subsequently grants access to the data.
This entire transaction, including on-chain verification, completes in about two seconds, with the payment settling in under 400 milliseconds. The choice of Solana is strategic due to its speed and low transaction costs, making it suitable for these micropayment scenarios.
This tool is particularly beneficial for developers and organizations aiming to integrate autonomous resource payments within AI systems without resorting to traditional API keys or subscriptions.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Claude Code Plan Mode Reduces Redo Rate from 40% to Near Zero
A developer tracked 30+ coding sessions with Claude Code and found that skipping Plan Mode resulted in redoing tasks from scratch 40% of the time. With Plan Mode, the redo rate dropped to basically zero, with one feature taking 17 minutes total versus 35+ minutes without planning.

Claude Code now supports 240+ models via NVIDIA NIM gateway — including Nemotron-3 120B for agentic coding
Claude Code can switch mid-session to 240+ NVIDIA NIM models via the /model command. The Nemotron-3 Super 120B thinking variant shows strong results for multi-file refactoring and agentic tasks.

SlackClaw: Managed OpenClaw Instance for Slack Integration
SlackClaw is a commercial product built on OpenClaw that provides a managed instance specifically for Slack. It offers one-click installation, OAuth tool connections, dedicated servers per workspace, and persistent memory.

Zot: A Lightweight Terminal Coding Agent Now Supports Claude Opus 4.8
Zot is a minimal terminal coding agent distributed as a single static Go binary with no runtime or Docker dependencies. It now supports Claude Opus 4.8 along with dozens of other models.