本文へスキップ
Skillpedia
APIとサーバー(バックエンド)30k · #9344

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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 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.

よくある質問

秘密情報は必要ですか?

はい。保護されたエンドポイントは、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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル