Repository navigation
Multi Agent Apps
Saadamjad edited this page Jul 14, 2026
·
1 revision
Some applications log to many different agent names from one deployment.
Each user gets their own agent namespace:
conv-{userId}
One EC2 app serves thousands of users → thousands of logical agents.
If you create agent maria-agent and use its key in zizka.ai, but the app logs to conv-abc123, you get:
403 — This API key is scoped to agent 'maria-agent' only
- Dashboard → Settings
- Tenant-wide API key → Create
- Copy full key → set in your app:
AGENTDB_HOST=https://db.zizka.ai
AGENTDB_API_KEY=zizkadb_live_...- App can log to any agent name:
await db.log(agent=f"conv-{user_id}", event="user", data={...})Agents are auto-created on first event.
| Pattern | Key type |
|---|---|
| One Cursor MCP agent | Per-agent key |
| One support bot | Per-agent key |
| SaaS with per-user memory | Tenant-wide key |
| Microservices (one service = one agent) | Per-agent key each |
- Create tenant-wide key on db.zizka.ai
- EC2
.env:AGENTDB_HOST+AGENTDB_API_KEY(exact names, no spaces) - Deploy founder-agent with ZizkaDB migration (not Pinecone)
npm run build && pm2 restart founder-agent --update-env- Health check:
curl https://zizka.ai/api/health→ should showdbZizka - Chat once → look for
conv-{yourUserId}on dashboard
export AGENTDB_API_KEY=zizkadb_live_...
curl -s -w "\nHTTP %{http_code}\n" \
-H "Authorization: Bearer $AGENTDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agent":"conv-test-user","event":"test","data":{}}' \
https://db.zizka.ai/v1/eventsHTTP 201 = tenant-wide key works.
- Getting Started
- CONNECT.md — connect your stack
- Worked example 01
- Agents and API Keys
- Troubleshooting