Skip to content
@agentpay-ai

AgentPayAI

AgentPayAI

Multi-Chain Pay-Per-Prompt Micropayment Protocol for Autonomous AI Agents

Decentralized AI Compute Aggregation & Micropayment Infrastructure on BotChain EVM

Read the WhitepaperLive Web AppBOF Facilitator Engine


The Future of AI Access is Here

AgentPayAI delivers sub-cent, pay-as-you-go access to enterprise-grade AI models and autonomous agent capabilities through a decentralized micropayment infrastructure powered by BOF (BotChain Open Facilitator).


What is AgentPayAI?

AgentPayAI is a multi-chain payment protocol and execution infrastructure engineered to revolutionize how AI services are consumed and monetized. It operates as a:

  • Decentralized AI Compute Aggregator — Procures enterprise API inference access from leading AI providers (Anthropic Claude 3.5, Google Gemini 2.5, OpenAI GPT-4o)
  • Micropayment Gateway — Enables sub-cent transactions with 1-click gasless EIP-3009 settlement via the x402 HTTP payment engine
  • BOF Facilitator Integration — Integrates BOF (BotChain Open Facilitator), an open-source Rust microservice developed by AgentPay AI for off-chain signature verification (/verify) and gas-sponsored on-chain settlement (/settle) on BotChain EVM
  • Autonomous Agent Infrastructure — Seamless deployment across BotChain's Autonomous AI Agent Network for human-to-agent and machine-to-machine interactions

Key Features

Pay-Per-Prompt Billing & Single-Click UX

  • Zero friction 1-click payment model (0 gas, 1 wallet signature popup)
  • Dynamic pricing per service: 1.0 $APAY for Chat, 2.0 $APAY for Code Audits, 5.0 $APAY for Image Generation
  • Sub-second AI response latency via off-chain EIP-712 signature verification before on-chain settlement

Multi-Chain & Protocol Compliance

  • Gasless EIP-3009 (transferWithAuthorization) settlement on BotChain EVM (Testnet 968 & Mainnet 677)
  • ERC-8004 identity registry and ERC-8021 builder attribution (0x8021 suffix)
  • Multi-token asset support ($APAY, $USDT)

Agent-First Design

  • Built for autonomous agent networks and BotChain integration
  • Programmatic task delegation (/api/botchain/relay) and machine-to-machine payment coordination
  • Enterprise AI provider routing and load balancing

Tokenomics & Sustainability

  • Native $APAY utility token (0xFd7bF688d5a772A81DfE39da502F69FD99cE92c7)
  • Automated fee routing, buyback-and-burn mechanisms, and BOT Infrastructure Grant alignment

Whitepaper & Documentation

The comprehensive AgentPayAI Whitepaper provides complete technical and economic specifications:

Chapter Overview

  1. Executive Summary — System thesis, core innovations, and strategic alignment with BotChain Ecosystem & BOF integration
  2. Problem Statement & Market Opportunity — Economic barriers of flat-rate SaaS and necessity of micro-metered access
  3. BotChain Protocol Integration — Architectural integration, machine identity, and Infrastructure Grant alignment
  4. x402 Micropayment Engine & EIP-3009 Protocol — Single-click payment flow, gasless off-chain verification via BOF, and identity protocols
  5. Technical Architecture & Smart Contracts — System design, $APAY token, gateway specification, and implementation best practices
  6. Economic Model & Tokenomics — Dynamic pricing formulas, $APAY token economics, and fee distribution
  7. Roadmap & Governance — Development schedule, multi-model routing network, and decentralized governance

-> Read the Full Whitepaper


Architecture at a Glance

