[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-11225":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":9,"createdAt":9,"pushedAt":9,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":16,"starSnapshotCount":16,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},11225,"pay","solana-foundation\u002Fpay","solana-foundation","Let your agents pay for any API",null,"https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fpay","Rust",1714,575,32,27,0,8,14,47,24,21.28,false,"main","2026-06-12 02:02:30","# pay\n\n**The missing payment layer for HTTP. `pay` handles x402 and MPP payment challenges with user-authorized stablecoin signing.**\n\nWrap a selected set of command line tools (`curl`, `claude`, `codex`, `whoami`, etc.) -- when a stablecoin-gated API returns 402, `pay` detects the payment protocol, prepares the stablecoin transaction, asks the local wallet to authorize and sign it, then retries with the payment proof.\n\n[Install](#installation) · [Quick Start](#quick-start) · [Docs](https:\u002F\u002Fdocs.solanapay.com)\n\n\u003C\u002Fdiv>\n\n---\n\n```sh\n# Without pay — you get a 402\ncurl https:\u002F\u002Fdebugger.pay.sh\u002Fmpp\u002Fquote\u002FAAPL\n\n# With pay -- it handles the 402 challenge and returns the response\npay --sandbox curl https:\u002F\u002Fdebugger.pay.sh\u002Fmpp\u002Fquote\u002FAAPL\n```\n\n## Key Features\n\n### 💵 Transparent 402 Handling\n\nWrap your CLI (`curl`, `claude`, `codex`, etc.) -- when an API returns 402, `pay` detects the payment protocol, prepares the stablecoin transaction, asks the local wallet to authorize and sign it, then retries with the payment proof.\n\nSupports both live payment standards on Solana:\n- **[MPP](https:\u002F\u002Fpaymentauth.org\u002Fdraft-solana-charge-00.html\u002F)** — Machine Payments Protocol\n- **[x402](https:\u002F\u002Fx402.org\u002F)** — x402 Payment Protocol\n\nStablecoins deployed to Solana are supported out of the box.\n\n### 🤖 AI-Native with MCP\n\n`pay` ships with a built-in [MCP](https:\u002F\u002Fmodelcontextprotocol.io\u002F) server, letting AI assistants request paid API calls through the same local wallet-approval flow.\n\n```sh\n# Run Claude Code or Codex with pay injected into the agent session\npay claude\npay codex\n```\n\n### 🛠️ Payment debugging and simulations\n\n`pay` ships with an embedded Payment Debugger — a local web UI that visualizes every 402 challenge-response cycle as a sequence diagram. See exactly which headers were sent, which protocol was used (MPP or x402), and where things went wrong.\n\nEverything runs locally — no data leaves your machine.\n\n```sh\n# Start a gateway with the debugger on any API spec\npay server start --debugger spec.yml\n\n# Or run the bundled demo (sandbox + debugger + sample endpoints)\npay server demo\n```\n\nA [public debugger](https:\u002F\u002Fdebugger.pay.sh) is also available.\n\n### 🔐 Gated Payments via Biometrics\n\n`pay` lets AI agents use paid APIs without giving them your private key or an API-wide spending credential.\n\nWhen a command, Claude Code, Codex, or another MCP client hits a paid endpoint, `pay` prepares the payment locally and asks your wallet backend to authorize the signature. On macOS, that means Touch ID via Keychain. On Windows, Windows Hello. On Linux, GNOME Keyring \u002F polkit. If you reject the prompt, the payment is not signed and the request does not go through.\n\n  \n```sh\npay setup    # Touch ID on macOS, Windows Hello on Windows, GNOME Keyring on Linux, or choose 1Password\n```\n\n### 📚 Open Source Catalog\n\nThe paid API catalog is open source in the [`pay-skills`](https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fpay-skills) repo.\n\nAnyone can contribute a provider listing, improve endpoint metadata, or add usage guidance for agents. Catalog entries follow the [`pay-skills` contributing guide](https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fpay-skills\u002Fblob\u002Fmain\u002FCONTRIBUTING.md), which defines the metadata, pricing, endpoint, and usage-note standards that keep **Agent experience** consistent.\n  \n```sh\n  pay skills search \"maps\"\n```\n\nGood catalog entries make paid APIs easier for both humans and agents to discover, compare, and use safely.\n\n## Installation\n\n### Prebuilt Binaries\n\n```sh\n# macOS\nbrew install pay\n\n# via NPM\nnpm install -g @solana\u002Fpay\n```\n\n### From Source\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fpay.git\ncd pay\njust install pay\n```\n\n### Verify\n\n```sh\npay --version\n```\n\n## Quick Start\n\n```sh\n# 1. Setup your account\npay setup\npay whoami\n\n# 2. Make a paid gated API call to https:\u002F\u002Fdebugger.pay.sh sandbox endpoints\npay --sandbox curl https:\u002F\u002Fdebugger.pay.sh\u002Fmpp\u002Fquote\u002FAAPL\n\n# 3. Or let your AI agent handle it\npay claude\n```\n\n## Contributing\n\n```sh\ncd rust\njust build   # release binary\njust test    # all tests\njust lint    # clippy (warnings = errors)\n```\n\nWe welcome contributions — check [open issues](https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fpay\u002Fissues) to get started.\n\n## Troubleshooting\n\n### Linux: `pay topup` or `pay curl` errors with \"auth failed\"\n\nGNOME Keyring auth uses polkit, which requires a one-time setup step:\n\n```sh\nsudo cp rust\u002Fconfig\u002Fpolkit\u002Fsh.pay.unlock-keypair.policy \u002Fusr\u002Fshare\u002Fpolkit-1\u002Factions\u002F\n```\n\nThis grants `pay` the right to prompt for your password or fingerprint before accessing the keypair.\n\n## License\n\nMIT — see [LICENSE](.\u002FLICENSE).\n\nSubject to the foregoing, the Terms of Service available at [solana.com\u002Ftos](https:\u002F\u002Fsolana.com\u002Ftos)\n","solana-foundation\u002Fpay 是一个让代理能够为任何API支付费用的工具。它使用Rust编写，支持处理x402和MPP支付挑战，并通过用户授权的稳定币签名来完成支付。当被封装的命令行工具（如`curl`、`claude`等）遇到需要支付才能访问的API时（返回402状态码），pay会自动检测支付协议，准备稳定币交易，请求本地钱包授权并签名后重试请求。该项目特别适合于需要频繁调用付费API的服务或应用中使用，尤其是在涉及Solana网络上的稳定币支付场景下。此外，pay还提供了内置的调试器和对AI助手的支持，使得开发者可以更方便地测试支付流程及管理API调用权限。",2,"2026-06-11 03:31:27","trending"]