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

NotebookLM MCP Structured: Free Server Connects Claude to NotebookLM with Automatic Prompt Structuring
A free MCP server called NotebookLM MCP Structured connects Claude Desktop to NotebookLM notebooks with automatic prompt structuring. The server restructures queries based on type (comparison, list, analysis, explanation, or extraction) and adds completeness checks and fidelity constraints.

Six GitHub Repositories for Claude Code Development
A Reddit user tested and shared six GitHub repositories designed to improve Claude Code projects, including tools for structured development, UI generation, task management, memory, ecosystem exploration, and workflow automation.

Claude Sessions: Lightweight Desktop App for Browsing Claude Code History
Claude Sessions is a new desktop application that lets developers browse their Claude Code session history locally. It reads from ~/.claude/projects, organizes sessions by project, handles large sessions up to 500k+ tokens without lag, and includes search functionality and keyboard navigation.

OpenClaw extension routes requests through Claude Code CLI instead of API
An OpenClaw extension spawns the Claude CLI binary as a subprocess, routing requests through Claude Code CLI instead of the Anthropic API. This provides the full Claude Code experience at the flat rate of a max plan.