Pular para o conteúdo
Skillpedia
APIs e servidores (backend)30 mil · #9344

agentmemory-rest-api

O que ela faz

Esta skill explica a API HTTP do servidor agentmemory, que é a sua principal forma de trabalhar com memórias. Ela é útil para conectar ferramentas que não suportam MCP.

Quando usar

  • ✓Quando você quer salvar ou pesquisar memórias por HTTP.
  • ✓Quando o MCP não está disponível e você precisa de uma conexão alternativa.
  • ✓Quando você está conectando uma ferramenta que não fala MCP ao agentmemory.

Link da skill

https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-rest-api/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Mostre como salvar uma nota no agentmemory e pesquisá-la usando requisições HTTP simples.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente envia requisições para os endpoints locais de memória, como as rotas de salvar e de busca inteligente. As rotas protegidas exigem um segredo bearer, que o agente carrega do ambiente ou do arquivo de segredo local sem exibi-lo.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.

Perguntas frequentes

É preciso de um segredo?

Sim. Os endpoints protegidos exigem um segredo bearer, mesmo em localhost.

Qual endpoint serve para verificar a saúde do serviço?

A rota de liveness é pública e não precisa de segredo.

Posso usar com um servidor remoto?

Sim, mas o servidor remoto precisa de uma credencial explícita e de HTTPS, e os segredos locais nunca são enviados para ele.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
30 mil
Posição no ranking
#9344
Licença
Apache-2.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas