# Kagura memory

> Kagura memory is an open-source agent skill for knowledge and memory. Gives Codex persistent project memory: recall past decisions, save lessons, restore. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/kagura-ai/memory-cloud/tree/main/plugins/kagura-memory/skills/kagura-memory
- **Repository:** https://github.com/kagura-ai/memory-cloud
- **GitHub stars:** 15
- **License:** Apache-2.0
- **Skill name:** kagura-memory
- **Collection:** https://github.com/kagura-ai/memory-cloud
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-02

## About

Kagura Memory skill connects Codex to a Kagura Memory Cloud server so decisions, rationale and troubleshooting notes survive between sessions. The agent is told to treat local git state and files as the source of truth for current code and to use the memory store only as supplemental context.

The skill covers restoring a session by pulling recent work, pinned guardrails and upcoming follow-ups, recalling prior decisions or fixes by topic, saving reusable conclusions with typed, tagged entries, and maintaining a context by reviewing outdated or superseded memories. It also covers adding the MCP server to Codex and signing back in when a token is rejected, with guidance to keep API keys out of config files and chat.

It expects a Kagura Memory Cloud endpoint, either hosted or self-hosted, and a Codex setup that supports MCP servers. No scripts are bundled; all actions go through the server's MCP tools.

## When your agent uses it

> Use Kagura Memory Cloud from Codex for long-term project memory. Trigger when the user asks to start or restore a session, recall past decisions or bug fixes, save session knowledge, remember a decision or troubleshooting note, review a context for outdated memories (maintain), inspect memory contexts, verify the kagura-memory MCP connection, or log in to it again (a Kagura tool failing with invalid_token or insufficient_scope, a new machine or workspace).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/kagura-ai/memory-cloud/tree/HEAD/plugins/kagura-memory/skills/kagura-memory)
- [License: Apache-2.0](https://github.com/kagura-ai/memory-cloud/tree/HEAD/plugins/kagura-memory/skills/kagura-memory)

## Features

- **Session restore:** Pulls recent branch state, memory highlights and upcoming follow-ups to resume work.
- **Recall past decisions:** Searches stored memories by topic, type, tag or date to find prior decisions and fixes.
- **Save reusable knowledge:** Stores decisions, bug fixes and troubleshooting notes as tagged, typed memories.
- **Memory maintenance:** Reviews a context for outdated memories and proposes updates or deletions for approval.
- **MCP connection setup:** Guides adding the Kagura MCP server to Codex config and verifying the connection.
- **Re-authentication help:** Explains how to sign in again when a token is rejected or a new machine is used.

## Good for

- Restore yesterday's project context before continuing a coding task
- Find the earlier decision about a library or architecture choice
- Save the root cause and fix of a tricky bug for later sessions
- Review a memory context for stale facts before a release
- Check that the Kagura memory server is connected to Codex

## Install

### Claude Code

This skill ships in the `kagura-memory` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

Or copy only this skill to `~/.claude/skills/kagura-memory`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kagura-ai/memory-cloud.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kagura-memory &&
cp -R "$tmp/plugins/kagura-memory/skills/kagura-memory" ~/.claude/skills/kagura-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/kagura-memory` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/kagura-memory` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kagura-ai/memory-cloud.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/kagura-memory &&
cp -R "$tmp/plugins/kagura-memory/skills/kagura-memory" ~/.agents/skills/kagura-memory &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/kagura-memory` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/kagura-memory` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kagura-ai/memory-cloud.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/kagura-memory &&
cp -R "$tmp/plugins/kagura-memory/skills/kagura-memory" ~/.cursor/skills/kagura-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/kagura-memory` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/kagura-ai/memory-cloud.git --path plugins/kagura-memory/skills/kagura-memory
```

Or copy the folder to `~/.gemini/skills/kagura-memory` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/kagura-memory`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kagura-ai/memory-cloud.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kagura-memory &&
cp -R "$tmp/plugins/kagura-memory/skills/kagura-memory" ~/.copilot/skills/kagura-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/kagura-memory` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/kagura-ai/memory-cloud.git
```

Then copy `memory-cloud/plugins/kagura-memory/skills/kagura-memory` into your agent's skills folder as `kagura-memory`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Kagura memory need to run?

A Kagura Memory Cloud endpoint, either hosted or self-hosted, configured as an MCP server in Codex, with the API key exported in the shell that starts Codex.

### Does Kagura memory change my code or files?

The skill itself directs memory reads and writes through Kagura MCP tools. Local code is treated as the source of truth and is not changed by the skill's instructions.

### When does Kagura memory trigger?

When you ask to start or restore a session, recall past decisions or bug fixes, save knowledge, maintain memory, inspect contexts, verify the connection, or log in again.

### Does Kagura memory store my API key?

No. The skill instructs that keys stay in environment variables or hidden prompts and are never written into config files or chat.

### How do I install Kagura memory in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/kagura-memory to use it in all your projects, or to .claude/skills/kagura-memory in one project. Or install the kagura-memory plugin, which includes it: /plugin marketplace add kagura-ai/memory-cloud, then /plugin install kagura-memory@kagura-memory-cloud.

### Does Kagura memory run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Kagura memory?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Kagura memory?

The closest alternatives to Kagura memory are Compound memory, Claude mem, Session memory, Unified memory and Memory.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Compound memory](https://ai-powered.com/skills/compound-memory-protocol-zero-0): Compound memory is an open-source agent skill for knowledge and memory.
- [Claude mem](https://ai-powered.com/skills/claude-mem-smartworldarafath): Claude mem is an open-source agent skill for knowledge and memory.
- [Session memory](https://ai-powered.com/skills/session-memory): Session memory is an open-source agent skill for knowledge and memory.
- [Unified memory](https://ai-powered.com/skills/unified-memory-abdullayevtemurmalik): Unified memory is an open-source agent skill for knowledge and memory.
- [Memory](https://ai-powered.com/skills/memory-maxwell2732): Memory is an open-source agent skill for knowledge and memory.
- [Memory](https://ai-powered.com/skills/memory-chachamaru127-2): Memory is an open-source agent skill for knowledge and memory.
- [Memory sync](https://ai-powered.com/skills/memory-sync): Memory sync is an open-source agent skill for knowledge and memory.
- [Remember](https://ai-powered.com/skills/remember-ajyadav013-2): Remember is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/kagura-memory
