Skip to main content

attestic (Python)

Thin client for the Attestic AI gateway.

Attestic is drop-in OpenAI- and Anthropic-compatible, so you can also just point the OpenAI or Anthropic SDK at https://api.attestic.ai. This package adds two conveniences: a pre-configured client, and offline verification of the signed provenance receipt every call produces.

pip install attestic[all]      # or attestic[openai] / attestic[anthropic]
from attestic import Attestic

at = Attestic(api_key="atk_...")   # mint a key at attestic.ai/api-keys

# OpenAI-style
r = at.openai.chat.completions.create(
    model="gpt-5.5",
    messages=[{"role": "user", "content": "Explain provenance in one sentence."}],
)
print(r.choices[0].message.content)

# Anthropic / Claude-style (same key, same gateway)
m = at.anthropic.messages.create(
    model="claude-fable-5", max_tokens=256,
    messages=[{"role": "user", "content": "hi"}],
)

# Verify a call's receipt OFFLINE — no trust in Attestic required
receipt_id = "..."                 # from the x-attestic-receipt-id response header
assert at.verify(receipt_id)       # checks Ed25519 signature + Merkle inclusion

Models route by id across OpenAI, Anthropic, Google, and NVIDIA open-weight — gpt-5.5, claude-fable-5, gemini-3.1-pro-preview, meta/llama-3.3-70b-instruct, …

Without this SDK

Nothing special required:

from openai import OpenAI
client = OpenAI(base_url="https://api.attestic.ai/v1", api_key="atk_...")
from anthropic import Anthropic
client = Anthropic(base_url="https://api.attestic.ai", api_key="atk_...")

Metadata

Release files for attestic 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 attestic 0.1.0
File Size Uploaded
attestic-0.1.0.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 8.4 kB

Release files / attestic-0.1.0.tar.gz

Download URL attestic-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
adc90e63907d18d940fec6c5a5a285b3d8f200c7753a1bd7f8dbc95157f79e31
BLAKE2b-256 checksum
How to use checksums
fa9d39a0432970879baa232733e9d86f59b7bd9f90a5607d62b0499d58f62239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

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

Download URL attestic-0.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80cc3b9ba1a902fdb1e57eb84c6cffbed30a87f8d388cc17ec45238c03b23028
BLAKE2b-256 checksum
How to use checksums
5d904557a4b0fdf25bc1bf127042007a7444b45aa29560c7a32fe76f240f34b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

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