AlgoPay SDK — payment infrastructure for AI agents on Algorand (x402, USDC/ASA, guards)
Project description
AlgoPay SDK
Python package (PyPI: algopay-sdk) for AI agent payments on Algorand: local wallets, USDC (ASA) transfers, x402 HTTP 402 flows, guards, ledger, and payment intents.
Status: 0.1.0 alpha (
0.1.0a1on PyPI when published) — APIs and behavior may change. Test coverage is still expanding; see Testing roadmap → 1.0 before relying on this in production.
Source: github.com/Algodev-Studio/algopay-sdk
Install
From PyPI (alpha — pin the version or use --pre):
On PyPI the distribution is algopay-sdk; you still import algopay in code.
pip install "algopay-sdk==0.1.0a1"
# or: pip install --pre "algopay-sdk>=0.1.0a1,<0.2"
From a clone (development):
pip install -e ".[dev]"
Requirements
- Python 3.10+
Environment variables: see docs/ENVIRONMENT.md for a full table (ALGOPAY_NETWORK, Algod/Indexer URLs, USDC ASA ID, Redis, logging, and example-only vars).
Short version:
ALGOPAY_NETWORK—algorand-mainnetoralgorand-testnet(default: testnet)- Optional:
ALGOD_URL/ALGOPAY_ALGOD_URL,INDEXER_URL/ALGOPAY_INDEXER_URL,ALGOPAY_USDC_ASA_ID - Redis:
ALGOPAY_STORAGE_BACKEND=redis,ALGOPAY_REDIS_URL
Quick start
import asyncio
from algopay import AlgoPay
from algopay.core.types import Network
async def main():
client = AlgoPay(network=Network.ALGORAND_TESTNET)
ws = client.wallet.create_wallet_set("my-agent")
w = client.wallet.create_wallet(ws.id)
# Fund the address with test ALGO + opt-in to USDC, then:
# client.wallet.opt_in_usdc(w.id)
# ... acquire USDC ...
await client.pay(w.id, "RECEIVER58CHARALGORANDADDRESSAAAAAAAAAAAA", "1.0")
asyncio.run(main())
Documentation
- Environment variables
- Publishing (alpha → PyPI)
- Testing roadmap & enterprise readiness
- Legacy OmniAgentPay / arc-merchant reference
examples/and the Algorand x402 scheme
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file algopay_sdk-0.1.0a1.tar.gz.
File metadata
- Download URL: algopay_sdk-0.1.0a1.tar.gz
- Upload date:
- Size: 34.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57fc779104cc437f92e767ced1dacce05c1919944cbddeabf13ac6de159a6023
|
|
| MD5 |
0f91066e322db597f863fb7b7a10ccc1
|
|
| BLAKE2b-256 |
b356eaeeb8e19851e93faecf90c2aa8da8d6528d8a428529c2884770dc984ba8
|
File details
Details for the file algopay_sdk-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: algopay_sdk-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f46218f051402cec9c62cb601963193a77a619e056a673666a04ed8ca75dc6e
|
|
| MD5 |
22aa06100d02c69a9ac218e71032770a
|
|
| BLAKE2b-256 |
17832142f9d5f9c71f81a244d9bbc739b36560057538bbf958f877d9f0c286c5
|