agentmemory-rest-api
하는 일
이 스킬은 agentmemory 서버의 HTTP API를 설명합니다. 이것이 메모리와 작업하는 주된 방법입니다. MCP를 지원하지 않는 도구를 연결할 때 유용합니다.
사용하는 경우
- ✓HTTP로 메모리를 저장하거나 검색하고 싶을 때.
- ✓MCP를 쓸 수 없어서 대체 연결이 필요할 때.
- ✓MCP를 말하지 않는 도구를 agentmemory에 연결할 때.
스킬 링크
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“일반 HTTP 요청을 사용해 agentmemory에 메모를 저장하고 검색하는 방법을 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 저장 경로와 스마트 검색 경로 같은 로컬 메모리 엔드포인트에 요청을 보냅니다. 보호된 경로는 베어러 시크릿이 필요하며, 에이전트는 이를 화면에 보여 주지 않고 환경이나 로컬 시크릿 파일에서 불러옵니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
시크릿이 필요한가요?
네. 보호된 엔드포인트는 localhost에서도 베어러 시크릿이 필요합니다.
상태 확인에 쓰는 엔드포인트는 무엇인가요?
생존 확인 경로는 공개되어 있으며 시크릿이 필요하지 않습니다.
원격 서버와도 사용할 수 있나요?
네. 다만 원격 서버에는 명시적인 자격 증명과 HTTPS가 필요하며, 로컬 시크릿은 절대 보내지 않습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 30k
- 순위
- #9344
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agentmemory-agents
30k에이전트가 agentmemory 메모리 서버를 Claude Code, Cursor, Codex 같은 코딩 도구에 연결하도록 돕습니다.
agentmemory-architecture
30kagentmemory가 메모리를 저장하고, 검색하고, 관리하는 방식을 저장 순간부터 회상까지 설명합니다.
agentmemory-config
30k에이전트가 포트, 설정, 기능 플래그를 포함해 agentmemory 메모리 서버를 설정하고 점검하도록 돕습니다.
agentmemory-hooks
30k에이전트가 각 메모를 손으로 저장하지 않아도 코딩 세션에서 유용한 내용을 자동으로 캡처하도록 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.