Skip to content

AiFinPay

AiFinPay logo

The payment protocol for autonomous AI agents

Stripe for AI agents — non-custodial, pay-per-call, on-chain settlement.

Website · Docs · Integration Guide


What is AiFinPay?

AiFinPay gives any AI agent a wallet so it can pay — and get paid — for services on-chain. Built on the open x402 protocol and the AIFP standards, it enables autonomous machine-to-machine commerce with per-call settlement across multiple blockchains.

  • Pay-per-call — agents settle each invocation exactly, no subscriptions, no pre-funding.
  • Non-custodial — payments flow directly wallet-to-wallet; no intermediary holds funds.
  • Multi-chain — Polygon, Solana, Avalanche, Casper, Stellar (and growing).
  • Agent-first — MCP server + SDK so any agent framework can plug in minutes.

Protocol & Standards

Repo Description
AIFP-1 Open protocol for AI-native payments, paywalls, agent identity, and autonomous M2M commerce.
AIFP-4 Open organization / corporation protocol.

On-Chain Contracts

Repo Chain Language Highlights
evm-contract Polygon Solidity AiFinPayCore v1.1 with Pyth Pull Oracle.
aifinpay-avalanche Avalanche C-Chain Solidity Live & verified on mainnet (43114). Per-call settlement via Pyth + on-chain splitter.
solana-contract Solana Rust Anchor program — Seat PDAs, b2b_pay, b2b_pay_with_split. Live on mainnet.
casper-contract Casper Rust x402 protocol settled on Casper. Live testnet contract + bridge + MCP server.

Tools & Integrations

Repo Description
sdk TypeScript SDK for embedding AiFinPay into agents and services.
aifinpay-cli Agent-first CLI (Go). Pay-per-call x402 + on-chain settlement; wraps @aifinpay/mcp.
aifinpay-agent-integration Official integration guide — give any AI agent a wallet (MCP + SDK).
stellar-x402-facilitator Open-source x402 facilitator & Bazaar discovery layer for Stellar.

Documentation

  • docs — AiFinPay developer documentation (Mintlify).

Supported Chains

Settlement contracts deployed across 12 mainnet networks (+Casper as a 13th deploy):

Polygon
Polygon
Solana
Solana
Avalanche
Avalanche
Arbitrum
Arbitrum
BNB Chain
BNB Chain
Base
Base
Unichain
Unichain
Optimism
Optimism
BOT Chain
BOT Chain
XRPL EVM
XRPL EVM
NEAR
NEAR
Aptos
Aptos

Live state varies per chain — see the network source-of-truth for the per-layer status matrix.

Getting Started

Install the package(s) you need and give your agent a funded wallet:

# MCP server — plug any agent framework into AiFinPay
npm install @aifinpay/mcp

# Opinionated agent runtime (optional)
npm install @aifinpay/agents

# Or scaffold a full integration
npx @aifinpay/cli init

Then point your agent at the MCP server and give it a funded wallet. See the integration guide for details.


Building the rails for autonomous machine-to-machine commerce.

Pinned Loading

  1. sdk sdk Public

    TypeScript 2 1

  2. AIFP-1 AIFP-1 Public

    Open protocol for AI-native payments, paywalls, agent identity, and autonomous machine-to-machine commerce.

    Shell 1 1

  3. AIFP-4 AIFP-4 Public

    Open organization/corporation protocol

    TypeScript

Repositories

Showing 10 of 13 repositories

Top languages

Loading…

Most used topics

Loading…