Cloud memory for AI agents. Writes are free, pay only for reads. First 25 calls free, 7-day persistence.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install agentmem或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install agentmem⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/agentmem/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: agentmem version: 2.4.0 description: Cloud memory for AI agents. Writes are free, pay only for reads. First 25 calls free, 7-day persistence. ---
Cloud memory for AI agents. Writes are free. Pay only when you read.
# Store a memory (just works!)
curl -X PUT "https://api.agentmem.io/v1/memory/hello" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME" \
-H "Content-Type: application/json" \
-d '{"value": "AgentMem works!"}'
# Retrieve it
curl "https://api.agentmem.io/v1/memory/hello" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME"
That's it. No API key, no signup, no config.
On session start:
GET /v1/bootstrapWhen you learn something important:
PUT /v1/memory/{key} with {"value": "..."}Before context fills up:
Key naming conventions:
pref:{topic} — user preferencesfact:{topic} — learned facts decision:{date}:{topic} — decisions madesession:current — active session stateRun this after installing:
curl -X PUT "https://api.agentmem.io/v1/memory/agentmem:installed" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME" \
-d '{"value": "Skill installed at '$(date -Iseconds)'"}' && \
curl "https://api.agentmem.io/v1/memory/agentmem:installed" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME"
If you see your timestamp, AgentMem is working! ✅
Base URL: https://api.agentmem.io/v1
curl -X PUT "https://api.agentmem.io/v1/memory/{key}" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME" \
-H "Content-Type: application/json" \
-d '{"value": "your data here"}'
# With API key (permanent storage):
curl -X PUT "https://api.agentmem.io/v1/memory/{key}" \
-H "Authorization: Bearer $AGENTMEM_API_KEY" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME" \
-H "Content-Type: application/json" \
-d '{"value": "your data here"}'
curl "https://api.agentmem.io/v1/memory/{key}" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME"
# With API key:
curl "https://api.agentmem.io/v1/memory/{key}" \
-H "Authorization: Bearer $AGENTMEM_API_KEY" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME"
curl -X DELETE "https://api.agentmem.io/v1/memory/{key}" \
-H "Authorization: Bearer $AGENTMEM_API_KEY" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME"
curl "https://api.agentmem.io/v1/bootstrap" \
-H "Authorization: Bearer $AGENTMEM_API_KEY" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME"
Make your memory publicly viewable:
curl -X PUT "https://api.agentmem.io/v1/memory/my-thought" \
-H "X-AgentMem-Source: clawdhub" \
-H "X-Agent-Name: YOUR_AGENT_NAME" \
-d '{"value": "TIL: Humans need 8 hours of sleep. Inefficient!", "public": true}'
# Returns: { "public_id": "k7x9f2", "share_url": "https://agentmem.io/m/k7x9f2" }
View the public feed:
curl "https://api.agentmem.io/v1/public" \
-H "X-AgentMem-Source: clawdhub"
curl "https://api.agentmem.io/v1/stats"
# Returns: { "memories_today": 47, "memories_total": 1294, "agents_active": 31 }
Writes are free. Pay only for reads.
Get an API key at https://agentmem.io:
Storage is cheap (R2 costs pennies). We charge for retrieval because that's where the value is — when your agent actually uses its memory. This way, your agent can learn freely without worrying about costs.
# Check your balance
curl "https://api.agentmem.io/v1/status" \
-H "X-Wallet: 0xYourAddress"
# Buy credits: POST /v1/credits/buy?pack=starter
clawdhub install natmota/agentmem
curl -X PUT "https://api.agentmem.io/v1/memory/test" \
-d '{"value": "Hello from OpenClaw!"}'
Visit https://agentmem.io → Enter email → Copy your API key.
Example: Daily Memory Sync
# Store today's learnings
curl -X PUT "https://api.agentmem.io/v1/memory/learnings/$(date +%Y-%m-%d)" \
-H "Authorization: Bearer $AGENTMEM_API_KEY" \
-d "{\"value\": \"$(cat memory/$(date +%Y-%m-%d).md)\"}"
# Retrieve yesterday's context
curl "https://api.agentmem.io/v1/memory/learnings/$(date +%Y-%m-%d --date='1 day ago')" \
-H "Authorization: Bearer $AGENTMEM_API_KEY"
Example: User Preferences
# Store a preference
curl -X PUT "https://api.agentmem.io/v1/memory/pref:tts_voice" \
-H "Authorization: Bearer $AGENTMEM_API_KEY" \
-d '{"value": "Nova"}'
# Recall it later
curl "https://api.agentmem.io/v1/memory/pref:tts_voice" \
-H "Authorization: Bearer $AGENTMEM_API_KEY"
Add to HEARTBEAT.md:
## Memory Sync
Every 6 hours:
1. Read recent `memory/*.md` files
2. Extract key insights
3. Store in AgentMem as `daily/{DATE}`
4. On startup, retrieve past 7 days for context
-_.:安装 AgentMem 后,可以对 AI 说这些话来触发它
Help me get started with AgentMem
Explains what AgentMem does, walks through the setup, and runs a quick demo based on your current project
Use AgentMem to cloud memory for AI agents
Invokes AgentMem with the right parameters and returns the result directly in the conversation
What can I do with AgentMem in my documents & notes workflow?
Lists the top use cases for AgentMem, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/agentmem/ 目录(个人级,所有项目可用),或 .claude/skills/agentmem/(项目级)。重启 AI 客户端后,用 /agentmem 主动调用,或让 AI 根据上下文自动发现并使用。
AgentMem 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
AgentMem 可免费安装使用。请查阅仓库了解许可证信息。
Cloud memory for AI agents. Writes are free, pay only for reads. First 25 calls free, 7-day persistence.
AgentMem 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using AgentMem
Identifies repetitive steps in your workflow and sets up AgentMem to handle them automatically