{"id":47656512,"url":"https://github.com/solana-foundation/pay","last_synced_at":"2026-05-05T05:04:56.076Z","repository":{"id":37510737,"uuid":"418771317","full_name":"solana-foundation/pay","owner":"solana-foundation","description":"Developer Tool for Programmable Money Payments","archived":false,"fork":false,"pushed_at":"2026-04-26T18:02:24.000Z","size":11918,"stargazers_count":1521,"open_issues_count":21,"forks_count":533,"subscribers_count":34,"default_branch":"main","last_synced_at":"2026-04-26T18:21:32.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://solanapay.com","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solana-foundation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-10-19T04:36:49.000Z","updated_at":"2026-04-26T18:02:25.000Z","dependencies_parsed_at":"2026-04-08T22:07:24.397Z","dependency_job_id":null,"html_url":"https://github.com/solana-foundation/pay","commit_stats":{"total_commits":668,"total_committers":33,"mean_commits":"20.242424242424242","dds":"0.27994011976047906","last_synced_commit":"3ca5cc8b6d26714888ae9be088e032bcf624f6ac"},"previous_names":["anza-xyz/solana-pay","solana-labs/solana-pay","solana-foundation/solana-pay","solana-foundation/pay"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/solana-foundation/pay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solana-foundation%2Fpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solana-foundation%2Fpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solana-foundation%2Fpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solana-foundation%2Fpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solana-foundation","download_url":"https://codeload.github.com/solana-foundation/pay/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solana-foundation%2Fpay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32414422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-02T09:00:41.429Z","updated_at":"2026-05-05T05:04:56.069Z","avatar_url":"https://github.com/solana-foundation.png","language":"Rust","funding_links":[],"categories":["Uncategorized","Rust"],"sub_categories":["Uncategorized"],"readme":"# pay\n\n**The missing payment layer for HTTP. `pay` handles x402 and MPP payment challenges with user-authorized stablecoin signing.**\n\nWrap your CLI (`curl`, `claude`, `codex`, 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://docs.solanapay.com)\n\n\u003c/div\u003e\n\n---\n\n```sh\n# Without pay — you get a 402\ncurl https://debugger.pay.sh/mpp/quote/AAPL\n\n# With pay -- it handles the 402 challenge and returns the response\npay --sandbox curl https://debugger.pay.sh/mpp/quote/AAPL\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://paymentauth.org/draft-solana-charge-00.html/)** — Machine Payments Protocol\n- **[x402](https://x402.org/)** — x402 Payment Protocol\n\nStablecoins deployed to Solana are supported out of the box.\n\n### 🗺️ Skills — Discover Paid APIs\n\nBrowse, search, and install catalogs of paid API providers directly from the CLI.\n\n```sh\npay skills search \"gemini\"          # find providers by keyword\npay skills endpoints stableenrich   # list all endpoints for a service\npay skills add org/catalog          # add a provider source (GitHub or URL)\npay skills update                   # refresh the local cache\n```\n\n### 🤖 AI-Native with MCP\n\n`pay` ships with a built-in [MCP](https://modelcontextprotocol.io/) 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 --sandbox claude\npay --sandbox 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://debugger.pay.sh) is also available.\n\n### 🔐 Secure Key Storage\n\nYour keys never touch disk in plaintext. `pay` stores keypairs in secure local credential stores:\n\n- **macOS Keychain** with optional Touch ID biometric prompt (macOS)\n- **Windows Credential Manager** with optional Windows Hello prompt (Windows)\n- **GNOME Keyring** via Secret Service / polkit prompt (Linux)\n- **1Password** vault via `op` CLI — auth handled by 1Password itself (cross-platform)\n- **File-based** keypair for CI and scripting\n\nFor protected accounts, payment signing requires local user approval, such as Touch ID on macOS. The biometric/password prompt is controlled per-account by the `auth_required` setting -- defaults to `true` on mainnet, `false` elsewhere.\n\n```sh\npay setup    # Touch ID on macOS, Windows Hello on Windows, GNOME Keyring on Linux, or choose 1Password\n```\n\n## Installation\n\n### Prebuilt Binaries\n\n```sh\nbrew install pay\n```\n\n### From Source\n\n```sh\ngit clone https://github.com/solana-foundation/pay.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. Generate a keypair (Touch ID protected on macOS)\npay setup\n\n# 2. Make a paid API call (--sandbox uses an ephemeral funded keypair)\npay --sandbox curl https://debugger.pay.sh/mpp/quote/AAPL\n\n# 3. Or let your AI agent handle it\npay --sandbox 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://github.com/solana-foundation/pay/issues) 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/config/polkit/sh.pay.unlock-keypair.policy /usr/share/polkit-1/actions/\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](./LICENSE).\n\nSubject to the foregoing, the Terms of Service available at [solana.com/tos](https://solana.com/tos)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolana-foundation%2Fpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolana-foundation%2Fpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolana-foundation%2Fpay/lists"}