SuperAPI AI Directory

ZizkaDB

ZizkaDB is an open-source audit trail database for AI agents, built on Postgres, providing causally linked decision logs, tamper-evident verification, session replay, time-travel debugging, agent drift detection, and support for EU AI Act Article 12 record-keeping requirements. It ensures records are tamper-evident through SHA-256 checksums and hash chains, supports hybrid keyword and vector search, provides an MCP server and Python/TypeScript SDKs, and can be self-hosted or used as a cloud service.

Open website

About this tool

ZizkaDB is an open-source database designed specifically for AI agents, with the core goal of answering the question "why did the agent do that?" It links each agent decision to the steps that led to that decision, forming a causal chain, while also serving as auditable agent memory and a tamper-evident audit log.

Main Uses

  • Audit trail: Records all agent operations; each event carries a SHA-256 checksum and is hash-chain linked per agent, verifiable that records have not been edited, deleted, or reordered.
  • Causal debugging: Through db.why(event_id) trace the root cause of an event, such as a user message, an erroneous tool call, or bad context.
  • Time-travel debugging: Through db.at(agent, timestamp) reconstruct the agent's known state at any historical moment, and support step-by-step session replay.
  • Agent memory: Through db.context_for(agent, task) return relevant historical context as prompt blocks, ranked by relevance, importance, and recency, supporting new facts superseding old facts (supersedes).
  • Drift detection: Through db.behavior_change(agent, "7d") compare behavioral changes in the last 24 hours, 7 days, 30 days, or 90 days against the preceding equivalent period, listing changes and counts in error rate, event types, steps, tools, session length, etc.
  • Compliance support: Provides support for EU AI Act Article 12 record-keeping requirements, including checksummed decision logs, causally linked history, records of write credentials and agent versions, session replay, time-travel debugging, etc.

Main Capabilities

  • Causal lineage: Each event carries parent_id, enabling recursive queries of the full causal chain.
  • Tamper-evident history: Each event has a checksum and is hash-chain linked,db.verify_chain(agent) can prove record integrity; GDPR deletion leaves a content-free tombstone record.
  • Search: Supports keyword search (no OpenAI key required), hybrid search (using embedding vectors), or local embeddings.
  • Database features: Idempotent and batch writes, retention policies, export/import, read-only and expiring keys, Prometheus metrics, backup and restore scripts.
  • Integrations: Supports LangChain, LangGraph, CrewAI, LiveKit, OpenClaw, MCP; provides Python and TypeScript SDKs; can log LLM calls to OpenAI-compatible APIs (DeepSeek, GLM, Kimi, Qwen, Groq, Ollama, vLLM, etc.), Anthropic, Google Gemini, Mistral, Cohere, AWS Bedrock, LiteLLM, etc.
  • MCP server: Allows Cursor or Claude to query causal chains via MCP configuration.
  • CI integration: Provides GitHub Actions (ZizkaDB Why and ZizkaDB Audit) for explaining test failures and verifying record integrity.

Usage

  • Quick start: Run a single container with Docker (including Postgres, API, and dashboard); one command starts it and records a demo agent run. Local development mode uses a built-in development key, and the dashboard address is localhost:3001/dashboard/activity?agent=support-bot.
  • Self-hosting: You can run a single container with Docker on your own server (in production mode, keys are generated automatically and you log in with an admin token), or clone the repository to use the full stack (separate containers for Postgres, Qdrant, Redis, API, and dashboard). The self-hosted version supports only a single agent; multi-agent requires the cloud service.
  • Cloud service: ZizkaDB Cloud provides a managed service with multi-agent support, where each agent has its own API key.
  • SDK installation:pip install zizkadb-sdk, the local API address is http://localhost:8000, and the key is zizkadb_dev_local.
  • Command-line tools:zizkadb why <event_id> to view causal chains,zizkadb test from-session <session_id> --agent my-bot to convert sessions into pytest regression tests.

Use cases

  • Teams that need to audit and debug AI agent decisions.
  • Compliance scenarios that need to meet the record-keeping requirements of Article 12 of the EU AI Act.
  • Applications that need to provide agents with persistent memory and contextual recall.
  • Production environments that need to detect agent behavior drift.
  • AI systems that need tamper-proof audit logs.

Limitations

  • The self-hosted version supports only a single agent (the first recorded agent name takes effect, and the second is rejected); multi-agent requires the cloud service.
  • The single-container self-hosted version does not include Qdrant; search and context_for() use keyword search; vector search requires the full stack with embeddings enabled.
  • The cloud service has usage limits, which are enforced by ZizkaDB Cloud; see the official documentation for details.
  • This tool supports the record-keeping obligations of Article 12 of the EU AI Act, but it cannot by itself make a system fully compliant.
  • License: the main body is AGPL-3.0, and the MCP server is MIT.
  • Specific information such as fees and pricing is not yet provided.