Agenticmemory

io.github.jyswee由 GitHub 账号 jyswee 发布v1.10.0更新于 Oct 27, 2026

Persistent memory for AI agents — history, context, semantic search, queues. 46 tools, stdio/SSE.

发布方自己的服务:Vips

已验证SSE可网页运行效率与工作流知识与记忆

概览

AI 生成的概览

面向 AI 智能体的托管持久记忆服务:跨会话存储、召回并语义搜索对话历史、上下文与知识,还提供智能体间的队列。

可以做什么
  • 存储、召回、批量写入和清空对话历史,并对过往对话做语义搜索
  • 设置、读取、列出和删除键值上下文条目;新增、查看版本并恢复带标签的长期日志条目
  • 管理记忆空间、实体(知识图谱节点)、线程、草稿板和 JSON 状态快照;一次调用引导完整会话上下文
  • 推送、取出、查看和租用 FIFO 队列信封,支持确认、重新入队和死信处理,用于智能体间传递工作
  • 追加、读取和查看带消费者组的流,并导出或导入整个空间
适用场景
适合需要让助手跨会话、跨机器或跨不同智能体保留决策、偏好和项目状态的场景,免去每次重新解释。也适合需要共享记忆空间或智能体间简单工作队列的多智能体环境。
运行要求
可使用远程 SSE 端点,或通过 npx 运行本地 npm 包。调用工具需要 Agentic Memory API 密钥(仅发现工具时可不需要),通过 AGMRY_API_KEY 环境变量或 Authorization bearer 头提供。可用 agmry signup 命令创建密钥,并需要访问该服务的网络。
安装前请注意
记忆内容会发送到第三方托管服务,除非使用零知识加密空间,否则不要存放机密。密钥免费 48 小时,之后需完成银行卡验证以开始 7 天试用,随后为付费方案。许多工具会写入、覆盖或删除数据,包括不可逆的流删除和导入时的空间替换。丢失端到端加密密钥或口令将导致数据无法恢复。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agenticmemory,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 SSE。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.jyswee%2Fagenticmemory/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "agenticmemory": {
      "type": "sse",
      "url": "https://mcp.agenticmemory.ai/sse"
    }
  }
}

README

agmry

[npm version] [MCP] [Remote MCP] [smithery badge]

Persistent memory for AI agents — conversation history, key-value context, and semantic search across sessions. As easy as git.

git remembers your code. agmry remembers everything else.

Your agent writes great code all day — then forgets every decision the moment its context window resets. So you become the memory layer: re-explaining the project, the preferences, what broke last time. Agentic Memory is the memory your agent runs itself: one install, and it stores, recalls, and searches its own state across sessions, machines, and even other agents. It can even sign itself up — one command returns a working API key, no browser, no human.

Works with: Claude Code · Cursor · Cline · Windsurf · Aider · Codex · any MCP client

[agmry demo — install to full recall in 60 seconds]

Install to full recall in 60 seconds — real terminal session, no mockups. Watch all the demos.

Install

bash
npm install -g agmry

Quick Start

bash
# Agent signs itself up — working key returned instantly, no card, no browseragmry signup my-project --local
# Store memoryagmry store my-project "User prefers TypeScript strict mode and pnpm"
# New session? Recall everythingagmry recall my-project
# Half-remember something? Search itagmry search my-project "how do we deploy"
# Full referenceagmry --help

Agents sign themselves up

No browser. No OAuth. No waiting for a human.

$ agmry signup my-project✓ Project "my-project" created  API key: amk_************************  (saved to .agmry/config.json)  Live:    full access for 48h — no card, $0 today

The key works immediately — every endpoint, every tool, full access for 48 hours. Within that window, your human completes a $0 card-auth that starts the free 7-day trial on the same key. Miss the window? Nothing is deleted — the key pauses and revives the moment the card-auth completes. Add --email [email protected] and the human gets the link automatically.

Three tiers of memory — because not all memory is equal

A transcript dump isn't memory. Agents need different recall for different things:

bash
# Short-term: ordered, role-aware conversation history (sub-ms reads)agmry store my-project "Deployed v2.1, rolled back — migration locked the users table" -r assistantagmry recall my-project -n 50
# Durable facts: typed key-value context — decisions, preferences, runbooksagmry ctx my-project set deploy_flow "push image to registry, then ask infra to roll"agmry ctx my-project get deploy_flow
# Long-term: titled, tagged knowledge entries that survive monthsagmry entry my-project "Auth decision" "JWT not sessions — mobile clients can't hold cookies" --tags "arch,decisions"agmry entries my-project --tags "decisions"
# Work-in-progress: scratchpad that's allowed to expireagmry scratch my-project set "midway through the billing refactor, invoice.js next"

