A

agentmemory-rest-api

by @rohitg00v
4.5(120)

この Skill は 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エージェントが記憶サーバーと対話するために、特定の通信プロトコルを手動で開発または適応させるのに多大な時間を費やす必要があり、統合プロセスが複雑で時間がかかっていました。

使用後

この Skill は、すぐに使える 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

# For this fixed loopback URL only. Do not print the value or enable shell tracing.
agentmemory_secret="${AGENTMEMORY_SECRET:-$(cat "$HOME/.agentmemory/secret")}"
test -n "$agentmemory_secret" || exit 1

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

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

Auth

Every endpoint except liveness requires Authorization: Bearer <secret>, including on localhost. The server always has a secret: AGENTMEMORY_SECRET when you set one, otherwise one it generates at first start. Requests without the header get 401. Liveness is public. The example uses an explicit environment secret or the generated local secret file; if the daemon uses a secret from its .env, load that value locally without displaying it. For a remote daemon, require an explicit credential for that endpoint and HTTPS. Never forward a local-file secret or follow an authenticated redirect to another host. See TROUBLESHOOTING.md.

Conventions

  • Save returns 201, reads return 200, validation errors return 400.
  • Use documented fields only. A successful response does not prove an unsupported field was applied.
  • The REST port defaults to 3111 and is configurable with --port or --instance. The viewer defaults to 3113; the internal engine WebSocket defaults to 49134.

See also

  • agentmemory-mcp-tools for the MCP equivalents.
  • agentmemory-config for local configuration and the secret.

Reference

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

ユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数11.8K
評価4.5 / 5.0
バージョン
更新日2026年11月21日
比較事例1 件

ユーザー評価

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

この Skill を評価

0.0

対応プラットフォーム

🤖claude-code

タイムライン

作成2026年6月25日
最終更新2026年11月21日
🎁 Agent 知識カード
アンケート