Offline Mode
Self-signed receipts without an API key.
Create your first cryptographic attestation in under 5 minutes.
from glacis import Glacis
glacis = Glacis(api_key="glsk_live_...")
receipt = glacis.attest( service_id="my-ai-app", operation_type="inference", input={"prompt": "What is the capital of France?"}, # Hashed locally output={"response": "Paris is the capital of France."}, # Never sent)
print(f"Attestation ID: {receipt.attestation_id}")print(f"Badge URL: {receipt.badge_url}") # Shareable verification linkInstall the SDK
pip install glacisSet your API key
export GLACIS_API_KEY=glsk_live_your_key_hereCreate an attestation
from glacis import Glacisimport os
glacis = Glacis(api_key=os.environ["GLACIS_API_KEY"])
# Attest any AI interactionreceipt = glacis.attest( service_id="my-service", operation_type="inference", input={"prompt": "Hello, world!"}, output={"response": "Hi there!"}, metadata={"model": "gpt-4", "temperature": 0.7})Verify the receipt
result = glacis.verify(receipt)print(f"Valid: {result.valid}")print(f"Signature valid: {result.signature_valid}")print(f"Merkle proof valid: {result.proof_valid}")Share the verification URL
print(f"Share this URL for third-party verification:")print(receipt.badge_url)# https://glacis.io/verify/att_xxxEach attestation includes:
| Field | Description |
|---|---|
attestation_id | Unique identifier (att_...) |
timestamp | ISO 8601 timestamp |
payload_hash | SHA-256 of your input/output |
leaf_index | Position in Merkle tree |
merkle_proof | Inclusion proof for verification |
signed_tree_head | Signed tree state from witness |
badge_url | Shareable verification URL |
Start developing immediately without an API key:
from glacis import Glacis
# Offline mode - self-signed receiptsglacis = Glacis(mode="offline")
receipt = glacis.attest( service_id="dev-testing", operation_type="inference", input={"prompt": "test"}, output={"response": "result"},)
print(f"Status: {receipt.witness_status}") # "UNVERIFIED"Offline Mode
Self-signed receipts without an API key.
OpenAI Integration
Auto-attest every OpenAI call with zero code changes.
API Reference
Complete SDK reference with all methods and options.
CLI Tools
Verify receipts from the command line.