Skillpedia
واجهات API والخوادم (backend)30k · #9344

agentmemory-rest-api

ما الذي تفعله

تشرح هذه المهارة واجهة HTTP لخادم agentmemory، وهي طريقته الأساسية للعمل مع الذكريات. وهي مفيدة لربط أدوات لا تدعم MCP.

متى تستخدمها

  • ✓عندما تريد حفظ الذكريات أو البحث فيها عبر HTTP.
  • ✓عندما لا يتوفر MCP وتحتاج إلى اتصال بديل.
  • ✓عندما تربط أداة لا تتحدث MCP بـ agentmemory.

رابط المهارة

https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أرني كيف أحفظ ملاحظة في agentmemory وأبحث عنها باستخدام طلبات HTTP عادية.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يرسل وكيلك طلبات إلى نقاط النهاية المحلية للذاكرة، مثل مسارات الحفظ والبحث الذكي. تحتاج المسارات المحمية إلى سر حامل يحمّله الوكيل من البيئة أو من ملف السر المحلي دون أن يعرضه.

المحتوى التقني (ملف 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
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة