agentmemory-rest-api
Skill9 starsChanged 3 months agoMITView on GitHub
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.
- Sends data out
In this repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- agentmemory-agentsSkill
- agentmemory-architectureSkill
- agentmemory-configSkill
- agentmemory-hooksSkill
- agentmemory-mcp-toolsSkill
- agentmemorySkill
- antislopSkill
- caveman-compressSkill
- caveman-helpSkill
- cavemanSkill
- caveman-statsSkill
- clean-codeSkill
- cloudflareSkill
- codebase-designSkill
- code-reviewSkill
- commit-contextSkill
- commit-historySkill
- delegationSkill
- documentationSkill
- forgetSkill
- git-commitSkill
- graphifySkill
- grillingSkill
- handoff-compactSkill
- handoffSkill
- i-have-adhdSkill
- impeccableSkill
- jev-decisionSkill
- lessonSkill
- memory-disciplineSkill
- plansSkill
- playwright-cliSkill
- ponytail-reviewSkill
- pwa-developmentSkill
- recallSkill
- recapSkill
- rememberSkill
- resolving-merge-conflictsSkill
- session-historySkill
- shadcnSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- ui-designSkill
- ui-ux-pro-maxSkill
- vercel-reactSkill
- verification-before-completionSkill
- viteSkill
- vitestSkill
- web-design-guidelinesSkill
- web-perfSkill
- write-agentmemory-skillSkill
- writing-skillsSkill
The file
Files
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 return200, validation errors return400. - Handlers whitelist body fields and drop unknown ones, so passing extra keys is safe but ignored.
- The port is configurable with
--portor--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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

