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.0
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.0.tar.gz | 79.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentpay_gateway-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 182.4 kB
Release files / agentpay_gateway-0.2.0.tar.gz
| Download URL | agentpay_gateway-0.2.0.tar.gz |
|---|---|
| Size | 79.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9483e50096f697e5bfd92081f8a8c87f10c759809a24a5e12b4a885b1022a22d
|
|
BLAKE2b-256 checksum How to use checksums |
69b26edc0df1e9cf7d19210e7c01e620f446aeb4bec20b1c3b213df291cfac0a
|
| 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.0-py3-none-any.whl
| Download URL | agentpay_gateway-0.2.0-py3-none-any.whl |
|---|---|
| Size | 102.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c1db2deea35510c9116dee2509bc9d5acb235e6458c31c0e82ba84fc2f6a9c5
|
|
BLAKE2b-256 checksum How to use checksums |
22633cbe0ab9e4d9b9da1bc74bb124aba23dd05ba2156f8bcca402bff28188c6
|
| 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.0
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.