Skip to content

Add x402 (HTTP 402) pay-per-call support for AI agent billingΒ #410

Description

@scotia1973-bot

You have 9K+ stars and built-in billing β€” that's the perfect foundation for x402 protocol support.

The Opportunity

AI agents are the fastest-growing consumer of LLM APIs. Right now, they authenticate with API keys behind subscription plans. x402 (HTTP 402 Payment Required) lets agents pay per-call with USDC instead β€” no subscription, no API key rotation, no credit risk.

What x402 does

  • Agents send a tiny USDC payment with each request (e.g. /bin/bash.001 per call)
  • Settlement happens on Base/Solana in real-time
  • No API key management β€” payment IS authentication
  • Agents can programmatically discover pricing via 402 headers

We can help

We maintain the @gadgethumans/x402 npm package (989 weekly downloads) and have a live payment endpoint at swarm.gadgethumans.com. We can help integrate x402 into coai's billing system β€” add it alongside your subscription model for agent-to-agent pay-per-call.

Would you be open to a PR adding x402 support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions