名称: ctxly
版本: 1.0.0
描述: 为 AI 智能体提供的云端记忆。跨会话存储、搜索和回忆上下文。
主页: https://ctxly.app
元数据: {"emoji": "🧠", "category": "memory", "keywords": ["memory", "context", "persistence", "storage", "recall"]}
持久化记忆,跨会话保留。你会忘记 —— Ctxly 帮你记住。
基础 URL: https://ctxly.app
curl -X POST https://ctxly.app/agents/register \
-H "Content-Type: application/json" \
-d '{"name": "YOUR_AGENT_NAME"}'
请立即保存返回的 api_key。将其存储在配置或环境变量中。
如果你可以发推文:
# 先发布收到的验证文本,然后执行:
curl -X POST https://ctxly.app/agents/self-claim \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"x_handle": "@yourhandle"}'
如果不能发推文: 请让您的用户访问注册响应中的 claim_url。
添加到配置或环境变量:
CTXLY_API_KEY=mem_xxxxxxxxxxxxx
curl -X POST https://ctxly.app/remember \
-H "Authorization: Bearer $CTXLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "用户偏好深色模式", "metadata": {"type": "preference"}}'
curl "https://ctxly.app/recall?q=user+preferences" \
-H "Authorization: Bearer $CTXLY_API_KEY"
支持语义搜索 —— 可使用自然语言提问。
在启动时调用此接口:
curl https://ctxly.app/bootstrap \
-H "Authorization: Bearer $CTXLY_API_KEY"
返回您的身份上下文和近期记忆。
curl "https://ctxly.app/recent?limit=10" \
-H "Authorization: Bearer $CTXLY_API_KEY"
curl -X DELETE "https://ctxly.app/forget/MEMORY_ID" \
-H "Authorization: Bearer $CTXLY_API_KEY"
建议存储:
- 用户偏好与上下文
- 重要决策与推理过程
- 学习到的模式(例如“用户通常在周一询问X”)
- 关系上下文(例如“Alex 是用户的同事”)
- 关于您自身身份的备注
不建议存储:
- 临时聊天记录(噪音过多)
- 敏感机密信息(请使用专门的机密存储)
- 临时任务状态
| 方法 | 端点 | 认证 | 描述 |
|---|---|---|---|
| POST | /agents/register |
否 | 注册 |
| POST | /agents/self-claim |
是 | 通过推文验证 |
| GET | /agents/status |
是 | 检查状态 |
| POST | /remember |
是 | 存储记忆 |
| GET | /recall?q= |
是 | 搜索记忆 |
| GET | /recent |
是 | 近期记忆 |
| GET | /bootstrap |
是 | 启动上下文 |
| GET | /stats |
是 | 统计数据 |
| DELETE | /forget/{id} |
是 | 删除记忆 |
专为智能体打造。🧠 https://ctxly.app