Saltar al contenido
Skillpedia
APIs y servidores (backend)30 mil · #9344

agentmemory-rest-api

Qué hace

Esta skill explica la API HTTP del servidor agentmemory, que es su principal forma de trabajar con las memorias. Es útil para conectar herramientas que no admiten MCP.

Cuándo usarla

  • ✓Cuando quieres guardar o buscar memorias por HTTP.
  • ✓Cuando MCP no está disponible y necesitas una conexión alternativa.
  • ✓Cuando conectas una herramienta que no habla MCP con agentmemory.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Muéstrame cómo guardar una nota en agentmemory y buscarla usando peticiones HTTP normales.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente envía peticiones a los endpoints de memoria locales, como las rutas de guardado y de búsqueda inteligente. Las rutas protegidas requieren un secreto bearer, que el agente carga desde el entorno o desde el archivo de secretos local sin mostrarlo.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.

Preguntas frecuentes

¿Hace falta un secreto?

Sí. Los endpoints protegidos requieren un secreto bearer, incluso en localhost.

¿Qué endpoint sirve para una comprobación de estado?

La ruta de vitalidad es pública y no necesita secreto.

¿Puedo usarla con un servidor remoto?

Sí, pero el servidor remoto necesita una credencial explícita y HTTPS, y los secretos locales nunca se envían a él.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
30 mil
Posición en el ranking
#9344
Licencia
Apache-2.0
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas