Introducing a new way to review your PRs.

Read the announcement

solana-foundation / pay

CLI for Agentic payments (x402, MPP, AP2).

View on GitHub

30 documents · Updated Nov 11, 2026

overview

Knowledge Base updated: 2026-11-10

Solana Pay Knowledge Base

This repository combines a Rust payment runtime and CLI with agent-protocol integrations, distributable plugins, a TypeScript Solana Pay SDK, merchant examples, and a payment-debugger web UI.

Critical payment state spans local and remote wallet identities, payment channels and settlement records, API and worker services, and client-visible receipts. The CLI, MCP/ACP integrations, Connect service, and proxy components expose these capabilities to users and agents.

flowchart LR
  CLI[pay CLI] --> Runtime[Rust payment runtime]
  MCP[MCP / ACP integrations] --> Runtime
  Plugins[Agent payment plugins] --> MCP
  Runtime --> Gateway[Payment gateway]
  Gateway --> Providers[Wallet and credit providers]
  Runtime --> Channels[Session channels and metering]
  Channels --> Workers[Settlement workers]
  Runtime --> API[pay-api]
  Runtime --> Connect[Hosted Connect service]
  Runtime --> Proxy[HTTP payment proxy]
  CLI --> Catalog[Skills and provider catalog]
  SDK[TypeScript Solana Pay SDK] --> Merchant[Merchant examples]
  Runtime --> Debugger[Payment debugger]
  Debugger --> API
  Runtime --> Inference[Inference marketplace]

Glossary

  • MPP — payment-channel protocol and its versioned channel profiles.
  • Pay Connect — hosted service for tenant payment identities and wallet authorization.
  • Session channel — metered payment session whose lifecycle culminates in settlement.
  • Payer proxy — component that makes payment-aware requests on behalf of a payer.
  • Skill — installable guidance and tooling package used by CLI and agent workflows.

Invariants

  • Payment-aware server requests must pass gateway authentication and payment enforcement before protected upstream handling; see crates/pay-server/** and crates/pay-runtime/**.
  • Channel charges use compatible credit-provider and channel-profile models; see crates/pay-runtime/**/channel* and crates/pay-runtime/**/credit*.
  • Settlement is performed by dedicated worker jobs rather than request handlers; see crates/pay-worker/**.
  • CLI account selection is shared configuration consumed by payment operations; see crates/pay-cli/**.
  • Solana Pay transfer URLs and transactions are validated through SDK primitives; see packages/solana-pay/**.

Routing table