Skip to main content

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

  1. Your agent makes a request to a merchant API
  2. If the merchant returns 402 Payment Required, the SDK intercepts it
  3. Veil402 authorizes the payment through your policy engine
  4. The request is retried with a payment signature
  5. Your agent gets the data — the merchant never sees who paid

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)

Source distribution for veil402 1.0.0
File Size Uploaded
veil402-1.0.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for veil402 1.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

1.1.0

2 release files

1.0.1

2 release files

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page