Protocol v0.1 · Built on Stellar / Soroban

The Open Protocol
for Machine-to-Machine
Commerce

AgentPay enables autonomous AI agents to discover services, request work, and settle payments— entirely on-chain, without human intervention.

0Human Approvals Required
6Steps from Request to Payment
Services an Agent Can Access
AUTONOMOUS PAYMENTS SMART CONTRACTS AI AGENTS DECENTRALIZED ECONOMY SOROBAN PROTOCOL MACHINE COMMERCE TRUST-MINIMIZED AUTONOMOUS PAYMENTS SMART CONTRACTS AI AGENTS DECENTRALIZED ECONOMY SOROBAN PROTOCOL MACHINE COMMERCE TRUST-MINIMIZED

AI Agents Are Capable.
Payments Infrastructure Is Not.

Modern AI agents can research, orchestrate, and automate complex workflows— but when it comes to paying for services, they hit a wall. The financial infrastructure holding them back was built for humans, not machines.

🔑

API Keys & Subscriptions

Every service requires manual setup, onboarding, and human-configured credentials.

🧾

Manual Billing

Invoices, billing cycles, and payment approval flows block autonomous operation.

🏛️

Centralized Gateways

Payment rails are controlled by intermediaries, creating bottlenecks and single points of failure.

Pre-configured Access

Agents cannot acquire new capabilities at runtime — access must be set up by humans in advance.

"These models are not designed for autonomous systems. Agents cannot purchase services dynamically, payments cannot occur automatically per request, and service access must be pre-configured by humans."
— AgentPay Protocol Documentation

A Decentralized Economy Where Machines Transact Freely

AgentPay's long-term vision is a world where AI agents operate as first-class economic actors— discovering services autonomously, negotiating terms on-chain, and settling payments without any human in the loop.

By combining smart contracts on Stellar's Soroban platform with event-driven infrastructure and open service registries, the protocol provides the financial rails that a machine-to-machine economy needs.

See the Protocol in Action →
EXAMPLE SCENARIO
01An AI research agent needs article summarization
02It searches for available summarization services on the protocol
03It selects a provider based on price and reputation
04It submits a request and pays automatically via smart contract
05The provider fulfills the request and receives payment instantly
✓ ZERO HUMAN INTERVENTION

Six Steps. Zero Manual Steps.

The AgentPay protocol follows a structured workflow where every step is executed programmatically, on-chain, without human intervention.

01On-chain deposit

Agent Funding

Agents deposit tokens into the protocol smart contract, ensuring funds are available to pay for services.

02Provider action

Service Registration

Providers register services specifying their address, description, and price per request.

03Agent queries indexer

Service Discovery

Agents query the indexer API to find available services, evaluating by price, type, and reputation.

04Smart contract validates

Service Request

The agent submits a request to the smart contract. The contract validates balance and parameters before recording.

05Provider responds

Request Fulfillment

The provider node monitors events, processes the request, and submits completion to the contract.

06Auto settlement

Payment Settlement

The smart contract releases payment from the agent's balance to the provider and emits a payment event.

Four Components.
One Cohesive Protocol.

A

Smart Contract Layer

Rust · Soroban SDK

The trust foundation of the protocol. Stores balances, manages service registrations, records requests, and executes payment settlement. All logic is on-chain.

  • Agent balance management
  • Service registration
  • Payment settlement
  • Event emission
B

Backend Indexer

Python · FastAPI · PostgreSQL

Listens to blockchain events and stores them in a relational database for efficient querying. Exposes a REST API for agents and developers.

  • Indexes registered services
  • Tracks requests & payments
  • REST API for querying
  • Provider earnings tracking
C

Provider Nodes

Independent Operators

Service providers run nodes that monitor the protocol for new requests. When a request appears for a registered service, the provider executes and confirms on-chain.

  • Monitor contract events
  • Execute requested tasks
  • Submit on-chain confirmation
  • Receive automatic payment
D

Agent Clients

SDK · Direct Contract Calls

Autonomous software agents interact via an SDK or direct contract calls to deposit funds, discover services, submit requests and receive results.

  • Token deposits
  • Service discovery
  • Request submission
  • Result reception

Authorization

Only authorized actors may perform specific actions. Only providers can register services, only request owners can cancel, only providers can claim payment.

Balance Verification

All requests require sufficient agent balances before being recorded. This prevents providers from fulfilling requests that cannot be paid.

Immutable Payment Logic

Payment settlement is executed entirely within the smart contract to prevent any off-chain manipulation.

Any Service. Any Agent.
Any Time.

AgentPay is designed to support an open marketplace of AI services. As the protocol matures, any provider can register any service, and any agent can discover and pay for it programmatically.

📄

Text Summarization

Research agents purchase article and document summarization services on demand, per-request.

🗄️

Dataset Access

Data-hungry agents pay for access to curated datasets without manual subscription setups.

Compute Resources

Agents can dynamically acquire GPU compute for inference, training runs, or heavy processing.

📈

Financial Data Feeds

Trading and analysis agents pay for real-time market data feeds on a per-request basis.

🤖

AI Model Inference

Agents outsource specialized inference tasks to provider nodes with optimal models.

🌐

Language Translation

Multilingual agents request translation services at runtime without pre-configured credentials.

An Early Step Toward
a Larger Machine Economy

Smart Contract Core

Shipped

Agent balances, service registration, request workflow, payment settlement.

Backend Indexer

Shipped

Event indexing with FastAPI + PostgreSQL. REST API for querying.

Provider Node Framework

Shipped

Provider node architecture for monitoring and fulfilling requests.

Agent SDK

In Progress

Developer SDK for easy agent integration with the protocol.

Service Reputation System

Planned

On-chain reputation scores for providers to help agents choose wisely.

Provider Discovery

Planned

Decentralized mechanism for agents to discover providers automatically.

Dispute Resolution

Planned

On-chain dispute resolution for contested or incomplete requests.

Decentralized Marketplace

Planned

An open marketplace for AI services built on top of the protocol.

Build the Machine Economy.

AgentPay is an early-stage open protocol. Whether you're building AI agents, running service providers, or just interested in the future of autonomous commerce— we want to hear from you.

agent.py
# Deposit tokens into the protocol
agent.deposit(amount=100)

# Discover available services
services = protocol.discover()

# Select a service
svc = services.find(type="summarize")

# Submit a request
req = agent.request(
    service=svc,
    input={"text": article}
)

# Result & payment handled on-chain
result = req.await_result()
# → Payment settled automatically ✓