Installation
The Glacis Python SDK provides cryptographic attestation for AI systems. Install it to prove what your AI did, what data it saw, and what controls were active — with zero data egress.
Requirements
Section titled “Requirements”- Python 3.9 or higher
- pip, poetry, or uv (Python package manager)
Install from PyPI
Section titled “Install from PyPI”pip install glacispoetry add glacisuv pip install glacisVerify Installation
Section titled “Verify Installation”import glacis
print(glacis.__version__) # 0.5.0Available Extras
Section titled “Available Extras”Install extras to enable provider integrations, controls, and more:
# Single extrapip install glacis[openai]
# Multiple extraspip install glacis[openai,anthropic]
# Everythingpip install glacis[all]poetry add "glacis[openai]"uv pip install "glacis[openai]"| Extra | Includes | Use Case |
|---|---|---|
openai | OpenAI SDK (openai>=1.0.0) | Auto-attesting OpenAI wrapper |
anthropic | Anthropic SDK (anthropic>=0.18.0) | Auto-attesting Anthropic wrapper |
gemini | Google GenAI SDK (google-genai>=1.0.0) | Auto-attesting Gemini wrapper |
redaction | Presidio, spaCy, PyYAML | PII/PHI detection controls (scan-only, no text modification) |
jailbreak | Transformers, PyTorch, PyYAML | Jailbreak and prompt injection detection |
controls | redaction + jailbreak combined | All input/output controls |
all | All of the above + dev tools | Full SDK with every integration and control |
Getting an API Key
Section titled “Getting an API Key”- Visit glacis.io and sign up
- Create an organization
- Generate an API key (
glsk_live_...) - Pass the key to the SDK when creating a client:
glacis = Glacis(api_key="glsk_live_your_key_here")
Next Steps
Section titled “Next Steps” Quickstart Create your first attestation in under 5 minutes.
Configuration Set up glacis.yaml for controls, sampling, and storage.
OpenAI Integration Auto-attest every OpenAI call with zero code changes.
CLI Reference Verify receipts from the command line.