agentmemory-rest-api
यह क्या करती है
यह स्किल agentmemory सर्वर के HTTP API को समझाती है, जो मेमोरी के साथ काम करने का उसका मुख्य तरीका है। जो टूल MCP सपोर्ट नहीं करते, उन्हें जोड़ने के लिए यह उपयोगी है।
कब इस्तेमाल करें
- ✓जब आप HTTP से मेमोरी सेव या खोजना चाहें।
- ✓जब MCP उपलब्ध न हो और आपको वैकल्पिक कनेक्शन चाहिए।
- ✓जब आप ऐसा टूल जोड़ रहे हों जो MCP नहीं बोलता।
Skill का लिंक
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“दिखाइए कि सादे HTTP अनुरोधों से agentmemory में नोट कैसे सेव करूँ और उसे कैसे खोजूँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट स्थानीय मेमोरी एंडपॉइंट्स पर अनुरोध भेजता है, जैसे सेव और स्मार्ट सर्च रूट। सुरक्षित रूट के लिए bearer सीक्रेट चाहिए, जिसे एजेंट बिना दिखाए एनवायरनमेंट या स्थानीय सीक्रेट फ़ाइल से लोड करता है।
तकनीकी सामग्री (मूल 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 पर भी bearer सीक्रेट चाहिए।
स्वास्थ्य जांच के लिए कौन-सा एंडपॉइंट है?
liveness रूट सार्वजनिक है और उसे सीक्रेट नहीं चाहिए।
क्या इसे दूरस्थ सर्वर के साथ इस्तेमाल कर सकते हैं?
हाँ, लेकिन दूरस्थ सर्वर को साफ़ क्रेडेंशियल और 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
कमेंट
- …
इस repository की और skills
agentmemory-agents
30kयह आपके एजेंट को agentmemory मेमोरी सर्वर को Claude Code, Cursor और Codex जैसे कोडिंग टूल से जोड़ने में मदद करती है।
agentmemory-architecture
30kयह समझाती है कि agentmemory कोडिंग एजेंट की मेमोरी को कैसे सेव, खोजता और संभालता है, कैप्चर से लेकर याद करने तक।
agentmemory-config
30kयह आपके एजेंट को agentmemory मेमोरी सर्वर सेट करने और जांचने में मदद करती है, जिसमें पोर्ट, सेटिंग और फ़ीचर फ़्लैग शामिल हैं।
agentmemory-hooks
30kयह आपके एजेंट को हर नोट खुद सेव किए बिना कोडिंग सेशन से काम की बातें अपने-आप कैप्चर करने में मदद करती है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।