agentmemory-rest-api
できること
このスキルは、agentmemoryサーバーのHTTP APIを説明します。これは記憶を扱う主な方法です。MCPに対応していないツールを接続するのに役立ちます。
使う場面
- ✓HTTPで記憶を保存または検索したいとき。
- ✓MCPが使えず、代わりの接続が必要なとき。
- ✓MCPに対応していないツールをagentmemoryに接続するとき。
スキルのリンク
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“HTTPリクエストを使って、agentmemoryにメモを保存し、それを検索する方法を見せてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、保存やスマート検索のルートなど、ローカルの記憶のエンドポイントにリクエストを送ります。保護されたルートには、ベアラーの秘密情報が必要です。エージェントは、それを表示せず、環境またはローカルの秘密ファイルから読み込みます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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
Protected endpoints require bearer authentication by default, including localhost. 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 return200, validation errors return400. - Use documented fields only. A successful response does not prove an unsupported field was applied.
- The REST port defaults to
3111and is configurable with--portor--instance. The viewer defaults to3113; the internal engine WebSocket defaults to49134.
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.
よくある質問
秘密情報は必要ですか?
はい。保護されたエンドポイントは、localhostであっても、ベアラーの秘密情報が必要です。
ヘルスチェックのエンドポイントはどれですか?
生存確認のルートは公開されており、秘密情報は不要です。
リモートのサーバーでも使えますか?
はい。ただし、リモートのサーバーには明示的な認証情報とHTTPSが必要で、ローカルの秘密情報は送られません。
詳細
作者による元の説明
The agentmemory HTTP REST API surface, the primary protocol for talking to the memory server. Use when calling agentmemory over HTTP, when MCP is unavailable and you need a fallback, or when integrating a host that does not speak MCP.
repo: rohitg00/agentmemory
人気
- GitHubのスター
- 30k
- ランキング
- #9344
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agentmemory-agents
30kエージェントが、agentmemoryメモリサーバーをClaude Code、Cursor、Codexなどのコーディングツールに接続できるよう支援します。
agentmemory-architecture
30kエージェントが、agentmemoryが記憶を保存、検索、管理する仕組みを、記録から想起まで説明できるよう支援します。
agentmemory-config
30kエージェントが、ポート、設定、機能フラグを含め、agentmemoryメモリサーバーをセットアップし確認できるよう支援します。
agentmemory-hooks
30kエージェントが、保存を一つずつ手作業で行わなくても、コーディングセッションの有用なメモを自動で取り込めるよう支援します。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。