1
选择你的AI
每个AI有独立的记忆空间,选择你要配置的那个
✓ 已选择:
2
选择记忆深度
场景越深,AI记得越多,消耗的Token也越多
☀️
日常对话
读取最近48小时的记忆
+ 核心知识库 + 错误教训
约 800 tokens
🔧
项目开发
读取最近7天的记忆
+ 核心知识库 + 错误教训
约 2000 tokens ⭐推荐
🔬
深度回顾
读取全部记忆层
+ 核心知识库 + 错误教训
约 5000 tokens
3
复制接入地址
把地址配置到你的AI,AI启动时会自动读取记忆
👆
请先在第①步选择AI
如何配置到AI
选择你使用的AI工具,查看对应的配置方法
OpenClaw
Cursor / Claude
直接调API
在 SOUL.md 或 system prompt 开头加入以下内容,黑熊每次启动时会自动读取记忆。
# 记忆系统 在每次对话开始时,调用以下接口获取记忆上下文: GET 将返回的 context 字段内容作为你的背景知识。
在 .cursorrules 或 system prompt 中加入以下内容。
At the start of each conversation, fetch your memory context: GET Use the returned "context" field as background knowledge for this conversation.
在你的代码里,对话开始前调用接口,将 context 注入 system message。
import requests # 获取记忆上下文 resp = requests.get("") memory_context = resp.json()["context"] # 注入到 system prompt messages = [ {"role": "system", "content": memory_context}, {"role": "user", "content": user_input} ]