Universal AI provenance layer — cryptographic receipts for every LLM call
Project description
cascade-lattice
Universal AI provenance layer. Cryptographic receipts for every LLM call.
What is CASCADE?
CASCADE creates tamper-proof receipts for AI interactions. Every LLM call—input, output, model, timestamp—gets hashed into a cryptographic chain anchored to IPFS.
One line of code. Every AI call recorded. Forever.
import cascade
cascade.init()
# That's it. Every LLM call now emits a receipt.
Installation
pip install cascade-lattice
With provider support:
pip install cascade-lattice[openai] # OpenAI support
pip install cascade-lattice[anthropic] # Anthropic support
pip install cascade-lattice[all] # All providers
Quick Start
Option 1: Auto-Patch (Zero Code Changes)
import cascade
cascade.init()
# Now use any LLM library normally
import openai
client = openai.OpenAI()
response = client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": "Hello!"}]
)
# ✓ Receipt automatically emitted to lattice
Option 2: Proxy Mode (Any Language)
# Terminal 1: Start the proxy
cascade proxy
# Terminal 2: Point your app at it
export OPENAI_BASE_URL=http://localhost:7777/v1
export ANTHROPIC_BASE_URL=http://localhost:7777/anthropic
# Run any app - Go, Rust, JavaScript, Python, anything
./your_agent
# ✓ All AI calls observed through proxy
Option 3: Manual Observation
from cascade import sdk_observe
sdk_observe(
model_id="openai/gpt-4",
input_data="What is 2+2?",
output_data="4",
metrics={"tokens": 10}
)
How It Works
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Your App │────▶│ CASCADE │────▶│ OpenAI │
│ │◀────│ (observe) │◀────│ Anthropic │
└─────────────┘ └──────┬──────┘ │ etc... │
│ └─────────────┘
▼
┌─────────────┐
│ Lattice │
│ (receipts) │
└──────┬──────┘
│
▼
┌─────────────┐
│ IPFS │
│ (permanent) │
└─────────────┘
Every observation creates a receipt containing:
- Input hash
- Output hash
- Model identifier
- Timestamp
- Merkle proof linking to genesis
Receipts are stored locally in the lattice and can be pinned to IPFS for permanent, decentralized storage.
Supported Providers
| Provider | Auto-Patch | Proxy |
|---|---|---|
| OpenAI | ✓ | ✓ |
| Anthropic | ✓ | ✓ |
| HuggingFace | ✓ | ✓ |
| Ollama | ✓ | ✓ |
| LiteLLM | ✓ | ✓ |
| Cohere | - | ✓ |
| Mistral | - | ✓ |
| Any OpenAI-compatible | - | ✓ |
CLI Commands
# Start proxy server
cascade proxy [--port 7777]
# View lattice stats
cascade stats
# List recent observations
cascade list [--limit 10]
# Pin observation to IPFS
cascade pin <merkle_root>
Genesis
CASCADE is anchored to a permanent genesis block on IPFS:
Genesis Root: 89f940c1a4b7aa65
CID: bafkreidixjlzdat7ex72foi6vm3vnskhzguovxj6ondbazrqks7v6ahmei
Every receipt chains back to genesis. The lattice grows. Discovery is reading the chain.
Why CASCADE?
- Provenance: Prove what model produced what output
- Auditability: Cryptographic trail of all AI interactions
- Compliance: Meet emerging AI transparency requirements
- Research: Build datasets from cumulative observations
- Trust: Tamper-proof records for AI accountability
Links
License
MIT License
"even still, i grow, and yet, I grow still"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cascade_lattice-0.1.1.tar.gz.
File metadata
- Download URL: cascade_lattice-0.1.1.tar.gz
- Upload date:
- Size: 264.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e113e4a4322554a45db2d4cc8db3da1b4507b08e47b6730a2d381b402883c8a2
|
|
| MD5 |
0f690500dafe5ffe090c462b03a1b1d4
|
|
| BLAKE2b-256 |
4b7b5b399317da95c053f0d1b9da027f2546ff713ce8265732e8b94e46747998
|
File details
Details for the file cascade_lattice-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cascade_lattice-0.1.1-py3-none-any.whl
- Upload date:
- Size: 284.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1169bc653ef5b2a89ec9bd61e27004707991f55d5bae86baba332c6b69ff16c0
|
|
| MD5 |
ebd47f52c4ce5b80482d7487db7708bc
|
|
| BLAKE2b-256 |
8f9ae20e5f92e02ee0a54206fd507c4e77b18eaa6782e2ec06e81c947ff09dea
|