Skip to main content

ausca

Client for Ausca metered agent infrastructure services: document OCR, document analysis, media transcription, browser sessions, and agent inboxes. Paid per call under a hard USD cap you set, with no account or provider API keys, and a settlement receipt on every completed invocation.

Install

pip install ausca

Use

import os
from ausca import AuscaClient

client = AuscaClient.with_local_key(
    private_key=os.environ["AUSCA_PRIVATE_KEY"],  # pays USDC on Base
    max_payment_usd=0.50,                         # hard per-call cap
)

outcome = client.invoke(
    "browser.session",
    {"duration_seconds": 600},
    idempotency_key=saved_purchase_key,
)
# Keep outcome.result["resource_access"] private: it contains a bearer capability.

invoke resolves the offer's immutable revision, schema digests, and payable route from the live catalog, reads the exact payment requirement, pays it if it fits the cap, and retries the same bytes with the same idempotency key. Each call starts with a fresh key. For recovery after an uncertain response, pass the same caller-owned idempotency_key; use a new key for another intentional purchase, even when its input is identical.

A CLI ships with the package:

ausca catalog
ausca price document.ocr
AUSCA_PRIVATE_KEY=0x... AUSCA_MAX_PAYMENT_USD=0.50 \
  ausca invoke browser.session '{"duration_seconds":600}' \
  --idempotency-key browser-attempt-20260903-0001
# Reuse this key only to recover that same intended purchase:
ausca invoke browser.session '{"duration_seconds":600}' \
  --idempotency-key browser-attempt-20260903-0001

Payment rails

CLI purchases require --idempotency-key. A bare file path, @file, inline JSON, or stdin supplies business input. price --json includes binding digests. InvocationUncertainError.identity retains recovery identity on transport failure. client.probe(offer_id, input) returns the unsigned httpx.Response without consulting the payment authority, even when a funded key is configured.

Payment is a pluggable authority, never a client concern. The built-in LocalKeyAuthority pays x402 v2 with a local signing key through the official x402 library, which enforces the cap through its spend controls before anything is signed; other rails implement the same small PaymentAuthority protocol. client.pay_request(url, ...) runs one paid call against any resource the configured authority can pay; nothing in it is vendor-specific.

Artifact-backed offers

Document and media offers take an immutable artifact commitment instead of raw bytes. ausca commit file.pdf sends the bytes to Ausca's keyless temporary ingress and returns the commitment the offer input carries; the library equivalent is client.commit(data, media_type). Each call creates a fresh temporary commitment, including when the bytes match an older upload. Pass idempotency_key=... only to recover the same uncertain commit. The active offer catalog sets the usable input limit.

Successful paid state includes receipt_ref.public_url, an immutable hash-only proof of the Ausca service, public price, completion time, and receipt digest. It contains no request or result bytes, content digests, or access capabilities. Anyone holding the unguessable URL can read it.

A result larger than the offer's inline bound arrives as output_artifact instead of output. client.artifact_access(artifact_uri) mints a 60-second download URL for it; verify the bytes against content_digest. A failed invocation carries failure.code and failure.message.

The full agent contract lives at https://ausca.com/SKILL.md; discover the active offers at https://ausca.com/catalog.json. The npm equivalent is ausca, which adds a local MCP server (npx ausca mcp).

License

MIT

Metadata

Release files for ausca 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ausca 0.1.3
File Size Uploaded Provenance
ausca-0.1.3.tar.gz 17.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 30.5 kB

Release files / ausca-0.1.3.tar.gz

Download URL ausca-0.1.3.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ab9b484ec227b6ee8d82c10ac28b203e0f645c066a64d5b9634b9d30a320bd9b
BLAKE2b-256 checksum
How to use checksums
be6582312c43a24203de82125c8ec66514c44b652674356f86c7fdf7ac3c475b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / ausca-0.1.3-py3-none-any.whl

Download URL ausca-0.1.3-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbd7552afceea5eb638a91c04a28397651b89202f5afd58f2957f4d3e9802c81
BLAKE2b-256 checksum
How to use checksums
09f2070819bbf08309a462d6b0b14af2107ee6e3831935d3a70257a288fbe8a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for ausca 0.1.3

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ausca-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

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.

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