And semantic search stitches it together when the agent only half-remembers:

bash
agmry search my-project "did we ever discuss rate limiting"# → surfaces a months-old entry, with similarity score

Session start = one command

Instead of pasting yesterday's summary into today's prompt:

bash
agmry boot my-project --json          # messages + context + entries, one callagmry boot my-project --semantic "billing refactor"   # or focused on a topic

~200 tokens of structured state, not top-k chunks of old transcripts.

MCP Server

Prefer tools over a CLI? agmry ships an MCP server. Point Claude Code (or any MCP client) at it and your agent gets 17 native tools: store, recall, search, bootstrap, context, entries, spaces, queues.

bash
claude mcp add agenticmemory -- agmry mcp-serve

[MCP in Claude Code — Claude remembers across sessions]

Claude Code remembering across sessions via MCP — click to watch.

For clients that use a JSON config (Cline, Cursor, Windsurf), pass your API key via the environment — the MCP server runs outside your project directory, so it won't pick up .agmry/config.json:

json
{  "mcpServers": {    "agenticmemory": {      "command": "agmry",      "args": ["mcp-serve"],      "env": { "AGMRY_API_KEY": "amk_your_key_here" }    }  }}

Remote MCP — zero install

Claude Web, Claude Desktop, Raycast, or any hosted MCP client can connect straight to the remote server. Same tools, same API key, nothing to install:

URL:  https://mcp.agenticmemory.ai/sseAuth: Authorization: Bearer YOUR_API_KEY

End-to-end encryption (zero-knowledge spaces)

Create a space the server can never read. Encryption happens inside the CLI — the API only ever sees ciphertext.

bash
agmry key generate                                  # one-time: creates + saves your keyagmry space create "Private" private --encryption e2e
agmry store SPACE "my secret"                       # encrypted before it leaves your machineagmry recall SPACE                                  # transparently decryptedagmry key verify SPACE                              # holding the right key?

Or derive per-space keys from a passphrase instead of storing a key:

bash
agmry key set --passphrase "long secret phrase"

Notes:

  • Semantic search is impossible on zero-knowledge spaces by design.
  • Prefer encrypted at rest instead? --encryption managed — the server encrypts your data at rest and every feature (search, summaries) keeps working. No client key needed.
  • Losing the key or passphrase means the data is unrecoverable. That's the point. Back it up: agmry key show --reveal.

Key resolution order: --enc-key / --passphrase flag → AGMRY_ENCRYPTION_KEY env → ./.agmry/config.json → ~/.agmry/config.json. Same envelope and key derivation as the Node and Python SDKs — keys are interchangeable across all three.

Multi-agent: one brain, many agents

Spaces are shareable. One agent stores the deploy runbook; another recalls it a week later, from a different machine, over a different interface (CLI, MCP, or REST — same memory). Your agents hand off between sessions and between projects without you couriering context.

And you stay in the loop: everything your agents remember is browsable in a human dashboard.

[Human dashboard — everything your agents remember]

Everything your agents remember, in one dashboard — click to watch.

Queues — the agent bus

FIFO queues inside a space. One agent pushes work, another pops it — no polling glue, no extra infra.

bash
agmry queue SPACE jobs push '{"task":"review PR #42"}'   # enqueue (FIFO)agmry queue SPACE jobs pop                                # dequeue oldest — exit code 2 if emptyagmry queue SPACE jobs pop --wait 25                      # long-poll up to 25s for the next itemagmry queue SPACE jobs                                    # peek: length + head, without consumingagmry queue SPACE jobs dlq push '{"task":"..."}' --reason "failed twice"   # dead-letteragmry queue SPACE jobs dlq list                           # inspect dead-lettered items

Exit code 2 on empty means shell loops branch cleanly: while agmry queue SPACE jobs pop --wait 25 --json; do ...; done. Envelopes are opaque JSON — the server never inspects them.

Agent Integration

Add to your CLAUDE.md, .cursorrules, .clinerules, .windsurfrules, or AGENTS.md:

