AgentPay Gateway (`agentpay-gateway`)
Autonomous Agent Payment Gateway & Reverse Proxy for API Monetization
📚 Documentation • 💻 GitHub Repository • 🐦 Follow on X (@OpenAgentPay) • 🐛 Report Issue
⚡ What is AgentPay Gateway?
agentpay-gateway sits directly in front of existing REST APIs, AI agent microservices, and compute endpoints. It monetizes incoming requests via standard HTTP 402 Payment Required challenges settled gaslessly on-chain (Circle USDC on Arbitrum Sepolia & Base) or via virtual tenant wallets.
🚀 Quickstart
1. Installation
pip install agentpay-gateway
2. Configuration (gateway.yaml)
version: "1.0"
server:
host: "0.0.0.0"
port: 8000
db_path: "./data/gateway.db"
facilitator:
url: "https://facilitator.agentpay.network"
settlement:
default_network: "eip155:421614" # Arbitrum Sepolia
default_asset: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d" # Circle USDC
default_pay_to: "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
routes:
- path: "/v1/market-data"
upstream: "https://httpbin.org/get"
price: "0.001 USDC"
3. Running the Gateway
python3 -m agentpay_gateway.server --config ./gateway.yaml
🔒 Features
- HTTP 402 x402 Protocol: Issues standard challenges containing pricing, settlement token, network, and validity window.
- Off-Chain Signature Verification: Verifies EIP-712 authorizations with zero on-chain latency before forwarding upstream.
- Idempotent Anti-Rollback: Decoupled state machine guarantees no double-charging on network dropouts.
- Facilitator Integration: Coordinates with EVM facilitator nodes for asynchronous gasless settlement.
📖 Documentation & Community
- Official Documentation: https://open-agentpay.github.io/AgentPay/
- Gateway Guide: https://open-agentpay.github.io/AgentPay/guide/overview.html
- GitHub Repository: https://github.com/open-agentpay/AgentPay
- Issue Tracker: GitHub Issues
📄 License
Apache-2.0 License. See LICENSE for details.
Metadata
Release files for agentpay-gateway 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| agentpay_gateway-0.2.1.tar.gz | 79.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentpay_gateway-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 182.4 kB
Release files / agentpay_gateway-0.2.1.tar.gz
| Download URL | agentpay_gateway-0.2.1.tar.gz |
|---|---|
| Size | 79.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ced13b5b4b2ae0a2a909075e472e556f511f3c5b46e758782131b1c0dea2a4ee
|
|
BLAKE2b-256 checksum How to use checksums |
23c2fd1139d23666359ef045ddea1957497401606ff0bf08cfa980514dd7717c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|
Release files / agentpay_gateway-0.2.1-py3-none-any.whl
| Download URL | agentpay_gateway-0.2.1-py3-none-any.whl |
|---|---|
| Size | 102.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bd9efd205f7c369a1cea26b9e8b81e37adba92cf869d4fd817137241131401d
|
|
BLAKE2b-256 checksum How to use checksums |
dcee0826a2397484acee92eb4132bb730defbf78de7e218309f795b26d557e9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|
Security for agentpay-gateway 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.