ZizkaDB — Audit Trail Database for AI Agents

A tamper-evident record of every AI agent decision, linked to its cause, so an auditor can prove nothing was changed.

Stars
★ 165
Last updated
1d ago
FARS reviewed
Dec 03, 2026
License
AGPL-3.0
Primary language
Python

At a glance

Works with
Universal · cross-platformOpenAI API · Claude API
You'll need
DockerPostgreSQLQdrant (optional, for vector search)Redis (full stack only)Shell / CLINetwork accessLocal filesystemMCP Server
Typical use
A bank's credit agent approves or declines a loan, and internal audit must later show a regulator which user request and which tool lookup produced that decision; db.why() returns the chain in one call.
Main limitation
The open-source edition is capped at one agent and one API key; a second agent name is rejected on self-host, so multi-agent work requires Cloud or Enterprise.
Website
db.zizka.ai ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-03
Source review
67/100 · Some gaps

What does this agent do, and when should you use it?

ZizkaDB is an audit trail database aimed at AI agents operating in regulated industries such as banking, insurance, healthcare and the public sector. Agents write events — user messages, LLM responses, tool calls, tool results — into PostgreSQL, and each event carries a parent_id pointing at the event that caused it, so a single db.why() call walks back to the originating cause. Every event is checksummed with SHA-256 and hash-chained per agent, so db.verify_chain() proves no record was edited, removed or reordered; GDPR erasure leaves a content-free tombstone and the chain still verifies. You reach it through the Python and TypeScript zizkadb-sdk clients, adapters for LangChain, LangGraph, CrewAI and LiveKit, an OpenClaw plugin, a zizkadb-mcp MCP server, a REST API and a bundled dashboard. Deployment is explicit: one curl command and a single Docker container for self-hosting, a multi-container Postgres + Qdrant + Redis stack from a clone, managed ZizkaDB Cloud on AWS Frankfurt (eu-central-1), or Enterprise single-tenant in your own VPC under a commercial licence. The open-source edition covers one agent with one API key; compliance controls such as evidence packs, legal hold and hourly RFC 3161 timestamps live in the paid editions.

Writes are made with db.log(agent=..., event=..., data=..., parent_id=...); the server computes a SHA-256 checksum over the content plus audit fields (agent, session, parent, timestamp, sequence) and appends the event to that agent's hash chain, sealing metadata.written_by and any agent_version into the checksum. Reads: db.why(event_id) returns the causal chain and prints it; db.at(agent, timestamp) rebuilds what the agent knew at a past moment; db.behavior_change(agent, window) compares the last 24h/7/30/90 days against the prior period and lists error rate, event types, steps, tools and session length with counts on both sides; db.context_for(agent, task) returns relevant past events as a prompt block ranked by relevance, importance and recency; db.search(query, mode=) uses Postgres full-text search and becomes hybrid keyword+vector once embeddings are enabled. Audit operations: db.verify_chain(agent), db.forget(key, value) which erases from storage and the search index while leaving a tombstone, db.export_events()/db.import_events() as portable NDJSON, and server-side settings for retention, redaction and /metrics. Writes can be made idempotent with idempotency_key or batched up to 500 events via log_batch, and db.iter_events() cursor-pages the full history. The same checks are exposed over REST at GET /v1/events/verify and GET /v1/events/chain, and the CLI offers zizkadb why <event_id> plus zizkadb test from-session to turn a bad session into a pytest regression test. A dashboard shows an agent's timeline as event-type spikes with errors in red.

  1. A bank's credit agent approves or declines a loan, and internal audit must later show a regulator which user request and which tool lookup produced that decision; db.why() returns the chain in one call.
  2. An insurer's claims agent denies a claim and the customer objects; compliance uses db.at(agent, timestamp) to reconstruct exactly what the agent knew at that moment.
  3. A healthcare or public-sector body needs EU AI Act Art. 12 automatic event logging plus at least six months of retention under Art. 19/26(6); it sets retention per agent and exports checksummed NDJSON for the auditor.
  4. An agent developer sees production behaviour drift and runs db.behavior_change(agent, "7d") to compare error rate, tool mix and session length against the previous week instead of guessing.
  5. A team wants prior runs to serve as memory for the next one and calls db.context_for(agent, task), which still works with keyword-only search and no OpenAI key.
  6. A team adds ZIZKA-AI-SL/zizkadb-why-action to a GitHub Actions workflow to explain failing agent tests in a PR and verify the recorded history is intact.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • curl -fsSL https://raw.githubusercontent.com/ZIZKA-AI-SL/ZizkaDB/main/scripts/quickstart-remote.sh | bash
  • docker run -d --name zizkadb -e ENV=development \
  • docker run -d --name zizkadb -p 3001:3001 -v zizkadb_data:/data ghcr.io/zizka-ai-sl/zizkadb
  • pip install zizkadb-sdk
Ports
8000 · 3001
Environment variables
GEN_SELFHOST_ADMIN_TOKEN DEV_API_KEY SELFHOST_ADMIN_TOKEN ZIZKADB_HOST ZIZKADB_API_KEY
Config files
infra/.env
Install notes cover
Docker