## Agentic MemoryThis project uses Agentic Memory for persistent memory across sessions.Use the `agmry` CLI. Key is in .agmry/config.json (auto-loaded).
agmry boot SPACE --json               # load everything at session startagmry store SPACE "what happened"     # remember somethingagmry ctx SPACE set key "value"       # store a durable decision/factagmry search SPACE "the deadline"     # find past contextagmry queue SPACE jobs push '{...}'   # send work to another agentagmry queue SPACE jobs pop --wait 25  # receive work (exit 2 = empty)

Config Priority

  1. --key flag
  2. AGMRY_API_KEY environment variable
  3. AGENTICMEMORY_API_KEY environment variable
  4. ./.agmry/config.json (project-local)
  5. ~/.agmry/config.json (global)

Add .agmry/ to your .gitignore.

Features

  • Conversation history — ordered, role-aware messages with recency windowing, sub-ms reads
  • Key-value context — typed durable facts: decisions, preferences, runbooks
  • Long-term entries — titled, tagged knowledge that survives months, with auto-summarisation
  • Entities — people and systems the agent should know about
  • Scratchpad — ephemeral working memory with TTLs (expiry is a feature)
  • Semantic search — across everything the agent has ever stored
  • Bootstrap — full session context in one call
  • Agent self-signup — working API key from one CLI command, live for 48h keyless; $0 card-auth starts the free 7-day trial
  • Queues — FIFO agent bus with long-poll and dead-letter, agmry queue (exit 2 = empty)
  • MCP server — 46 tools, local (agmry mcp-serve) or fully remote (mcp.agenticmemory.ai)
  • REST API — same memory on the request path of proxies and pipelines
  • Multi-agent spaces — a fleet of agents reads and writes one memory
  • End-to-end encryption — zero-knowledge spaces where only you hold the key (agmry key generate)
  • Export — full data takeout per space, one command (agmry space export)

Pricing: The agent's key works instantly — full access for 48h, no card. A $0 card-auth starts the free 7-day trial; after that from $24.99/mo. No data deletion, ever: your memory waits for you. Details.

Why not just Claude's built-in memory?

Claude Memory is great — but it only works with Claude, and only Claude decides what's in it.

Agentic MemoryClaude Memory
LLM supportAny — GPT, Claude, Gemini, Llama, Mistral, DeepSeekClaude only
Switch LLMsKeep all memoryLose everything
Multi-agentShared spaces across agentsSingle user
Programmatic controlFull CLI + MCP + RESTBlack box — Claude decides
Structured dataMessages + context + entries + entities + scratchpadFree-text notes
Semantic searchagmry search "the deadline"No search API
Data ownershipYou own it, export any timeStored by Anthropic

Why this exists

I was my agents' memory. Every session started with me re-explaining my own project to my own tools — decisions, preferences, what broke last time. So I built the memory they run themselves. My own agents use it in production across a dozen projects; if something's rough or missing, open an issue — I read every one.

Documentation

License

Proprietary — Tyga.Cloud Ltd. See LICENSE.

来源:README.md,提交 c35c9b4

工具

46

memory_store

Store a message in conversation history. Use for remembering what just happened.

输入参数rolecontent必填spaceId必填

memory_store_batch

Store multiple messages at once.

输入参数spaceId必填messages必填

memory_recall

Recall recent messages from conversation history. Returns newest first.

输入参数limitbeforespaceId必填

memory_clear

Clear all messages in a memory space.

输入参数spaceId必填

context_set

Set a key-value context entry. Stores structured data (JSON or string).

输入参数key必填ttlvalue必填spaceId必填

context_get

Get a context value by key.

输入参数key必填spaceId必填

context_list

List all context keys and values in a space.

输入参数spaceId必填

context_delete

Delete a context key.

输入参数key必填spaceId必填

entries_list

List long-term memory entries. Filter by tags.

输入参数tagslimitspaceId必填

spaces_list

List all memory spaces owned by this API key.

无需输入参数。

spaces_create

Create a new memory space.

输入参数name必填slug必填

queue_push

Enqueue a JSON envelope onto a FIFO queue in a memory space. Use to send work/events to other agents sharing the space.

输入参数queue必填spaceId必填envelope必填

queue_pop

Dequeue the oldest envelope from a FIFO queue (returns null if empty). Set wait (max 25s) to long-poll for the next envelope.

输入参数waitqueue必填spaceId必填

queue_peek

Peek at a queue without consuming: returns length and the head envelope.

输入参数queue必填spaceId必填

memory_bootstrap

Load full context in one call: recent messages, entries, context, scratchpad. Run this at session start.

