Skip to main content

Thin client for the Attestic AI gateway: pre-configured OpenAI/Anthropic clients + offline signed-receipt verification.

Project description

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_...")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

attestic-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

attestic-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file attestic-0.1.0.tar.gz.

File metadata

  • Download URL: attestic-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for attestic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 adc90e63907d18d940fec6c5a5a285b3d8f200c7753a1bd7f8dbc95157f79e31
MD5 81771fce4e8d63373a45abc4c73775b2
BLAKE2b-256 fa9d39a0432970879baa232733e9d86f59b7bd9f90a5607d62b0499d58f62239

See more details on using hashes here.

File details

Details for the file attestic-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: attestic-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for attestic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80cc3b9ba1a902fdb1e57eb84c6cffbed30a87f8d388cc17ec45238c03b23028
MD5 43144f1c30cb930ec7e1841633711709
BLAKE2b-256 5d904557a4b0fdf25bc1bf127042007a7444b45aa29560c7a32fe76f240f34b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page