Agent skill

Mnemos Memory Setup

by mem9-ai in mem9-ai/mem9

Deploys a mnemo-server instance, provisions a tenant, and wires persistent memory into OpenClaw, OpenCode or Claude Code.

Apache-2.0Auto-check: notesAgent Workflows

Install Mnemos Memory Setup

skills CLI
$ npx skills add mem9-ai/mem9 --skill mnemos-setup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mem9-ai/mem9 mnemos-setup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mem9-ai/mem9.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mnemos-setup .claude/skills/mnemos-setup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mnemos-setup
GitHub stars
1.2k
Token cost
~895 tokens
SKILL.md length
292 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Deploys a mnemo-server instance, provisions a tenant, and wires persistent memory into OpenClaw, OpenCode or Claude Code.

  • Works in 3 steps: Deploy mnemo-server → Provision a tenant → Configure your agent platform
  • Setting up persistent memory for an OpenClaw, OpenCode or Claude Code agent
  • SKILL.md covers Prerequisites, Step 1: Deploy mnemo-server, Step 2: Provision a tenant and Step 3: Configure your agent…, plus 2 more sections
  • Calls go, curl and jq

What it does

This skill sets up mnemos, a persistent memory server, end to end: running the Go-based mnemo-server against a configured database connection string, then provisioning a tenant through an API call that returns a tenant id to save - stored as an apiKey value in newer configs, or as the equivalent legacy tenantID field.

From there it configures whichever agent platform is in use. OpenClaw gets a memory plugin entry in its config file, plus on newer builds an explicit hook permission so the plugin can read and upload conversation messages. OpenCode gets environment variables plus a plugin entry in its own config. Claude Code gets environment variables in its settings file plus a marketplace plugin install.

After setup it has you verify that memory is actually working end to end, and restart the chosen platform so the newly added plugin or environment variables actually take effect before relying on it.

When your agent uses it

  • Setting up persistent memory for an OpenClaw, OpenCode or Claude Code agent
  • Provisioning a new mnemos tenant and connecting it to an agent
  • Troubleshooting why a configured memory plugin isn't reporting server mode

Example prompts

  • “Set up mnemos memory for my Claude Code install.”
  • “Provision a new mnemos tenant and configure OpenCode to use it.”
  • “Configure the OpenClaw memory plugin to use mem9.”

Requirements

  • A running mnemo-server instance
  • Go toolchain to run mnemo-server

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Deploy mnemo-server
  2. Provision a tenant
  3. Configure your agent platform

What it can do on your machine

Read from SKILL.md and the folder at commit 071a4e8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • go
    • curl
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mnemos Memory Setup loads about 895 tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 292 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~895

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:84
    ment variables (add to shell profile or `.env`):

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mem9-ai/mem9 at commit 071a4e8, republished under its Apache-2.0 licence (© mem9-ai). 292 words, ~895 tokens.

