| name | zizkadb-dev-setup |
| description | Set up and start the local ZizkaDB development stack. Use when setting up ZizkaDB for the first time, restarting the local stack, or debugging service connectivity. |
ZizkaDB — Local Dev Setup
First-time setup (one command)
git clone https://github.com/Zizka-ai/ZizkaDB.git && cd ZizkaDB
bash scripts/setup-local.sh
This starts all services using Docker Compose (or falls back to native if Docker is unavailable) and runs the causal lineage demo.
What starts
Dev login (no email required)
- Open http://localhost:3001/login
- Click "Open my dashboard" — no OTP needed in dev mode
Dev API key
zizkadb_dev_local — automatically accepted by the API when ENV=development.
curl -H "Authorization: Bearer zizkadb_dev_local" http://localhost:8000/health
Quick Python smoke test
import asyncio
from zizkadb import ZizkaDB
async def main():
async with ZizkaDB(host="http://localhost:8000") as db:
event = await db.log(agent="test", event="smoke", data={"ok": True})
print(event.event_id)
asyncio.run(main())
Dev vs production Docker Compose
docker compose -f infra/docker-compose.yml -f infra/docker-compose.dev.yml up -d
docker compose -f infra/docker-compose.yml up -d
Reset local database
bash scripts/reset-local-db.sh
Environment file
Copy infra/.env.example → infra/.env and fill in:
OPENAI_API_KEY — required for db.search() and db.context_for()
JWT_SECRET — generate: openssl rand -hex 32
- Other vars have safe defaults for local dev