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.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 | |
|---|---|---|---|
| veil402-1.0.1.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| veil402-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / veil402-1.0.1.tar.gz
| Download URL | veil402-1.0.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4479b2fc73011a8efb4eccf6abde0e6f122bd3b5f50316275688690e43f9c01c
|
|
BLAKE2b-256 checksum How to use checksums |
496cc56e3873610e02e0e05562f63b4db3cde28c334e0faa36a29a4571f55a00
|
| 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.1-py3-none-any.whl
| Download URL | veil402-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf052b581f2bb9eb29afd32c8fabda27cd78b33608c29ce1f0ee5bd010093048
|
|
BLAKE2b-256 checksum How to use checksums |
37986d70578cca92125d0336a9782ea35e22119dfd3d6406d28418957a6894ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|