From zero to persistent memory across every session.
One server, one MCP connection, one prompt.
Clone the repo and run the interactive installer. Zikra is a single Python process — no Docker, no database setup, no config files to hand-write. The installer generates your admin token and writes a .env file automatically.
Expose to other machines — run Cloudflare Tunnel for a free, permanent public URL:
Open Claude Code → Settings → MCP → Add Server and paste your server's endpoint. This gives Claude Code native access to Zikra tools — search, save, and recall memory directly from any conversation.
Replace your-server:8000 with localhost:8000 for a local install, or your Cloudflare Tunnel URL for remote access. The installer writes this automatically for local installs — you can skip this step if you ran it on the same machine.
Paste the prompt for your agent into a session. Handles both first install and updates — run the same prompt any time to install or refresh.
Claude Code
Gemini CLI
Re-run the installer and choose Gemini CLI when asked "Other AI tools to integrate with?". The installer writes hook entries into ~/.gemini/settings.json automatically.
Hooks fire on AfterModel and SessionEnd. Token counts are parsed from the Gemini JSONL transcript. The same statusline bar you see in Claude Code appears before each terminal prompt.
Codex CLI
Same installer step — choose Codex CLI or Both. Writes hook entries into ~/.codex/config.toml (or hooks.json on newer Codex versions).
Hooks fire on Stop and PostToolUse. Token counts are parsed from history.jsonl. Shell statusline sourced into your RC file automatically.
Claude Code will ask for your server URL and token, then install:
Auto-saves a memory at the end of every Claude Code session. You never have to type "save this".
Saves context before Claude compacts long conversations, so nothing is lost when the context window fills.
Live bar below the input showing run counts, memory count, and context usage.
Once the onboarding prompt finishes, memory is live from the first message of every new session.
When you end a Claude Code session, the Stop hook fires automatically and saves a summary to Zikra. No manual action needed.
Ask Claude "what did we decide about auth?" and it searches Zikra automatically using hybrid vector + keyword search.
Run the same onboarding prompt on any machine. Every machine connects to the same memory pool — one server, every device.
Server and Claude Code hooks update independently. Both are one command.
Pull latest and restart. Your .env and database are untouched.
Claude Code — re-run the onboarding prompt. Detects your existing install, refreshes only what changed, preserves token and config.
Gemini CLI / Codex CLI — re-run the installer. Hook scripts are replaced in-place; tool configs are updated non-destructively.
MCP server settings never need manual updates.
Zikra is actively used and maintained. Bugs get fixed fast.