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.1

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.1
File Size Uploaded
veil402-1.0.1.tar.gz 4.2 kB Details

Built distribution (wheel)

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

Release history Release notifications | RSS feed

1.1.0

2 release files

This release

1.0.1 This release

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