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) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أرني كيف أحفظ ملاحظة في 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 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
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
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 وفق أفضل الممارسات، ويوضح كيف تتواصل وكيف تُعرض الأخطاء وكيف تُنظَّم البيانات.
backend-patterns
280kيساعد وكيلك على أنماط بنية الخادم وتحسين قاعدة البيانات، ويفيد في بناء الشيفرة التي تعمل على الخادم أو مراجعتها.