|
|
|
@@ -30,79 +30,6 @@ npx skills add https://github.com/mem0ai/mem0 --skill mem0
|
|
|
|
|
|
|
|
|
|
Works with Claude Code, Cursor, Windsurf, and any assistant that supports skills. Once installed, your assistant understands Mem0's full API, framework integrations, and common patterns.
|
|
|
|
|
|
|
|
|
|
## Claude Code Plugin
|
|
|
|
|
|
|
|
|
|
The [OpenMemory plugin](https://github.com/mem0ai/claude-code-plugin) gives Claude Code **persistent memory across sessions, projects, and teams** — automatically.
|
|
|
|
|
|
|
|
|
|
<Steps>
|
|
|
|
|
<Step title="Get your API key">
|
|
|
|
|
Sign up at [app.openmemory.dev](https://app.openmemory.dev).
|
|
|
|
|
</Step>
|
|
|
|
|
|
|
|
|
|
<Step title="Install the plugin">
|
|
|
|
|
```bash
|
|
|
|
|
/plugin add mem0ai/claude-code-plugin
|
|
|
|
|
```
|
|
|
|
|
</Step>
|
|
|
|
|
|
|
|
|
|
<Step title="Set your environment variable">
|
|
|
|
|
```bash
|
|
|
|
|
export OPENMEMORY_API_KEY="your-key-here"
|
|
|
|
|
```
|
|
|
|
|
</Step>
|
|
|
|
|
|
|
|
|
|
<Step title="Start coding">
|
|
|
|
|
The plugin activates automatically. It captures decisions at session end, preserves context during compaction, and retrieves relevant memories at session start.
|
|
|
|
|
</Step>
|
|
|
|
|
</Steps>
|
|
|
|
|
|
|
|
|
|
## MCP Server Setup
|
|
|
|
|
|
|
|
|
|
Connect Cursor, Windsurf, Claude Desktop, or any MCP-compatible client to Mem0.
|
|
|
|
|
|
|
|
|
|
<Tabs>
|
|
|
|
|
<Tab title="OpenMemory Hosted">
|
|
|
|
|
Sign up at [app.openmemory.dev](https://app.openmemory.dev), then pick your client:
|
|
|
|
|
|
|
|
|
|
<CodeGroup>
|
|
|
|
|
```bash Claude Desktop
|
|
|
|
|
npx @openmemory/install --client claude --env OPENMEMORY_API_KEY=your-key
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```bash Cursor
|
|
|
|
|
npx @openmemory/install --client cursor --env OPENMEMORY_API_KEY=your-key
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```bash Windsurf
|
|
|
|
|
npx @openmemory/install --client windsurf --env OPENMEMORY_API_KEY=your-key
|
|
|
|
|
```
|
|
|
|
|
</CodeGroup>
|
|
|
|
|
|
|
|
|
|
For full setup options, see [OpenMemory Quickstart](/openmemory/quickstart).
|
|
|
|
|
</Tab>
|
|
|
|
|
|
|
|
|
|
<Tab title="Mem0 Platform MCP">
|
|
|
|
|
Get your API key from [app.mem0.ai](https://app.mem0.ai), then add to your MCP config:
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"mcpServers": {
|
|
|
|
|
"mem0": {
|
|
|
|
|
"command": "uvx",
|
|
|
|
|
"args": ["mem0-mcp-server"],
|
|
|
|
|
"env": {
|
|
|
|
|
"MEM0_API_KEY": "m0-...",
|
|
|
|
|
"MEM0_DEFAULT_USER_ID": "your-handle"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
For Docker, Smithery, and advanced options, see [Mem0 MCP Setup](/platform/mem0-mcp).
|
|
|
|
|
</Tab>
|
|
|
|
|
</Tabs>
|
|
|
|
|
|
|
|
|
|
## Universal Starter Prompt
|
|
|
|
|
|
|
|
|
|
Copy this into any AI tool to start building with Mem0:
|
|
|
|
|