Skip to main content

llama-index-tools-ausca

LlamaIndex tools that pay for HTTP 402 APIs over x402 instead of carrying API keys. A tool built here works against any x402 v2 resource; nothing in it is specific to one vendor. The model authors the request; the caller's signing key and hard per-call USD cap stay outside the model's reach, enforced by the official x402 library's spend controls before anything is signed.

Install

pip install llama-index-tools-ausca

Use

import os
from llama_index_tools_ausca import payable_tool
from pydantic import BaseModel

class LeaseBrowser(BaseModel):
    duration_seconds: int

browser = payable_tool(
    name="lease_browser",
    description="Lease a remote browser with CDP access for 10, 30, or 60 minutes. Costs $0.10 to $0.25 in USDC on Base.",
    fn_schema=LeaseBrowser,
    url="https://ausca.com/v1/lease-browser",
    private_key=os.environ["WALLET_PRIVATE_KEY"],  # pays USDC on Base
    max_payment_usd=0.50,                          # hard per-call cap
)

The tool result is a JSON string with the resource result and, when the call was paid, the decoded settlement proof from the PAYMENT-RESPONSE header.

The example uses Ausca, pay-per-call agent infrastructure services with no accounts or API keys; its catalog-bound Python client is the ausca package. Any other x402 v2 resource works the same way: point url at it. The LangChain sibling is langchain-ausca.

License

MIT

Metadata

Release files for llama-index-tools-ausca 0.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 llama-index-tools-ausca 0.1.0
File Size Uploaded Provenance
llama_index_tools_ausca-0.1.0.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-ausca 0.1.0
File Interpreter ABI Platform
llama_index_tools_ausca-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / llama_index_tools_ausca-0.1.0.tar.gz

Download URL llama_index_tools_ausca-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
00d77ad70fa54cc6aeadfcbc6076923ca8d6da0965a589c3ffdea3dd57feb5b4
BLAKE2b-256 checksum
How to use checksums
04666fdf244e3c297376daf0a33a3a42c3b35520492793500dada45dd572d730
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / llama_index_tools_ausca-0.1.0-py3-none-any.whl

Download URL llama_index_tools_ausca-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f81f7ba68e2e3126a558241ad6516ced924ba4943d5b3b1e110a2c33fe14bb15
BLAKE2b-256 checksum
How to use checksums
c5cd23609782509757abcc23b7849b425cdfe37d813a4cf991dee4ebad936cd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for llama-index-tools-ausca 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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