Download SKILL.mdSave it as .claude/skills/mnemos-setup/SKILL.md (or your agent's skills folder).
name
mnemos-setup
description
Setup mnemos persistent memory with mnemo-server. Triggers: "set up mnemos", "install mnemo plugin", "configure memory plugin", "configure openclaw memory", "configure opencode memory", "configure claude code memory".

mnemos Setup

Persistent memory for AI agents. This skill helps you set up mnemos with any agent platform.

Prerequisites

You need a running mnemo-server instance. See the server README for deployment instructions.

Step 1: Deploy mnemo-server

bash
cd mnemos/server
MNEMO_DSN="user:pass@tcp(host:4000)/mnemos?parseTime=true" go run ./cmd/mnemo-server

Step 2: Provision a tenant

bash
curl -s -X POST http://localhost:8080/v1alpha1/mem9s | jq .
# → { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "claim_url": "..." }

Save the returned id.

  • For OpenClaw, this is the value you should store as apiKey (preferred).
  • Legacy OpenClaw config can still store the same value as tenantID, but the plugin will still use v1alpha2.
  • For Claude Code / OpenCode env vars, this remains the tenant ID value used by the current server API.

Step 3: Configure your agent platform

Pick your platform and follow the instructions:


OpenClaw

Add to openclaw.json:

json
{
  "plugins": {
    "slots": { "memory": "mem9" },
    "entries": {
      "mem9": {
        "enabled": true,
        "hooks": {
          "allowConversationAccess": true
        },
        "config": {
          "apiUrl": "http://localhost:8080",
          "apiKey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
        }
      }
    }
  }
}

Restart OpenClaw. You should see:

[mem9] Server mode (v1alpha2)

Compatibility note:

  • Preferred config: apiKey -> plugin uses v1alpha2 with X-API-Key.
  • Legacy config: tenantID -> plugin treats it as an alias for apiKey and still uses v1alpha2.
  • OpenClaw 4.23+ / 2026.4.22+ requires plugins.entries.mem9.hooks.allowConversationAccess = true so mem9 can read conversation messages in agent_end and upload them. Older OpenClaw builds that reject this hook policy should omit the hooks block and upgrade for full automatic conversation upload.
  • The underlying value is the same UUID either way.

OpenCode

Set environment variables (add to shell profile or .env):

bash
export MNEMO_API_URL="http://localhost:8080"
export MNEMO_TENANT_ID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Add to opencode.json:

json
{
  "plugin": ["mnemo-opencode"]
}

Restart OpenCode. You should see:

[mem9] Server mode (mnemo-server REST API)

Claude Code

Add to ~/.claude/settings.json:

json
{
  "env": {
    "MNEMO_API_URL": "http://localhost:8080",
    "MNEMO_TENANT_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  }
}

Install plugin:

/plugin marketplace add mem9-ai/mem9
/plugin install mnemo-memory@mnemos

Restart Claude Code.


Verification

After setup, test memory:

  1. Ask your agent: "Remember that the project uses PostgreSQL 15"
  2. Start a new session
  3. Ask: "What database does this project use?"

The agent should recall the information from memory.


Troubleshooting

ProblemFix
No MNEMO_API_URL configuredSet MNEMO_API_URL env var or apiUrl in plugin config
MNEMO_TENANT_ID is not setSet MNEMO_TENANT_ID for env-based clients, or use apiKey (preferred) / legacy tenantID in OpenClaw plugin config
Plugin not loadingCheck platform-specific config format

© mem9-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/mnemos-setup of mem9-ai/mem9.

Open the folder on GitHubat commit 071a4e8

Compare with similar skills

Mnemos Memory Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mnemos Memory Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mnemos Memory Setup this skillmem9-ai/mem91.2k—~895Automated safety check: NotesApache-2.0
Coding Agent Session Findercode-yeongyu/oh-my-openagent70k1 repos~2.8kAutomated safety check: PassCustom licence
Claude-Mem Cloud Syncthedotmack/claude-mem98k1 repos~1kAutomated safety check: NotesApache-2.0
Cognee CLI Memory Commandstopoteretes/cognee32k1 repos~2.2kAutomated safety check: NotesApache-2.0
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Claude-Mem Searchthedotmack/claude-mem98k1 repos~511Automated safety check: PassApache-2.0

Similar skills

  • Coding Agent Session Finder

    code-yeongyu/oh-my-openagent

    Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.

    70k GitHub starsUsed in 1 repo~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Claude-Mem Cloud Sync

    thedotmack/claude-mem

    Checks claude-mem cloud sync status and guides you through connecting a cmem.ai Pro account without the sync token ever passing through the chat.

    98k GitHub starsUsed in 1 repo~1k tokens
    Agent WorkflowsAuto-check: notes
  • Cognee CLI Memory Commands

    topoteretes/cognee

    Drives cognee from the terminal with remember, recall, forget and improve memory commands, dataset and config management and database migrations.

    32k GitHub starsUsed in 1 repo~2.2k tokens
    Agent WorkflowsAuto-check: notes
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • Claude-Mem Search

    thedotmack/claude-mem

    Searches the user's persistent cross-session memory for timestamped observations synthesized from past agent sessions on cmem.ai.

    98k GitHub starsUsed in 1 repo~511 tokens
    Agent WorkflowsAuto-check passed
  • Beads Task Memory

    gastownhall/beads

    Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.

    28k GitHub stars~1.2k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from mem9-ai/mem9

  • Routes setup, troubleshooting and uninstall flows for mem9, a persistent cloud memory plugin for OpenClaw, and defines strict rules for config keys and API key handling.

    1.2k GitHub stars~1.4k tokensUpdated 10 days ago
    Auto-check passed

Categories

Questions about Mnemos Memory Setup

What does Mnemos Memory Setup do?

Deploys a mnemo-server instance, provisions a tenant, and wires persistent memory into OpenClaw, OpenCode or Claude Code. This skill sets up mnemos, a persistent memory server, end to end: running the Go-based mnemo-server against a configured database connection string, then provisioning a tenant through an API call that returns a tenant id to save - stored as an apiKey value in newer configs, or as the equivalent legacy tenantID field.

When should I use Mnemos Memory Setup?

Mnemos Memory Setup fits situations like: setting up persistent memory for an OpenClaw, OpenCode or Claude Code agent; provisioning a new mnemos tenant and connecting it to an agent; troubleshooting why a configured memory plugin isn't reporting server mode.

How do I install Mnemos Memory Setup in Claude Code?

Run `npx skills add mem9-ai/mem9 --skill mnemos-setup -a claude-code`. Or copy the skill folder (skills/mnemos-setup in mem9-ai/mem9) into .claude/skills/mnemos-setup in your project. Claude Code loads it when a task matches its description.

How do I install Mnemos Memory Setup in Codex?

Run `npx skills add mem9-ai/mem9 --skill mnemos-setup -a codex`. Or copy the skill folder (skills/mnemos-setup in mem9-ai/mem9) into .agents/skills/mnemos-setup in your project. Codex loads it when a task matches its description.

Can I use Mnemos Memory Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mem9-ai/mem9 --skill mnemos-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mnemos-setup, .gemini/skills/mnemos-setup, .github/skills/mnemos-setup and .opencode/skills/mnemos-setup in your project.

What does Mnemos Memory Setup need to run?

Going by SKILL.md and its folder, Mnemos Memory Setup needs the command-line tools its instructions call (go, curl and jq). Our summary lists: A running mnemo-server instance; Go toolchain to run mnemo-server.

Does Mnemos Memory Setup access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Mnemos Memory Setup safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Mnemos Memory Setup use?

Mnemos Memory Setup is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mnemos Memory Setup use?

About 895 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Mnemos Memory Setup?

Skills that share tags, products or a category with Mnemos Memory Setup: Coding Agent Session Finder (code-yeongyu/oh-my-openagent, 70k stars), Claude-Mem Cloud Sync (thedotmack/claude-mem, 98k stars), Cognee CLI Memory Commands (topoteretes/cognee, 32k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mnemos Memory Setup?

mem9-ai (a GitHub organization) maintains it in mem9-ai/mem9, which has 1,223 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 29, 2026.

Source: mem9-ai/mem9 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.