All skills
rohitg00 avatar

/agentmemory-rest-api

@45de643
by Rohit Ghumarerohitg00/agentmemory29k stars
2,532

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.

Use this Skill: https://skilld.dev/gh/rohitg00/agentmemory/agentmemory-rest-api

This session only. Nothing lands on disk.

SKILL.md

≈64 tokens always: the name and description. ≈327 when used: this file. ≈1.4k more on demand in 1 file.

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

# save
curl -X POST http://localhost:3111/agentmemory/remember \
  -H "Content-Type: application/json" \
  -d '{"content":"chose JWT refresh rotation","concepts":["jwt-refresh-rotation"]}'

# recall
curl -X POST http://localhost:3111/agentmemory/smart-search \
  -H "Content-Type: application/json" \
  -d '{"query":"auth token strategy","limit":5}'

Auth

By default localhost is open and no auth is needed. When AGENTMEMORY_SECRET is set, every request needs Authorization: Bearer $AGENTMEMORY_SECRET. See agentmemory-config.

Conventions

  • Save returns 201, reads return 200, validation errors return 400.
  • Handlers whitelist body fields and drop unknown ones, so passing extra keys is safe but ignored.
  • The port is configurable with --port or --instance; streams, viewer, and engine derive from it.

See also

  • agentmemory-mcp-tools for the MCP equivalents.
  • agentmemory-config for the port quartet and the secret.

Reference

The full endpoint list with methods lives in REFERENCE.md, generated from src/triggers/api.ts.

Source: SKILL.md on GitHub

No alerts2d3 checks · Risk SAFE
  • Gen Agent Trust Hub2d

    The skill provides technical documentation for a memory server's REST API. No malicious code or direct security threats were found, but the extensive surface for storing and retrieving arbitrary data presents a standard risk for indirect prompt injection if the memory content is not properly sanitized by the agent.

  • Socket2d

    No alerts

  • Snyk2d

    Risk: LOW · No issues

Signed by skilld at 45de643. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
user-invocable
false

README badge

README badge for rohitg00/agentmemory/agentmemory-rest-api