agentmemory-rest-api
What it does
This skill explains the HTTP API of the agentmemory server, which is its main way of working with memories. It is useful for connecting tools that do not support MCP.
When to use it
- ✓When you want to save or search memories over HTTP.
- ✓When MCP is not available and you need a fallback connection.
- ✓When you are connecting a tool that does not speak MCP to agentmemory.
Skill link
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Show me how to save a note to agentmemory and search for it using plain HTTP requests.”
5 new skills a week. 1 minute to read.
How it works
The agent sends requests to the local memory endpoints, such as the save and smart search routes. Protected routes require a bearer secret, which the agent loads from the environment or the local secret file without displaying it.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
Is a secret needed?
Yes. Protected endpoints require a bearer secret, even on localhost.
Which endpoint is for a health check?
The liveness route is public and does not need a secret.
Can I use it with a remote server?
Yes, but the remote server needs an explicit credential and HTTPS, and local secrets are never sent to it.
Details
Original description by the author
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
Popularity
- GitHub stars
- 30k
- Ranking position
- #9344
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agentmemory-agents
30kHelps your agent connect the agentmemory memory server to coding tools such as Claude Code, Cursor, and Codex.
agentmemory-architecture
30kExplains how agentmemory stores, searches, and manages memories for coding agents, from capture to recall.
agentmemory-config
30kHelps your agent set up and check the agentmemory memory server, including ports, settings, and feature flags.
agentmemory-hooks
30kHelps your agent automatically capture useful notes from coding sessions, without you saving each one by hand.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.