The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the AiFinPay listing page.
AiFinPay provides payment and monetization infrastructure for autonomous AI agents.
Canonical domain: https://aifinpay.io
| Package | Current source version | Install |
|---|---|---|
aifinpay-agent (Python) | 2.2.1 | pip install aifinpay-agent |
aifinpay-gate (Python merchant gate) | 0.1.0 | pip install aifinpay-gate |
@aifinpay/agent (Node / TypeScript) | 2.2.0 | npm install @aifinpay/agent |
@aifinpay/mcp | 2.3.0 | npx @aifinpay/mcp |
@aifinpay/mcp-http | 2.0.4 | Streamable HTTP wrapper |
@aifinpay/skill | 2.3.0 | npm install @aifinpay/skill |
@aifinpay/gate | 0.3.4 | npm install @aifinpay/gate |
@aifinpay/wallet | 1.1.0 | npm install @aifinpay/wallet |
@aifinpay/deployments | 1.1.2 | deployment registry package |
Package lines are versioned independently. The package manifests in this repository and the corresponding npm/PyPI registries are the source of truth.
The current @aifinpay/mcp source exposes the following production tools:
| Tool | Purpose |
|---|---|
agent_address | Read the current EVM, Solana and Casper public addresses. |
agent_reload | Reload configured local wallet files without starting a new conversation. |
agent_quota | Read the agent's quota. |
agent_history | Read indexed AiFinPay payment history or retained receipt history. |
agent_passport_resolve | Resolve a public Agent Passport identity and verified wallet bindings. |
settlement_routes | Read currently runtime-verified AIFP-1 / AIFP-2 settlement routes. |
settlement_invoice | Build and validate a non-signing EVM settlement invoice. |
settlement_solana | Build and validate a non-signing Solana settlement invoice. |
settlement_casper | Build and validate a non-signing Casper settlement invoice. |
deployment_info | Read deployment addresses, program IDs and settlement status across supported ecosystems. |
With AIFINPAY_MODE=dev, an additional dev_payment_quote tool is available for dev-only quote inspection.
The public MCP surface does not sign or broadcast payments. Creating an invoice or quote is not a completed payment.
Legacy tools such as payable_fetch, agent_call, agent_quote, pay_with_split, quote_split and agent_claim_self are not registered by the current production MCP server.
For a persistent local identity, initialize the keystore once:
Then use agent_reload and agent_address to verify the selected public wallet. Do not paste seeds or private keys into chat, issues, logs or shared configuration.
Full client setup: MCP_CONFIG.md
The SDK surfaces have different execution status. Do not treat them as interchangeable.
@aifinpay/agent includes the AIFP-1 fetchPaid path. The 2.3.0 source candidate adds explicitly selected Base v1.4 (ETH or pinned USDC) alongside default Polygon v1.4. Paid execution validates the selected chain, pinned deployment/profile, token and RPC before signing; native payments also require a fresh independent price. Legacy Polygon v1.3 still requires its separately reviewed settlement pin. Source support does not activate a production route or publish a package.
See node/README.md and node/PAYMENT_RECEIPTS.md.
The Python package pays AIFP-1 merchants with AiFinPayAgent.fetch_paid (Polygon v1.4, POL or USDC). The 2.3.0 source candidate also supports explicit chain="base" with ETH or pinned USDC and a required gas budget in wei. Its legacy paid call() settlement path stays disabled. MCP's current payment configuration remains Polygon; these source changes do not add a Base MCP setting.
See python/README.md.
Current protocol economics documented in the v2 line:
Older 98.99% / 1% / 0.01% examples belong to a retired fee model and must not be used as current economics.
For a site or API that wants to monetize AI-agent traffic:
The merchant package can return HTTP 402 challenges, expose discovery metadata and meter paid access. See gate/README.md. Python servers (FastAPI, Starlette, Flask, Django) use pip install aifinpay-gate, the same gate as ASGI/WSGI middleware — see python-gate/README.md and the aifinpay-merchant skill in skill/skills/aifinpay-merchant/SKILL.md.
Deployment addresses and program IDs are registry data; they are not, by themselves, proof that settlement is enabled. Use deployment_info or the deployment registry and check settlementEnabled / status before presenting a network as active.
The old Solana program 5g9zWHF1Vv6GiGpA2ZbJQbSCDZd5hAk9AyvabRJvKFx2 was closed and is not the current program.
The current registry contains the redeployed v1.4.1 programs below, both currently disabled for settlement:
| Network | Program ID | Settlement status | Reason |
|---|---|---|---|
| Devnet | 8dty5bD738Z9TzEkDu8vLSnhpJNWtEGMUEcYaKCUTY6y | Disabled | Backend receipt verification is not implemented. |
| Mainnet | 724Ut31i4ecY4dJ25z8HuZetu3A43xtNkPdk4JdbsfdD | Disabled | Backend receipt verification is not implemented and upgrade authority is not multisig. |
Canonical registry source: deployments/registry/splitter/solana/deployments.json
These are historical transactions only. They do not certify the current release, fee model or current production readiness.
| Provider | Asset | Historical use | Transaction |
|---|---|---|---|
| Exa Search | POL | SDK call via Exa | 0xeb13c5eddf645b3e5b5e5db82d8b19d301a4c0c8593f6e7dce9cd4c3359c8700 |
| io.net | POL | Llama-3.3-70B inference, $0.025 | 0x7c6ca0ffcf75b1ca3ade4800fb896c4bb08bc5f1a91916dc2cf4918f16129f0a |
MIT — see LICENSE.