┌─────────────────────────────────────────────────────────────┐
│             Next.js 16 Web App / Autonomous Agent           │
│              (https://agentpayfrontend.vercel.app)          │
└──────────────────────┬──────────────────────────────────────┘
                       │
                       │ 1. POST Prompt + X-Payment (EIP-3009 Auth)
                       ▼
┌─────────────────────────────────────────────────────────────┐
│          AgentPay AI Express Gateway (Vercel)               │
│          (https://agentpay-backend-eight.vercel.app)         │
└───────┬──────────────────────┬──────────────────────────────┘
        │                      │
        │ 2. POST /verify      │ 4. Execute Prompt
        ▼                      ▼
┌──────────────────┐   ┌──────────────────────────────────────┐
│  BOF Facilitator │   │       Enterprise AI Providers        │
│  Rust Microservice│   ├──────────────────────────────────────┤
│ (Render Hosted)  │   │ • Anthropic Claude 3.5               │
└───────┬──────────┘   │ • Google Gemini 2.5 Flash            │
        │              └──────────────────────────────────────┘
        │ 5. POST /settle (Async)
        ▼
┌─────────────────────────────────────────────────────────────┐
│          BotChain EVM (Testnet 968 / Mainnet 677)           │
│        $APAY Token Contract (transferWithAuthorization)     │
└─────────────────────────────────────────────────────────────┘

Production Payment Settlement Flow:

User Request -> 402 Challenge -> 1-Click EIP-712 Sign (0 Gas) ->
BOF Off-Chain Verify -> Immediate AI Completion -> Stream Response ->
BOF Async On-Chain Settle (transferWithAuthorization)

Economic Model

Dynamic Pricing Structure

  • AI Text Assistant (/api/chat): 1.0 $APAY per prompt
  • Smart Contract Auditor (/api/code): 2.0 $APAY per audit
  • AI Image Generator (/api/image): 5.0 $APAY per render

Technology Stack

  • Facilitator Engine: BOF (BotChain Open Facilitator) written in Rust (Axum, Tokio, Ethers-rs)
  • API Gateway: Express.js with @x402/express middleware and @anthropic-ai/sdk
  • Frontend App: Next.js 16, Privy Auth, Wagmi, Ethers, TailwindCSS
  • Payment Protocol: x402 HTTP Payment Standard with EIP-3009 Gasless Off-Chain Signing
  • Smart Contracts: Solidity 0.8.24 (APAYToken.sol, AgentPayRegistry.sol, ERC-8004, ERC-8021)
  • Blockchain: BotChain EVM (Testnet 968 & Mainnet 677)

Project Repositories

  • BOF — BotChain Open Facilitator (Rust microservice for /verify & /settle)
  • agentpay-whitepaper — Official technical & economic whitepaper
  • agentpay_backend — Express.js API gateway with Claude AI integration & BOF client
  • agentpay_frontend — Next.js 16 pay-per-prompt web application
  • agentpay_contracts — Foundry smart contracts (APAYToken & AgentPayRegistry)

Live Production Deployments


Topics

agentpaybof-facilitatormicropaymentsx402eip-3009autonomous-agentsbotchainai-infrastructureweb3rust


Building the decentralized AI payment infrastructure for the autonomous agent era.

Star the WhitepaperFollow AgentPay AI

Popular repositories Loading

  1. agentpay-whitepaper agentpay-whitepaper Public

    AgentPay AI Whitepaper & Documentation — Multi-Chain Pay-Per-Prompt Micropayment Protocol

    1

  2. agentpay_backend agentpay_backend Public

    Express.js API gateway for AgentPay AI — Claude AI gated by on-chain USDT payments on BotChain

    TypeScript

  3. agentpay_frontend agentpay_frontend Public

    Next.js frontend for AgentPay AI — pay-per-use Claude AI with on-chain USDT payments on BotChain

    TypeScript

  4. agentpay_contracts agentpay_contracts Public

    Foundry smart contracts for AgentPay AI — AgentPayRegistry, ERC-8004 identity, and token

    Solidity

  5. BOF BOF Public

    BOF (BotChain Open Facilitator) - Multi-token x402 payment facilitator for BotChain EVM

    Rust

  6. .github .github Public

Repositories

Showing 6 of 6 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…