ZizkaDB tells you when your agent stops behaving like itself. Causal lineage, time travel and behavioral baselines for any AI agent.
Project description
zizkadb-sdk
Python SDK for ZizkaDB — the operational database for AI agents.
Setup (managed cloud)
- Sign up at db.zizka.ai
- Settings → Create API key (
zizkadb_live_…; legacyagdb_live_…still works) - Pass the key to the SDK (constructor or
ZIZKADB_API_KEYenv var)
Install
pip install zizkadb-sdk
Note: There is an unrelated package called
agentdbon PyPI. Installzizkadb-sdk. Import:from zizkadb import ZizkaDB.
Scaffold a project
pip install zizkadb-sdk
zizkadb init my-agent --template basic
cd my-agent && cp .env.example .env # paste your key into ZIZKADB_API_KEY
pip install -r requirements.txt
python agent.py
Templates: basic, openai, langchain, crewai, mcp-cursor.
Quickstart
from zizkadb import ZizkaDB
# Managed cloud — paste your key from db.zizka.ai Settings
db = ZizkaDB("zizkadb_live_xxxx")
# Or use env: export ZIZKADB_API_KEY=zizkadb_live_xxxx
# db = ZizkaDB("zizkadb_live_xxxx") # same as os.getenv("ZIZKADB_API_KEY")
# Self-hosted — auto-sends local dev key (zizkadb_dev_local)
db = ZizkaDB(host="http://localhost:8000")
async with db:
result = await db.log(
agent="my-bot",
event="tool_call",
data={"tool": "search", "query": "billing"},
)
chain = await db.why(result.event_id)
chain.print()
Cloud host without an API key raises an error at init (no silent 401s).
Environment variables
| Variable | Purpose |
|---|---|
ZIZKADB_API_KEY |
Your cloud API key (preferred) |
AGENTDB_API_KEY |
Legacy alias for ZIZKADB_API_KEY |
ZIZKADB_HOST |
Self-hosted API URL |
ZIZKADB_TELEMETRY |
Set false to opt out |
Self-host dashboard
docker compose -f infra/docker-compose.yml up -dNEXT_PUBLIC_API_URL=http://localhost:8000 NEXT_PUBLIC_DEV_MODE=true npm run devindashboard/- Open http://localhost:3000/login → Open my dashboard →
- Settings → create a named API key for production
Telemetry opt-out
export ZIZKADB_TELEMETRY=false
Links
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 zizkadb_sdk-0.2.3.tar.gz.
File metadata
- Download URL: zizkadb_sdk-0.2.3.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c12dbd1e904afbcf44c92e9bd608314121e8f56b213f07ad390e64866caa596f
|
|
| MD5 |
8f3b1d2edfc6f2466bbd48d04ba15236
|
|
| BLAKE2b-256 |
194972548a1c1e8ebeba22ce53963ea629b0ccb437f7119cbdb10220c7127033
|
File details
Details for the file zizkadb_sdk-0.2.3-py3-none-any.whl.
File metadata
- Download URL: zizkadb_sdk-0.2.3-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
709c6b8e44b984c8803f14c7409fe7cb899810bb4ba6148c1197445af093ca9f
|
|
| MD5 |
a214199ff9f3d35b42a0370c8d59fdaa
|
|
| BLAKE2b-256 |
5c8f98c7a682f32be754519d21da42233ceebd49d575704ebcf4e16cb8a3bf44
|