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 整合