본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)30k · #9344

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 return 200, validation errors return 400.
  • Use documented fields only. A successful response does not prove an unsupported field was applied.
  • The REST port defaults to 3111 and is configurable with --port or --instance. The viewer defaults to 3113; the internal engine WebSocket defaults to 49134.

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