How do you install or deploy this agent?

The fastest self-hosted path is a single container; Docker must be running:

curl -fsSL https://raw.githubusercontent.com/ZIZKA-AI-SL/ZizkaDB/main/scripts/quickstart-remote.sh | bash

That script wraps this docker run, which starts in development mode with ports bound to 127.0.0.1 only:

docker run -d --name zizkadb -e ENV=development \
  -p 127.0.0.1:8000:8000 -p 127.0.0.1:3001:3001 \
  -v zizkadb_data:/data ghcr.io/zizka-ai-sl/zizkadb

On a server the container generates its own secrets on first start, dashboard and API share port 3001, and you sign in with the admin token:

docker run -d --name zizkadb -p 3001:3001 -v zizkadb_data:/data ghcr.io/zizka-ai-sl/zizkadb
docker exec zizkadb sed -n 's/^GEN_SELFHOST_ADMIN_TOKEN=//p' /data/secrets.env

Install the client on the agent side, or the MCP server:

pip install zizkadb-sdk
npm install zizkadb-sdk
uvx zizkadb-mcp

For vector search or a production split deployment (Postgres, Qdrant, Redis, API and dashboard as separate containers):

git clone https://github.com/ZIZKA-AI-SL/ZizkaDB.git && cd ZizkaDB
bash scripts/setup-local.sh

The local API is http://localhost:8000 with the built-in dev key zizkadb_dev_local. A production install sets ENV=production, a non-default DEV_API_KEY and SELFHOST_ADMIN_TOKEN in infra/.env.

How do you use this agent?

Log two events and read the causal chain back (example from the README):

import asyncio
from zizkadb import ZizkaDB

async def main():
    async with ZizkaDB(host="http://localhost:8000") as db:
        user = await db.log(agent="my-bot", event="user_message", data={"text": "Why is my order late?"})
        tool = await db.log(agent="my-bot", event="tool_call", data={"tool": "lookup_order"}, parent_id=user.event_id)
        (await db.why(tool.event_id)).print()

asyncio.run(main())

To capture every provider call without writing db.log() yourself, instrument the client once; OpenAI-compatible APIs, Anthropic, Gemini, Mistral, Cohere, Bedrock, LiteLLM and local models are covered:

import zizkadb
from zizkadb import ZizkaDB

zizkadb.instrument(ZizkaDB(host="http://localhost:8000"), agent="my-bot")

Prove the history is intact before handing it to an auditor:

proof = await db.verify_chain("my-bot")
print(proof)

To ask why from inside Cursor or Claude, register the MCP server:

{
  "mcpServers": {
    "zizkadb": {
      "command": "uvx",
      "args": ["zizkadb-mcp"],
      "env": { "ZIZKADB_HOST": "http://localhost:8000" }
    }
  }
}

Against ZizkaDB Cloud, pass ZIZKADB_API_KEY instead of ZIZKADB_HOST. The dashboard runs at http://localhost:3001; click any event and open the Why? (causal) tab.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • Causality is built in: every event stores a parent_id and db.why() returns the root-cause chain in one call instead of forcing a human to read a span tree.
  • Tamper evidence is executable, not declarative: a SHA-256 checksum per event plus a per-agent hash chain, verified by db.verify_chain() or GET /v1/events/chain.
  • GDPR erasure and verifiability coexist — db.forget() wipes personal data and the search index but leaves a content-free tombstone so the chain still verifies.
  • Postgres alone is enough to start: full-text keyword search, why(), time travel and context_for() work with no Qdrant and no OpenAI key.
  • Four delivery paths share one event model: single-container Docker self-host, multi-container stack from a clone, Cloud on AWS Frankfurt, and Enterprise in your own VPC.
  • Broad integration surface: Python and TypeScript SDKs, LangChain, LangGraph, CrewAI, LiveKit, an OpenClaw plugin, an MCP server and a documented REST API.
Limitations
  • The open-source edition is capped at one agent and one API key; a second agent name is rejected on self-host, so multi-agent work requires Cloud or Enterprise.
  • The controls auditors usually ask for last — evidence packs, legal hold, minimum retention, auditor read-only keys, hourly RFC 3161 timestamps and the fleet view — are not in the open-source code.
  • AGPL-3.0 (MCP server is MIT) carries network-use source disclosure obligations; closed-source products need the commercial licence.
  • The full stack means operating PostgreSQL, Qdrant, Redis and several containers; the single container, by contrast, degrades to keyword-only search with no vector hybrid.
  • An audit trail grows monotonically, so retention, redaction patterns and backup/restore must be planned and rehearsed by the adopting team.
  • The operator console and VPC deployment live in a private repository, so open-source users cannot replicate Cloud-grade operations on their own.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
ZizkaDB — Audit Trail Database for AI Agents This agent 67 · Some gaps — ★ 165 1d ago Python OpenAI API · Claude API
(S)AGE Governed Agent Memory 67 · Some gaps Desktop appFree ★ 268 today Go Codex · Claude Code
ARTEX Autonomous Pentesting 71 · Some gaps Self-hosted serviceFree + model costs ★ 3k 1d ago Go OpenAI API · Claude API
Carbon Manufacturing Operations 60 · Some gaps Hosted serviceFreemium ★ 2.9k today TypeScript —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
67/ 100 5-point scale 3.4 / 5
Trust 16/29
Reliability 8/14
Adaptability 15/18
Convention 14/18
Effectiveness 9/13
Verifiability 5/8
Why each dimension lost points
Trust16 / 29 · 2.8/5

The evidence shows a real auth dependency split (get_tenant vs require_dashboard_session), agent-scoped API key isolation, production startup guards that reject default secrets, pre-storage redaction, and GDPR tombstone deletion. These are substantive least-privilege and sensitive-data measures. Deductions: production CORS wildcard is only warned about, not blocked; a well-known dev key exists in development mode; the MCP server defaults to the cloud host and sends anonymous telemetry by default (opt-out available); destructive operations are gated by dashboard sessions but no explicit confirmation flow is shown; rollback relies mainly on backups/export-import with no code or migration rollback procedure; dependency security has policy and CodeQL, but no lockfile or SBOM evidence is included in the packet.

Reliability8 / 14 · 2.9/5

Code and docs show reasonable failure handling: MCP returns structured error dicts, startup guards give actionable messages, and the doctor command checks dependencies. Dependencies are mainstream and CI installs/tests them. Deductions: SECURITY.md says the current supported line is 0.5.x while core/main.py sets API_VERSION to 0.8.0, an internal consistency issue; Python dependency versions are not shown as locked in the packet, so dependency availability is inferred from CI rather than directly evidenced.

Adaptability15 / 18 · 4.2/5

README routes compliance leads, developers, and operators to different entry points, and covers single-container Docker, full stack, self-hosted server, Redu Cloud, VPC Enterprise, plus Python/TypeScript/MCP and multiple framework integrations. Environment fit is broad. Deductions: capability boundaries are stated (self-hosted single-agent, Cloud multi-agent) but some marketing language is broad; skill trigger descriptions are clear but the sample is limited, so trigger precision across all scenarios is not proven.

Convention14 / 18 · 3.9/5

Information architecture is strong: README has a table of contents, role-based navigation, quickstart, integration table, regulation mapping, and FAQ entry points. Install notes cover one-command, docker run, clone-based self-hosting, server deployment, and cloud deployment. The AGPL-3.0 LICENSE file is present and the MCP MIT license is noted. Deductions: legacy AGENTDB_* naming compatibility indicates a rename history; examples and FAQ are only entry points in the packet, not full content; known limitations are scattered across README/ADRs; CHANGELOG is referenced but not included; maintenance responsibility has a security contact and maintainer doc reference, but publisher identity is unverified.

Effectiveness9 / 13 · 3.5/5

Outputs include causal chains, hash-chain verification, time travel, behavior-change reports, and portable NDJSON, with a dashboard and CLI, so output usability is good for ordinary audit use. Causal lineage and tamper-evident chaining provide differentiated value versus ordinary logs/traces. Deductions: output usability is demonstrated mainly through documentation examples, not execution; the comparison to Langfuse/LangSmith/Mem0 is self-asserted; AGPL-3.0 imposes copyleft cost for commercial embedding, so cost-benefit depends on the use case.

Verifiability5 / 8 · 3.1/5

Many README claims trace to ADRs, source files, tests, and SECURITY policy: auth split, audit chain, redaction, and token-usage convention all have corresponding documents or code. ADR-006 explicitly separates decision, trade-offs, and consequences. Deductions: some badges and 'audited' claims cannot be independently verified from the packet; cross-source corroboration concentrates on core mechanisms, while marketing claims lack third-party evidence; fact/inference separation is good in ADRs but README still mixes product claims with verifiable facts.

Risks and how to mitigate them
  • The MCP server defaults to https://db.zizka.ai and sends anonymous install telemetry by default (disable with ZIZKADB_TELEMETRY=false); confirm data flows and host configuration before use in regulated environments.
  • The open-source self-hosted edition is limited to one agent and one API key; multi-agent use requires Cloud or Enterprise, so confirm edition boundaries before deployment.
  • SECURITY.md states the current supported line is 0.5.x while the code sets API_VERSION to 0.8.0; version and patch policy should be confirmed with the maintainer.
  • AGPL-3.0 carries network-service copyleft obligations; assess license impact before commercial embedding or offering it as a service.
  • Publisher identity is unverified; security contact and maintenance responsibility are documented, but organizational identity and long-term maintenance commitments cannot be independently confirmed from the packet.
Evidence confidence: Low Reviewed Dec 03, 2026 Reviewed revision 70b864102380
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/zizkadb.svg)](https://followagents.com/en/agents/zizkadb)
<a href="https://followagents.com/en/agents/zizkadb"><img src="https://followagents.com/badge/zizkadb.svg" alt="FARS review"></a>
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts