Kagura Memory Cloud

v0.189.0
io.github.kagura-ai/memory-cloud Checked 19 days ago stale Published 1 hour ago

Persistent memory for AI assistants: store, search, and connect knowledge across conversations.

Adaptive memory for AI agents and teams — self-hosted, beyond RAG. An MCP server that gets smarter every time you search: hybrid search + a neural memory graph that learns which memories belong together. Works with Claude, ChatGPT, Gemini, Muse, and other MCP-compatible clients. Python SDK (KaguraClient, REST clients & FileIngestor) Claude Code CLI recalling memories from Kagura over MCP — ▶ watch the demo

Summary extracted from the README.

Keep the context. Change the conversation.

DolphinBench: 455 of 600 tasks (75.8%), self-tested on November 23, 2026. With Hermes and GPT 5.6 Luna, Kagura Memory Cloud passed more tasks than each memory system in the benchmark's published Hermes + Luna results (Mem0 424, Hindsight 417, Honcho 411). The run is self-reported and awaits the maintainers' review: run record · evidence · comparison.

OpenAI Plugin released: Kagura Memory Cloud is available in ChatGPT. Add the plugin and sign in to Kagura to save and recall memories in your conversations. See supported platforms for the other ways to connect.

You explained the project yesterday. Today you open a new chat, switch AI tools, or hand work to a teammate. The decisions and their reasons should come with you.

Kagura Memory Cloud gives your assistants a shared place to remember and recall that knowledge. Save a decision in one session; retrieve it in another client connected to the same workspace and context. Browse, edit, and organize the memories in the web UI.

It works with ChatGPT, Claude, Codex, Cursor, Gemini, Muse, Grok, and Microsoft 365 Copilot. Use the published ChatGPT plugin or connect a compatible client over MCP. Applications can also use the REST API or Python SDK.

When you… Use shared memory to…
Resume a project Recover decisions, constraints, and unresolved work.
Switch AI assistants Reuse the same project knowledge across tools.
Work with a team Share knowledge through workspace and context roles.
Change a decision Replace an outdated memory and retain its history.
Build an agent Retrieve relevant context without sending the entire conversation log.

Quick start

Choose how to try it

Start here What you need
Hosted Kagura AI Request an invite · Connect your AI client An invited account and a compatible AI client. Cloud registration is currently invite-only.
Self-hosted Memory Cloud Run the setup below Docker Compose, Python 3.11+, Bash, and an embedding provider.

Supported platforms

Client Start here
ChatGPT — released OpenAI Plugin Add Kagura Memory Cloud, then sign in to your Kagura AI account.
Claude / Claude Desktop Connect over remote MCP and sign in to Kagura.
Claude Code Connect MCP; add the optional plugin for session workflows.
Codex Connect MCP and install the optional skill plugin.
Cursor Add the MCP server in Cursor settings.
Gemini / Gemini CLI Use a custom MCP connector or the CLI configuration.
Muse Add a remote MCP server and sign in to Kagura.
Grok / Grok Bot Connect over remote MCP and sign in to Kagura.
Microsoft 365 Copilot Connect through MCP and OAuth, with operator setup of the OAuth client and Microsoft registration.
Other MCP clients / your own apps Use Streamable HTTP or the REST API.

The published ChatGPT plugin connects to hosted Kagura AI and requires an account. For your own Memory Cloud deployment, use the custom MCP connection instructions.

Run locally

On Linux, macOS, or Windows with WSL2, with Docker running:

git clone https://github.com/kagura-ai/memory-cloud.git
cd memory-cloud
bash setup.sh

The interactive setup generates configuration secrets, installs the pinned Python dependencies and Kagura CLI, starts the services, runs migrations, and creates an admin account and MCP configuration. It uses curl if it needs to install uv. Node.js runs inside Docker; a host Node.js installation is only needed for frontend development.

Memory search needs embeddings: configure an OpenAI API key or a reachable self-hosted embedding server. Google/GitHub sign-in is optional; the local admin can use a password and MFA. See the setup guide for manual steps and provider configuration.

Open Purpose
localhost:3000 Sign in and manage your memories.
http://localhost:8080/mcp Connect a local MCP client.
localhost:8080/redoc Explore the running server's REST API.

The root Compose stack is for local development. For a public server, use the deployment guide.

Try your first memory

  1. In the web UI, create a context named my-first-project. A context groups memories for a project or topic.

  2. Connect your AI client using MCP Client Setup. For Claude Code, setup generates a local .mcp.json; restart the client to load it. Other clients have their own configuration. Web-based clients need a reachable HTTPS server, rather than your machine's localhost.

  3. Ask the assistant:

    In Kagura's my-first-project context, remember: we chose PostgreSQL because the app needs transactions and relational queries.

  4. Open a new conversation with the connected client and ask:

    Search Kagura's my-first-project context. Which database did we choose, and why?

Look for the saved memory in the web UI and a recall tool call in the new conversation. Then repeat the question in another client with access to the same context.

Kagura stores what you or an integration explicitly saves. Connecting a client does not automatically import all of its past chats. Keep credentials out of memories and version control.

Benchmarks: accuracy and cost together

How much history does an assistant need to answer well? Our public benchmark report measures answer quality as well as cost.

LoCoMo, 472 questions across 3 conversations KMC v0.152.0 Full conversation input
Answer accuracy, strict grading 84.2% 89.0%
Memory tokens read at answer time 80% fewer Baseline
Answer-time model cost 66% lower Baseline

These are developer-run, preregistered results from November 10, 2026, excluding adversarial questions. Costs exclude memory construction and service fees. The tradeoff includes lower accuracy than full-history input; these are not official full-dataset scores or a guarantee for your workload.

A November 12 rerun of v0.156.0 scored 91.3% with lenient grading / 83.7% with strict grading. It reused the same conversations after tuning and was not preregistered. Keep it separate from the original run and its cost measurements.

DolphinBench: memory for an agent that acts

DolphinBench gives an agent three people's histories (13,539 messages) and then 600 tasks in simulated apps; a task passes only if the agent acts correctly on what it should remember. We ran it with the benchmark's Hermes setup and GPT 5.6 Luna, with Kagura Memory Cloud as the memory.

Memory (Hermes + GPT 5.6 Luna) Tasks passed, of 600 Source
Kagura Memory Cloud v0.156.0 455 (75.8%) Self-tested, November 23, 2026; under review
Mem0 424 (70.7%) Published by the benchmark
Hindsight 417 (69.5%) Published by the benchmark
Honcho 411 (68.5%) Published by the benchmark
Hermes built-in memory 394 (65.7%) Published by the benchmark
Supermemory 355 (59.2%) Published by the benchmark

Read the comparison with these limits:

  • Self-tested. The benchmark's maintainers have not verified our run. The published rows are theirs.
  • Not held out. We chose the plugin's recall settings after reading failures on the public tasks.
  • Judge route. The judge is the benchmark's model, settings and prompts, sent through the OpenAI API instead of Azure.
  • Cost. $97.90 of agent tokens at the benchmark's prices. The memory server's own models ran self-hosted and are not included.
  • Other self-tested runs awaiting review report 451 to 504 tasks, most with a different harness.

Everything needed to check the score is public: the run record and method note, the evidence ZIP with all 600 task conversations and saved judge answers, and the plugin and adapter source at the same tag.

Evaluation is ongoing. We are running additional evaluations and working to improve memory retrieval and answer accuracy. The published results above reflect the tested versions and conditions.

See the benchmark reading guide for FC and LongMemEval results, comparison limits, and the distinction between answer accuracy and retrieval metrics. English public report · 日本語・LoCoMo詳細

What you get

Capability How it helps
Hybrid retrieval Semantic search + BM25 keyword matching, with optional reranking.
Memory you can maintain Update, supersede, inspect revisions, and remove outdated knowledge.
Session continuity Bootstrap a session with context, pinned notes, upcoming items, and recent changes.
Related-memory discovery Explore a graph of related memories; supported searches can strengthen associations.
Team controls Workspaces, private/shared contexts, roles, and scoped credentials.
Web management Search and edit memories, inspect history, manage members and integrations.
Your deployment choice Self-host the Apache-licensed server and choose your embedding provider. Model and infrastructure costs depend on that choice.

MCP tools

Start with remember, recall, and reference. Session tools such as bootstrap and changes_since help an agent pick up previous work. Use update_memory or supersession when a fact changes.

The default /mcp endpoint lists the core tools. Add ?profile=full for the full catalog, or ?add_tools=explore for graph exploration. Tool visibility and access permissions are separate; workspace and context roles still apply. See tool profiles and roles.

Getting started with Claude Code

Once MCP is connected, the optional plugin adds guided session and memory workflows. In Claude Code:

/plugin marketplace add kagura-ai/memory-cloud
/plugin install kagura-memory@kagura-memory-cloud

Use /kagura-memory:session-start when you return to a project and /kagura-memory:session-summary to save useful knowledge before leaving. /kagura-memory:recall, :remember, and :maintain support day-to-day use. Installation and hook configuration are covered in MCP Client Setup; Codex users have a separate plugin setup.

How it works

People and AI clients  ── MCP / REST ──  Kagura Memory Cloud
                                       ├─ Workspace → contexts → memories
                                       ├─ PostgreSQL: records, keywords, graph
                                       ├─ Qdrant: semantic retrieval
                                       └─ Web UI: browse, edit, share

recall finds relevant memories through hybrid search. explore follows relationships for discovery. Keeping these paths separate lets you choose direct retrieval or related knowledge. Background Sleep Maintenance consolidates memory according to configuration.

Built with FastAPI, PostgreSQL, Qdrant, Redis, and Next.js. Read the architecture and core concepts for the underlying design.

Documentation

I want to… Read
Install and save my first memory Getting Started
Connect an AI client MCP Client Setup
Build an integration MCP Tools · REST API · Python SDK
Write useful memories Chunking Guide · Core Concepts
Evaluate quality Benchmarks
Deploy and operate Deployment · Troubleshooting
Find a specialist guide Documentation index
See what changed Releases · Changelog

Contribute

Bug reports, documentation improvements, and contributions are welcome. Start with CONTRIBUTING.md. Report vulnerabilities through SECURITY.md.

License

Apache License 2.0.