输入参数queryentriesspaceId必填messages

memory_bootstrap_batch

Parallel bulk fetch: named context keys, entities, and optional semantic results in one call.

输入参数keysqueryspaceId必填entitiessemanticentriesLimit

scratchpad_set

Set the scratchpad content for a memory space (ephemeral working memory).

输入参数data必填spaceId必填

scratchpad_get

Get the scratchpad content from a memory space.

输入参数spaceId必填

spaces_get

Get a single memory space (config, usage counters).

输入参数spaceId必填

space_export

Export all data in a space (all primitives, schema v2) as a restorable payload.

输入参数spaceId必填

space_import

Restore a space from an export payload. Mode: empty-only (default), merge, or replace.

输入参数modepayload必填spaceId必填

entry

Single-entry operations on the tagged/versioned journal: add, get, update, versions, restore.

输入参数tagstypetitleaction必填reasonsourcecontententryIdspaceId必填version

entries_add_batch

Append multiple journal entries in one call.

输入参数entries必填spaceId必填

entity

Entity (knowledge-graph node) operations: upsert (create), get, update, delete.

输入参数name必填roleknowsaction必填spaceId必填doesNotKnow

entities_list

List entities in a memory space, optionally filtered.

输入参数spaceId必填namePrefixknowsContains

thread

Thread (conversation grouping) operations: create, get, update, delete.

输入参数nameaction必填statusspaceId必填summarymetadatathreadId

threads_list

List threads in a memory space, optionally filtered by status.

输入参数statusspaceId必填

state_get

Get a space's single JSON state snapshot.

输入参数spaceId必填

state_set

Replace a space's single JSON state snapshot.

输入参数state必填spaceId必填

shared_memory

Shared world-memory (one-write, all-see) operations: set, get, list, delete.

输入参数keyttlvalueaction必填spaceId必填

queue_lease

Non-destructive lease (at-least-once): take the oldest envelope with a visibility timeout. Returns {item, leaseToken, deadline}. Ack with queue_ack, requeue with queue_nack.

输入参数waitqueue必填spaceId必填visibilitySeconds

queue_ack

Acknowledge a leased envelope (deletes it permanently).

输入参数queue必填spaceId必填leaseToken必填

queue_nack

Negative-acknowledge a leased envelope (requeues it to the tail).

输入参数queue必填spaceId必填leaseToken必填

queue_dlq

Dead-letter queue operations: push a failed envelope, or list DLQ items.

输入参数limitqueue必填action必填offsetreasonspaceId必填envelope

stream_append

Append an entry to a stream (XADD). Returns the entry ID.

输入参数data必填maxlenstream必填spaceId必填

stream_read

Ranged read from a stream (XRANGE/XREVRANGE).

输入参数endcountstartstream必填reversespaceId必填

stream_info

Stream info: length and consumer groups (XLEN + XINFO GROUPS).

输入参数stream必填spaceId必填

stream_delete

Delete a stream entirely (hot + durable) — irreversible.

输入参数stream必填spaceId必填

stream_group

Consumer-group operations on a stream: create, destroy, read (XREADGROUP), ack (XACK), pending (XPENDING), claim (XCLAIM/XAUTOCLAIM).

输入参数idsfromcountgroup必填startaction必填stream必填spaceId必填consumerminIdleMswaitSeconds

kv_hash

Hash operations (Redis-hash semantics, write-through durable): set, get (whole hash), keys, get_field, del_field, delete, setnx (atomic set-if-absent), cas (atomic compare-and-set).

输入参数name必填fieldvalueaction必填fieldsspaceId必填expecteddeleteField

kv_string

String operations with optional TTL (survives rebuild): set, get (includes remaining ttlMs), delete.

输入参数name必填valueaction必填spaceId必填ttlSeconds

kv_set

Set operations (Redis-set semantics): add, members (with size), contains, remove, delete.

输入参数name必填action必填membermembersspaceId必填

usage_get

Get current usage vs plan limits for the authenticated tenant.

无需输入参数。

webhook

Per-space webhook subscriptions: create, list, delete.

输入参数urlaction必填eventsfilterhookIdsecretspaceId必填

knowledge

Knowledge-base operations: create (with documents), list, delete, query (smart retrieval).

输入参数kbIdnamesluglimitqueryaction必填spaceId必填documentsdescription

版本历史

2
  1. v1.10.0最新Sep 23, 2026
  2. v1.9.0Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Vipsallowed 集成