agentmemory-rest-api
この Skill は agentmemory の HTTP REST API インターフェースを提供し、記憶サーバーと通信するための主要プロトコルです。AI エージェントは標準 HTTP プロトコルで記憶の保存と検索が可能になり、特定のプロトコルが利用できない場合や非対応ホストとの統合時でも、知識ベースを効率的に管理・アクセスできます。これにより、エージェントの適応性とデータ連携能力が向上します。
npx skills add https://github.com/rohitg00/agentmemory --skill agentmemory-rest-apiBefore / After 効果比較
1 组標準化されたHTTP APIがない場合、ユーザーや開発者はAIエージェントが記憶サーバーと対話するために、特定の通信プロトコルを手動で開発または適応させるのに多大な時間を費やす必要があり、統合プロセスが複雑で時間がかかっていました。
この Skill は、すぐに使える HTTP REST API を提供し、AIエージェントが標準プロトコルを介して記憶を迅速かつ便利に保存・検索できるようにします。これにより、統合作業と時間が大幅に削減され、開発効率とシステム互換性が向上します。
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 return200, validation errors return400. - Handlers whitelist body fields and drop unknown ones, so passing extra keys is safe but ignored.
- The port is configurable with
--portor--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)
レビューを書く
レビューなし
統計データ
ユーザー評価
この Skill を評価