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.1.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.1.0
File Size Uploaded
veil402-1.1.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for veil402 1.1.0
File Interpreter ABI Platform
veil402-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / veil402-1.1.0.tar.gz

Download URL veil402-1.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
53e2a0e0b6d40b63e7f5c9b64e27bdd97f75a1f7136d1ee850ffcd2ac9f17a7c
BLAKE2b-256 checksum
How to use checksums
dcae1c2681d86a1f3ebe790a25848513205a5cea8af850c0b8df55bcb603149b
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.1.0-py3-none-any.whl

Download URL veil402-1.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc09691717eb0c38783018cf8ae57b478f0280c04fe63dbc9386716a897bcbf8
BLAKE2b-256 checksum
How to use checksums
ebf6b68bfd39694d17298cc243398a47ba244daf717696eaf1f1a5371e26f106
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

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

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