veil402
Private x402 payments for AI agents.
Installation
pip install veil402
Quick Start
import os
from veil402 import Veil402
client = Veil402(credential=os.environ["VEIL402_CREDENTIAL"])
# Works like httpx — but handles 402 payment flows automatically
response = client.get("https://api.merchant.com/market-data")
data = response.json()
Async Usage
from veil402 import AsyncVeil402
async def main():
client = AsyncVeil402(credential=os.environ["VEIL402_CREDENTIAL"])
response = await client.get("https://api.merchant.com/market-data")
data = response.json()
How It Works
- Your agent makes a request to a merchant API
- If the merchant returns
402 Payment Required, the SDK intercepts it - Veil402 authorizes the payment through your policy engine
- The request is retried with a payment signature
- Your agent gets the data — the merchant never sees who paid
Links
Metadata
Release files for veil402 1.0.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 | |
|---|---|---|---|
| veil402-1.0.0.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| veil402-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / veil402-1.0.0.tar.gz
| Download URL | veil402-1.0.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a84c3b7bd662bb8f62463e5ebee0accc50ea0d55fac95796ab026664b64d435
|
|
BLAKE2b-256 checksum How to use checksums |
e2da329b89f4bb02a8e4fb85f91c67113f0d4c5929b27d3a0962a65727bbb73b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / veil402-1.0.0-py3-none-any.whl
| Download URL | veil402-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ecc5387c7217e5dacbb0ae312e1d19b0c3019df4e3e9468b30c21da8969111d1
|
|
BLAKE2b-256 checksum How to use checksums |
0008ba561ce191cd59441a66cb3a2eb0d824ab7357a51e14dc5c4d38477808b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|