
Korely Memory
ai.korely由 korely.ai 發布官方發布者v1.0.1更新於 Oct 28, 2026
Memory for AI agents that knows what is still true. Typed bi-temporal facts, EU-hosted.
概覽
為 AI 代理提供的託管記憶服務,以帶有效期間的型別化事實儲存資訊,讓助理既能讀取目前為真的內容,也能查詢某個過去日期為真的內容。
- 可以做什麼
- 寫入記憶,由伺服器端擷取型別化事實(主詞、述詞、受詞),並可依使用者範圍隔離
- 依查詢回傳可直接放入提示詞的上下文區塊,並附上 token 數
- 依過去日期查詢事實,或查詢當時儲存庫已知的內容
- 對原始記憶做語意檢索,並檢視實體關係圖
- 查看擷取狀態與事件,執行批次匯入並輪詢進度
- 稽核某位使用者的全部紀錄,包括已被取代的舊事實
- 適用情境
- 適用於助理需要跨工作階段長期記住使用者或實體資訊、且這些資訊會隨時間變動的情境,也適合需要說明代理當時依據什麼作答的稽核需求。程式設計助理也可用它為每個程式碼儲存庫共用一份記憶。
- 執行需求
- 遠端 streamable HTTP 端點 api.korely.ai,使用託管 MCP 伺服器不需在本機安裝套件。驗證方式為 OAuth 或 Authorization 標頭中的 bearer 金鑰(kor_live_...),可透過 CLI 初始化指令或 agents init 介面免費取得。選用的 Python 與 Node 用戶端會讀取 KORELY_API_KEY 或本機設定檔。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Korely Memory,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/ai.korely%2Fmemory/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"korely-memory": {
"type": "http",
"url": "https://api.korely.ai/agent/mcp"
}
}
}README
Korely Memory
Memory for AI agents that knows what is still true.
Korely stores what your agent learns as typed facts with a validity window. When something changes, the old fact is superseded instead of overwritten. Your agent reads the current truth, and you can still ask what was true on any past date.
The exact predicate is chosen by the extractor, so downgraded_to here might be
subscribes_to or plan on your run. What is guaranteed is the behaviour: the
old value leaves the current set, and stays retrievable with its invalid_at.
Nothing was deleted. The Pro fact is still there, carrying invalid_at and a pointer to what replaced it:
Time travel over real dates
Pass timestamp when the event happened in the past, and facts inherit it as
valid_from. Then as_of answers over the world's timeline, not your ingestion
order:
Without timestamp every fact starts being true the moment you write it, so
as_of on an earlier date returns nothing. That is correct, and usually not
what you want when you are importing history.
as_of answers what was true on a date, as the store knows it today.
known_as_of (Korely Agent 0.1.26) answers the other question: what the store
knew on that date. They differ when a change is told late. An agent learns on
5 October that a customer moved on 1 September:
On 20 September the move had happened, and the store did not know it yet.
known_as_of is on get_facts, get_profile and get_context, which rebuilds
the block as the store could have built it then: what an agent could have
known when it decided. Each fact carries closed_known_at, when the store
learned it had ended.
Writes settle asynchronously
add() returns as soon as the memory is stored, then extraction runs server-side. That means:
The time.sleep(10) above exists only so the snippet works when you paste it. You do not need it in production: an agent writes at the end of one turn and reads at the start of the next, and by then the facts are there.
If you do need to know exactly when, ask instead of guessing. Every memory carries a status of processing, ready, or error, and events() reports what is still in flight:
processing == 0 means none of your project's writes (in the user_id scope, if you pass one) is still being extracted, however many there are, so a script can wait on that one number instead of walking every id. After a batch() import, wait for batch_status() to finish first: memories the job has not stored yet are not counted.
Polling is the only signal: no webhook fires when extraction finishes. The webhook events are memory.created, fact.invalidated and quota.warning.
Install
Both clients have zero runtime dependencies.
For LangGraph, the optional pip install 'korely-memory[langgraph]' adds a store, memory tools and a context helper: see python/README.md.
Get a key
The hobby tier is free and needs no signup form:
The response carries a kor_live_ key. Set it as KORELY_API_KEY and the SDK, the CLI, and the REST API all authenticate with it. From code, Korely.init_agent() (Python) and Korely.initAgent() (JS) make the same call.
The account behind that key has no login: the key is the account. Keep it, because it is also the only way to delete the account (korely delete-account --yes, or delete_account(confirm=True) in the SDK).
Or let the CLI do it for you. korely init saves the key to ~/.korely/config.json, and the SDK reads it from there when KORELY_API_KEY is not set, so this is enough to get going:
TypeScript
With the Vercel AI SDK, withKorelyMemory(model, { userId }) from korely-memory/ai-sdk gives any model this memory in one line: see js/README.md.
CLI
Every command is listed in python/README.md.
What Korely does
- Typed facts. Subject, predicate, object, extracted server-side. No prompt engineering on your side.
- Bi-temporal validity. Every fact carries
valid_fromandinvalid_at, so the store separates when something was true from when it was recorded. - Contradiction resolution. A new fact that conflicts with an old one supersedes it and records which fact replaced it. Nothing is silently dropped.
- Point-in-time queries.
as_ofanswers what was true on any past date, andknown_as_ofwhat the store knew on it. - Entity graph. Entities and relations are extracted automatically and available on every tier, including free.
- Semantic retrieval. Memories and facts are ranked by meaning (vector similarity), and facts also by how recently a memory confirmed them.
- Prompt-ready context.
get_context()returns a block you can paste straight into a system prompt, with the token count. - EU-hosted. Runs in Helsinki. End users can see, correct, and erase what agents remember about them.
Async
An agent in production does not make one call at a time. AsyncKorely mirrors
every method of Korely, so everything you learned carries over:
Six calls against the live API: 5.6s sequential, 1.7s concurrent.
Calls run on a thread pool rather than an async HTTP library, because keeping this package at zero runtime dependencies is worth more than the last drop of efficiency. Your event loop is never blocked and requests really do overlap.
Examples
examples/audit_trail.py answers the question this
store exists for: what did your agent know on the day it answered?
A support agent tells a customer in March that they have priority support. In June the customer moves to a cheaper plan. In September they complain, quoting your bot back at you. Was the bot wrong, or right at the time?
Right in March, right today, and both provable. Run it yourself in about twenty seconds:
It checks its own claims rather than making them, erasure included.
Repository layout
Coding assistants
korely init --tool claude-code (or codex, or cursor) in a repository
connects that assistant to one memory per repository: it is handed the
memory when a session starts, and its sessions are saved to it. Every
assistant you connect shares it. See the Python README.
MCP
Korely runs a hosted MCP server, so a coding agent can read and write memory without any package:
Documentation
Full REST contract, concepts, and integration guides: korely.ai/agents/docs
License
MIT. These clients are open source; the hosted service they talk to is not.
來源:README.md,提交 5bc685e
工具
0版本歷史
2- v1.0.1最新Oct 15, 2026
- v1.0.0Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分