Home/AI Agent Memory & Knowledge/agentmemory-rest-api
A

agentmemory-rest-api

by @rohitg00v
4.5(120)

This skill provides the HTTP REST API surface for agentmemory, serving as the primary protocol for interacting with the memory server. It enables AI agents to store and retrieve memories via standard HTTP, ensuring efficient knowledge base management and access in various scenarios, such as when a specific protocol is unavailable or when integrating with incompatible hosts. This significantly enhances the agent's adaptability and data interaction capabilities.

rest-apiagent-memoryhttp-protocolapi-integrationGitHub
Installation
npx skills add https://github.com/rohitg00/agentmemory --skill agentmemory-rest-api
compare_arrows

Before / After Comparison

1
Before

Without a standardized HTTP API, users or developers had to spend significant time manually developing or adapting specific communication protocols for AI agents to interact with memory servers, making the integration process complex and time-consuming.

After

This skill provides an out-of-the-box HTTP REST API, allowing AI agents to quickly and conveniently store and retrieve memories via a standard protocol. This drastically reduces integration effort and time, improving development efficiency and system compatibility.

SKILL.md

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.

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs9.3K
Rating4.5 / 5.0
Version
Updated2026年9月20日
Comparisons1

User Rating

4.5(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年6月25日
Last Updated2026年9月20日
🎁 Agent Knowledge Cards
Survey