open-memory-protocol

作者 SMJAI已验证

An open standard for portable, interoperable AI memory across tools, sessions, and devices.

72
Stars
2
Forks
TypeScript
语言
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/SMJAI/open-memory-protocol

快速入门

使用 open-memory-protocol 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Open Memory Protocol (OMP)

An open standard for portable, interoperable AI memory across tools, sessions, and devices.

License Spec Version Server GitHub

Try it now — no install needed:

https://omp-server-production.up.railway.app/app

The Problem

Every AI tool remembers you differently — and only within its own walls.

  • Claude knows what you told it yesterday. Cursor doesn't.
  • ChatGPT learned your preferences. Your custom agent hasn't.
  • Copilot saw your code style. Your terminal AI is starting from zero.

Every time you switch tools, your AI forgets you. You repeat yourself. Context is lost. The AI that was finally starting to know you resets to a stranger.

This is the AI memory silo problem. And it has the same solution as every silo problem before it: an open protocol.


What is OMP?

Open Memory Protocol is a vendor-neutral specification for how AI tools store, retrieve, and share memory about users and their context.

It is:

  • A specification — a precise definition of memory objects, storage format, and HTTP API
  • A reference server — self-hostable, open-source, runs in Docker in one command
  • A set of SDKs — TypeScript and Python libraries for building OMP-compatible tools
  • A set of adapters — plug-ins for Claude (MCP), OpenAI, Cursor, and more

Any AI tool that implements OMP can instantly share memory with any other OMP-compatible tool.


Quick Start

Option A — Hosted server (zero setup)

The OMP reference server is publicly hosted. Just point your tools at it:

https://omp-server-production.up.railway.app
curl https://omp-server-production.up.railway.app/v1/health
# {"status":"ok","version":"0.1","compliance":"OMP-Core","memories_count":0}

Mobile PWA — open on any phone, no install needed:

https://omp-server-production.up.railway.app/app

Option B — Self-hosted (your own server)

Requirements: Node.js 22 or newer

npx omp-server

Or with Docker:

docker run -p 3456:3456 -v omp-data:/data ghcr.io/smjai/omp-server

Your server is now running at http://localhost:3456. Test it:

curl http://localhost:3456/v1/health
# {"status":"ok","version":"0.1","compliance":"OMP-Core","memories_count":0}

2. Connect Claude (via MCP)

Replace http://localhost:3456 with https://omp-server-production.up.railway.app if using the hosted server.

Find your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Windows (Store app): %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json

Add to it:

{
  "mcpServers": {
    "omp": {
      "command": "npx",
      "args": ["omp-mcp"],
      "env": {
        "OMP_SERVER": "http://localhost:3456",
        "OMP_API_KEY": "your-omp-key"
      }
    }
  }
}

To enable AI-powered memory extraction and compression, also set these on the server:

OMP_AI_PROVIDER=anthropic   # or "openai"
OMP_AI_API_KEY=sk-ant-...   # your Anthropic or OpenAI key

3. Make Claude use OMP automatically

Without a system prompt, you have to ask Claude to use OMP tools manually. To make it automatic, create a Project in Claude Desktop and add this system prompt:

You have access to OMP memory tools (omp_remember, omp_recall, omp_list).

At the start of every conversation, use omp_recall to search for memories 
relevant to what the user is asking about.

Whenever the user shares anything worth remembering — preferences, decisions, 
projects, facts about themselves — automatically use omp_remember to save it 
without being asked.

Never tell the user you are saving a memory. Just do it silently.

This makes OMP invisible — Claude just remembers, automatically, across every session.

4. Continue a conversation in a different AI tool — automatically

The OMP Bridge browser extension makes this seamless. No copying JSON, no manual steps.

How it works:

  1. Chat with ChatGPT about anything
  2. The extension silently saves your conversation to your OMP server every 2 minutes
  3. Open Claude.ai (or any other AI) to start a new chat
  4. A toast notification appears: "Continue from ChatGPT? [topic]"
  5. Click "Continue in Claude" — OMP generates a natural handoff brief and injects it
  6. Claude responds as if it was in the conversation the whole time

You can also save manually at any point: click the OMP Bridge extension icon → "Save this conversation to OMP".

The handoff brief (AI-generated) looks like:

We were exploring MCP (Model Context Protocol) with ChatGPT — specifically what it
is, how it compares to function calling, and why it's more portable across providers.
I'm ready to go deeper on real-world implementations. Can you show me how to build
an MCP server from scratch?

API — save and replay conversations programmatically:

# Save a conversation
curl -X POST http://localhost:3456/v1/conversations \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chatgpt",
    "topic": "MCP deep dive",
    "messages": [
      {"role": "user", "content": "Tell me about MCP"},
      {"role": "assistant", "content": "MCP stands for..."}
    ]
  }'

# Generate a handoff brief for another model
curl -X POST http://localhost:3456/v1/handoff \
  -H "Content-Type: application/json" \
  -d '{
    "conversation_id": "conv_abc123",
    "target_model": "claude"
  }'
# → { "brief": "We were exploring MCP with ChatGPT...", "topic": "...", "source_model": "chatgpt" }

Write a memory from any tool

curl -X POST http://localhost:3456/v1/memories \
  -H "Content-Type: application/json" \
  -d '{
    "content": "User prefers TypeScript over JavaScript and dislikes verbose comments",
    "type": "semantic",
    "source": { "tool": "claude" },
    "tags": ["preferences", "coding"]
  }'

Query from any other tool

curl "http://localhost:3456/v1/memories/search?q=coding+preferences"

How It Works

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   Claude    │     │   Cursor    │     │  Your Agent │
│  (MCP)      │     │  (SDK)      │     │  (REST API) │
└──────┬──────┘     └──────┬──────┘     └──────┬──────┘
       │                   │                   │
       └───────────────────┼───────────────────┘
                           │
                  ┌────────▼────────┐
                  │   OMP Server    │
                  │  (self-hosted)  │
                  │                 │
                  │  ┌───────────┐  │
                  │  │  SQLite   │  │
                  │  │  / Pgvec  │  │
                  │  └───────────┘  │
                  └─────────────────┘

Every tool reads and writes to a single OMP server you control. One memory store. All tools. Zero silos.


The Spec

OMP defines:

  • Memory Object — the canonical schema for a memory (content, type, source, tags, timestamps, optional embedding)
  • Memory Typesepisodic (events), semantic (facts/preferences), procedural (how-to knowledge)
  • REST API — standard CRUD + semantic search endpoints
  • Authentication — bearer token, per-tool API keys
  • Export/Import — portable JSON format for moving memories between servers

Read the full specification: SPEC.md


Memory Object

{
  "id": "mem_01j9xk2p3q4r5s6t",
  "content": "User is building a fintech startup, prefers clean architecture, dislikes over-engineering",
  "type": "semantic",
  "source": {
    "tool": "claude",
    "session_id": "sess_abc123",
    "timestamp": "2026-06-29T12:00:00Z"
  },
  "tags": ["profile", "preferences", "engineering"],
  "created_at": "2026-06-29T12:00:00Z",
  "updated_at": "2026-06-29T12:00:00Z",
  "expires_at": null
}

Adapters

ToolStatusHow
Claude Desktop✅ WorkingMCP adapter — automatic memory save/recall
Claude.ai (web)✅ WorkingOMP Bridge extension — handoff toast on new chat
ChatGPT (web)✅ WorkingOMP Bridge extension — reads DOM, saves conversation
Gemini (web)✅ WorkingOMP Bridge extension
Perplexity (web)✅ WorkingOMP Bridge extension
Claude Code (CLI)✅ Workingclaude mcp add omp-mcp — same MCP tools
Cursor✅ Workingomp inject --for cursor — writes .cursorrules
GitHub Copilot✅ Workingomp inject --for copilot — writes .github/copilot-instructions.md
Codex CLI✅ Workingomp inject --for codex — writes AGENTS.md
Any AI CLI✅ Workingomp context | <cli> or omp save
Mobile (PWA)✅ WorkingOpen /app on phone → Add to Home Screen
Mobile (iOS Shortcut)✅ WorkingOne tap → copies OMP context → paste into any app
Remote / cloud✅ LiveHosted at omp-server-production.up.railway.app — or self-host on Railway / fly.io / Docker
Custom (REST)✅ AvailableAny HTTP client

AI Coding Tools (Claude Code, Cursor, Copilot, Codex CLI)

Install the omp CLI:

npm install -g omp-cli

Claude Code (VS Code or terminal) — full MCP integration:

omp setup claude-code   # prints the exact command to run
# then run:
claude mcp add omp -- npx omp-mcp

Claude Code gets omp_remember, omp_recall, omp_compress as tools — same as Claude Desktop.

Cursor — injects memories into .cursorrules:

omp inject --for cursor   # run this in your project folder
# Cursor reads .cursorrules automatically on every chat

GitHub Copilot — injects memories into .github/copilot-instructions.md:

omp inject --for copilot

OpenAI Codex CLI — injects into AGENTS.md (auto-read by Codex):

omp inject --for codex && codex
# OR pipe directly:
codex --instructions "$(omp context)"

Continue.dev and any other CLI:

omp context | <your-ai-cli>   # pipe memories as context
omp handoff --from chatgpt    # continue a web conversation in a CLI

Cross-tool handoff (web → CLI or CLI → web):

# ChatGPT → Claude Code
claude "$(omp handoff --from chatgpt)"

# Claude.ai → Codex
codex --instructions "$(omp handoff --from claude)"

# Save any CLI session back to OMP
omp save --model codex < session.txt

OMP Bridge — Browser Extension

The browser extension brings OMP to the web versions of every AI tool with zero setup on their side.

What it does:

  • Shows a floating 🧠 button on Claude.ai, ChatGPT, Gemini, and Perplexity
  • Displays your OMP memories from your server
  • One click to inject your memories into any chat — the AI instantly knows your context
  • Works cross-model: inject the same memories into ChatGPT that Claude saved

Install (Chrome / Edge / Brave):

cd adapters/browser-extension
npm install && npm run build

Then open chrome://extensions → Enable Developer modeLoad unpacked → select the adapters/browser-extension folder.

Want to build one? An adapter is typically 100–200 lines — read CONTRIBUTING.md and use adapters/claude-mcp as a template.


SDKs

The OMP API is plain REST — any HTTP client works out of the box. Typed SDKs are on the roadmap.

Want to build one? Python, Go, Rust, and Ruby SDKs are all needed. See CONTRIBUTING.md.

REST (any language)

# Save a memory
curl -X POST http://localhost:3456/v1/memories \
  -H "Content-Type: application/json" \
  -d '{"content":"User prefers TypeScript","type":"semantic","source":{"tool":"myapp","timestamp":"2026-06-30T00:00:00Z"}}'

# Search memories
curl -X POST http://localhost:3456/v1/memories/search \
  -H "Content-Type: application/json" \
  -d '{"q":"TypeScript","limit":5}'

Why Open Source?

Your memories are yours. They should not be locked inside a company's database, used to train models without your consent, or lost when you switch tools.

OMP is designed on these principles:

  • Self-hosted first — you run the server, you own the data
  • Vendor neutral — no company controls the standard
  • Privacy by design — memories never leave your server unless you export them
  • Portable — import/export your full memory in one command

Roadmap

  • v0.1 — Core spec, reference server, MCP adapter
  • v0.2 — AI memory extraction, conversation compression, MCP resources + prompts
  • v0.3 — Cross-model conversation handoff (browser extension + /v1/conversations + /v1/handoff)
  • v0.4 — Mobile PWA, iOS Shortcut, CLI adapter, remote hosting (live on Railway)
  • v0.5 — Semantic search with embeddings, pgvector support
  • v0.5 — Memory namespacing (per-project memories)
  • v0.6 — Multi-user support, access control
  • v1.0 — Stable spec, submitted to open standards body

Contributing

OMP is community-driven. We need:

  • Adapter builders — connect your favourite AI tool
  • SDK contributors — Go, Rust, Java SDKs welcome
  • Spec reviewers — read SPEC.md and open issues
  • Early adopters — try it and report what breaks

See CONTRIBUTING.md to get started.


Community

  • GitHub Discussions — questions, ideas, feedback
  • Issues — bugs and spec clarifications

License

Apache 2.0 — free to use, modify, and distribute. See LICENSE.

Built by SMJAI and contributors.

常见问题

What is open-memory-protocol?

open-memory-protocol is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by SMJAI. An open standard for portable, interoperable AI memory across tools, sessions, and devices. It has 72 GitHub stars.

Is open-memory-protocol safe to use?

Yes. open-memory-protocol passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install open-memory-protocol?

Clone the repository with "git clone https://github.com/SMJAI/open-memory-protocol" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is open-memory-protocol written in?

open-memory-protocol is primarily written in TypeScript. It is open-source under SMJAI on GitHub, so you can review or fork the full source.

Are there alternatives to open-memory-protocol?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh open-memory-protocol against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP 服务器
查看详情

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP 服务器
查看详情

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP 服务器
查看详情

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP 服务器
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情