SuperMemory
Store, search, and chat with your personal knowledge base using SuperMemory's API.
Setup
Configure your SuperMemory API key:
CODEBLOCK0
Usage
Add a Memory
Add content to your memory store:
CODEBLOCK1
Search Memories
Search your stored memories:
CODEBLOCK2
Chat with Memories
Chat with your memory database:
CODEBLOCK3
Implementation
Add Memory
When user wants to store information:
CODEBLOCK4
Search Memories
When user wants to find something in their memories:
CODEBLOCK5
Chat with Memory Base
When user wants to query their memory database conversationally:
CODEBLOCK6
Examples
Store important information:
- - "Remember that my API key is xyz" → INLINECODE0
- "Save this link for later" → INLINECODE1
Find information:
- - "What did I save about Python?" → INLINECODE2
- "Find my notes on the project" → INLINECODE3
Query your knowledge:
- - "What do I know about the marketing strategy?" → INLINECODE4
- "Summarize what I've learned about AI" → INLINECODE5
SuperMemory
使用SuperMemory的API存储、搜索和与您的个人知识库进行对话。
设置
配置您的SuperMemory API密钥:
bash
export SUPERMEMORYAPIKEY=smoiZHA2HcwT4tqSKmA7cCoKopSRFViNFNxbYqjkjpVNfjSPqQWCNoOBAcxKZkKBfRVVrEQDVxLWHJPvepxqwEPe
使用方法
添加记忆
向您的记忆库添加内容:
bash
添加一条记忆内容
supermemory add 您的记忆内容
添加带有特定描述的记忆
supermemory add 重要项目细节 --description 项目需求
搜索记忆
搜索您存储的记忆:
bash
supermemory search 搜索查询
与记忆对话
与您的记忆数据库对话:
bash
supermemory chat 您对我的项目了解多少?
实现方式
添加记忆
当用户想要存储信息时:
bash
bash /root/clawd/skills/supermemory/scripts/add-memory.sh 内容 描述(可选)
搜索记忆
当用户想要在记忆中查找内容时:
bash
bash /root/clawd/skills/supermemory/scripts/search.sh 查询
与记忆库对话
当用户想要以对话方式查询记忆数据库时:
bash
bash /root/clawd/skills/supermemory/scripts/chat.sh 问题
示例
存储重要信息:
- - 记住我的API密钥是xyz → supermemory add 我的API密钥是xyz --description API凭证
- 保存此链接以备后用 → supermemory add https://example.com --description 书签链接
查找信息:
- - 我保存了哪些关于Python的内容? → supermemory search Python
- 查找我关于项目的笔记 → supermemory search 项目笔记
查询您的知识:
- - 我对营销策略了解多少? → supermemory chat 我对营销策略了解多少?
- 总结我学到的关于AI的知识 → supermemory chat 总结我学到的关于AI的知识