首页/AI 智能体记忆知识/agentmemory-rest-api
A

agentmemory-rest-api

by @rohitg00v
4.5(120)

此技能提供 agentmemory 的 HTTP REST API 接口,作为与记忆服务器通信的主要协议。它使得 AI 智能体能够通过标准 HTTP 协议进行记忆的存储与检索,确保在特定环境下也能高效管理和访问其知识库,极大地提升了智能体的适应性和数据交互能力。

rest-apiagent-memoryhttp-protocolapi-integrationGitHub
安装方式
npx skills add https://github.com/rohitg00/agentmemory --skill agentmemory-rest-api
compare_arrows

Before / After 效果对比

1
使用前

用户或开发者在没有标准化的 HTTP API 接口时,需要投入大量时间手动开发或适配特定的通信协议,才能让 AI 智能体与记忆服务器进行交互,这导致集成过程复杂且耗时。

使用后

此技能提供开箱即用的 HTTP REST API,使得 AI 智能体能够通过标准协议快速、便捷地存储和检索记忆,大幅减少了集成工作量和时间,提升了开发效率和系统的兼容性。

SKILL.md

REST is agentmemory's primary surface. MCP is a bridge on top of it. Every memory operation has an HTTP endpoint under http://localhost:3111/agentmemory/*.

Quick start

# liveness
curl -fsS http://localhost:3111/agentmemory/livez

# save
curl -X POST http://localhost:3111/agentmemory/remember \
  -H "Content-Type: application/json" \
  -d '{"content":"chose JWT refresh rotation","concepts":["jwt-refresh-rotation"]}'

# recall
curl -X POST http://localhost:3111/agentmemory/smart-search \
  -H "Content-Type: application/json" \
  -d '{"query":"auth token strategy","limit":5}'

Auth

By default localhost is open and no auth is needed. When AGENTMEMORY_SECRET is set, every request needs Authorization: Bearer $AGENTMEMORY_SECRET. See agentmemory-config.

Conventions

  • Save returns 201, reads return 200, validation errors return 400.
  • Handlers whitelist body fields and drop unknown ones, so passing extra keys is safe but ignored.
  • The port is configurable with --port or --instance; streams, viewer, and engine derive from it.

See also

  • agentmemory-mcp-tools for the MCP equivalents.
  • agentmemory-config for the port quartet and the secret.

Reference

The full endpoint list with methods lives in REFERENCE.md, generated from src/triggers/api.ts.

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量9.3K
评分4.5 / 5.0
版本
更新日期2026年9月20日
对比案例1 组

用户评分

4.5(120)
5
37%
4
43%
3
13%
2
5%
1
2%

为此 Skill 评分

0.0

兼容平台

🤖claude-code

时间线

创建2026年6月25日
最后更新2026年9月20日
🎁 Agent 知识卡片
调研问卷