explaingit

1lystore/pay-dcp

Analysis updated 2026-05-18

2RustAudience · developerComplexity · 3/5LicenseSetup · moderate

TLDR

A Rust CLI that wraps HTTP commands so they can pay for API access automatically using Solana stablecoins with biometric approval.

Mindmap

mindmap
  root((pay))
    What it does
      Handles 402 payment challenges
      Signs Solana payments
      Retries paid requests
    Tech stack
      Rust
      Solana
    Use cases
      Wrap curl commands
      Pay for AI agent API calls
      MCP paid tool access
    Audience
      Developers
      AI agent builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Wrap curl or another CLI tool so it automatically pays a 402-required API and retries the request.

USE CASE 2

Let an AI agent make paid API calls through a local MCP server without ever holding your private key.

USE CASE 3

Approve or reject each payment yourself using Touch ID, Windows Hello, or Linux biometric prompts.

What is it built with?

RustSolanaMCP

How does it compare?

1lystore/pay-dcpcallmealphabet/fastcpcodingstark-dev/decant
Stars222
LanguageRustRustRust
Setup difficultymoderateeasyeasy
Complexity3/51/53/5
Audiencedeveloperops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a Solana wallet and device biometric authentication.

MIT license lets you use, modify, and distribute freely, including commercially.

In plain English

Pay is a Rust command-line tool that adds a payment layer to standard HTTP calls. Some APIs return a 402 status code, which means payment is required before the server will respond with data. Rather than building payment logic into each application, you wrap your existing commands with pay and it handles the 402 challenge automatically: it detects the payment protocol, prepares a stablecoin transaction on Solana, asks your local wallet to authorize the signature using biometric authentication, and retries the original request with the payment proof attached. The tool supports two live payment standards on Solana: MPP (Machine Payments Protocol) and x402. It can wrap any command-line tool including curl, Claude Code, and Codex. It also ships with a built-in MCP (Model Context Protocol) server so AI assistants can make paid API calls through the same local wallet-approval flow without ever having access to your private key. The authorization step uses the biometric system already on your device, Touch ID via Keychain on macOS, Windows Hello on Windows, and GNOME Keyring or polkit on Linux. If you reject the prompt, the payment is not signed and the request does not go through. This means AI agents can use paid APIs but cannot spend funds without your explicit approval on each call. A built-in web-based debugger visualizes the 402 challenge-response sequence locally, and an open source catalog of paid API providers is available for discovery. The license is MIT.

Copy-paste prompts

Prompt 1
Show me how to wrap a curl command with pay so it handles a 402 payment-required response automatically.
Prompt 2
Explain how pay's MCP server lets Claude Code make paid API calls without exposing my wallet key.
Prompt 3
Walk me through setting up biometric approval for pay on macOS using Touch ID.
Prompt 4
What is the difference between the MPP and x402 payment protocols that pay supports?

Frequently asked questions

What is pay-dcp?

A Rust CLI that wraps HTTP commands so they can pay for API access automatically using Solana stablecoins with biometric approval.

What language is pay-dcp written in?

Mainly Rust. The stack also includes Rust, Solana, MCP.

What license does pay-dcp use?

MIT license lets you use, modify, and distribute freely, including commercially.

How hard is pay-dcp to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is pay-dcp for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.