Zum Inhalt springen
Skillpedia
APIs & Server (Backend)30k · #9344

agentmemory-rest-api

Was er macht

Dieser Skill erklärt die HTTP-API des agentmemory-Servers, über die sich mit Erinnerungen hauptsächlich arbeiten lässt. Er ist nützlich, um Werkzeuge anzubinden, die kein MCP unterstützen.

Wann du ihn nutzt

  • ✓Wenn du Erinnerungen über HTTP speichern oder suchen willst.
  • ✓Wenn MCP nicht verfügbar ist und du eine Ersatzverbindung brauchst.
  • ✓Wenn du ein Werkzeug anbindest, das kein MCP spricht, an agentmemory.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Zeig mir, wie ich eine Notiz in agentmemory speichere und sie mit einfachen HTTP-Anfragen wiederfinde.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent sendet Anfragen an die lokalen Speicher-Endpunkte, etwa die Routen zum Speichern und zur intelligenten Suche. Geschützte Routen brauchen ein Bearer-Secret, das der Agent aus der Umgebung oder der lokalen Secret-Datei lädt, ohne es anzuzeigen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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.

Häufige Fragen

Wird ein Secret gebraucht?

Ja. Geschützte Endpunkte brauchen ein Bearer-Secret, auch auf localhost.

Welcher Endpunkt dient dem Gesundheitscheck?

Die Liveness-Route ist öffentlich und braucht kein Secret.

Kann ich es mit einem Remote-Server nutzen?

Ja, aber der Remote-Server braucht eine ausdrückliche Anmeldung und HTTPS, und lokale Secrets werden nie an ihn gesendet.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
30k
Platz im Ranking
#9344
Lizenz
Apache-2.0
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills