{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "zizka-ai-sl-zizkadb--self-host-agent-audit-trail",
 "repo": "ZIZKA-AI-SL/ZizkaDB",
 "repo_url": "https://github.com/ZIZKA-AI-SL/ZizkaDB",
 "repo_slug": "zizka-ai-sl-zizkadb",
 "title": "Self-host a tamper-evident audit log for your agents",
 "page_title": "How to self-host a tamper-evident audit log for your agents with ZizkaDB",
 "summary": "Run ZizkaDB in Docker and log your agent's events through the Python or TypeScript SDK into a hash-chained record you can verify and query.",
 "who": "A team running AI agents in production, especially in regulated settings, that needs a durable record of what each agent did and why.",
 "problem": "Ordinary logs can be edited or lost, and they do not link a tool call back to the message and model response that caused it.",
 "outcome": "A local ZizkaDB with a dashboard on port 3001 and API on 8000, where every event is checksummed and chained, so you can prove nothing was edited or removed.",
 "steps": [
  "Run locally: `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`",
  "Open the dashboard at localhost:3001; development mode signs you in with one click",
  "Install the SDK: `pip install zizkadb-sdk`",
  "Log events from your agent with db.log, passing parent_id so events link into a chain",
  "For a server, copy .env.example and run `bash scripts/init-secrets.sh`, then set ENV=production, a new DEV_API_KEY and SELFHOST_ADMIN_TOKEN",
  "Check integrity with db.verify_chain for an agent"
 ],
 "agent_prompt": "Add ZizkaDB logging to my agent in <file>: log user_message, llm_response and tool_call events with parent_id links using zizkadb-sdk against http://localhost:8000. Then show me how to verify the chain for this agent.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "In production the API refuses to start if DEV_API_KEY is left at its default.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "python",
 "requirements": [
  "Docker",
  "Python or TypeScript SDK for integration"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The admin token and API keys control the whole audit store; keep them out of commits."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/zizka-ai-sl-zizkadb/self-host-agent-audit-trail/",
 "md": "https://dedupedai.com/use-cases/zizka-ai-sl-zizkadb/self-host-agent-audit-trail/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/zizka-ai-sl-zizkadb--self-host-agent-audit-trail.json",
 "api_version": "v1"
}
