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.

已验证Streamable HTTP可网页运行知识与记忆AI 与机器学习

概览

AI 生成的概览

面向 AI 代理的托管记忆服务,以带有效期的类型化事实存储信息,让助手既能读取当前为真的内容,也能查询某个过去日期为真的内容。

可以做什么
  • 写入记忆,由服务端抽取类型化事实(主语、谓语、宾语),可按用户范围隔离
  • 按查询返回可直接放入提示词的上下文块,并给出 token 数
  • 按过去日期查询事实,或查询当时存储已知的内容
  • 对原始记忆做语义检索,并查看实体关系图
  • 查看抽取状态与事件,执行批量导入并轮询进度
  • 审计某用户的全部记录,包括已被取代的旧事实
适用场景
适用于助手需要跨会话长期记住用户或实体信息、且这些信息会随时间变化的场景,也适合需要说明代理当时依据什么作答的审计需求。编码助手也可用它为每个代码仓库共享一份记忆。
运行要求
远程 streamable HTTP 端点 api.korely.ai,使用托管 MCP 服务器无需本地安装包。认证方式为 OAuth 或 Authorization 请求头中的 bearer 密钥(kor_live_...),可通过 CLI 初始化命令或 agents init 接口免费获取。可选的 Python 与 Node 客户端会读取 KORELY_API_KEY 或本地配置文件。
安装前请注意
该密钥即账号:没有登录机制,且密钥是删除账号的唯一途径,需妥善保管。写入后由服务端异步抽取,事实可能滞后于写入。记忆内容会发送到第三方欧盟托管服务,终端用户可查看、更正并删除与其相关的记录。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Korely Memory,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

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.

python
import timefrom korely_memory import Korely
korely = Korely()  # reads KORELY_API_KEY from the environment
korely.add("Maria is on the Pro plan, billed yearly.", user_id="maria")korely.add("Maria downgraded to Free.", user_id="maria")
time.sleep(10)  # facts are extracted server-side; see "Writes settle asynchronously"
ctx = korely.get_context(query="what plan is Maria on?", user_id="maria")print(ctx.context)# ## Known facts# - Maria downgraded_to Free (since 2026-09-08)# - Maria billing_frequency yearly (since 2026-09-08)## Pro is gone from the current facts. It was superseded, not deleted.

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:

python
korely.get_facts(user_id="maria", include_invalidated=True)# Maria downgraded_to Free    valid_from=... invalid_at=None# Maria plan Pro              valid_from=... invalid_at=2026-09-08T08:31:09Z

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:

python
korely.add("Franco signed up on the Pro plan.", user_id="franco", timestamp="2026-01-15")korely.add("Franco downgraded to Free.",        user_id="franco", timestamp="2026-06-20")
korely.get_facts(user_id="franco", as_of="2026-03-01")   # subscribes_to -> Pro plankorely.get_facts(user_id="franco", as_of="2026-08-01")   # subscribes_to -> Freekorely.get_facts(user_id="franco")                       # subscribes_to -> Free

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:

python
korely.get_facts(user_id="maria", as_of="2026-09-20")        # lives_in -> Turinkorely.get_facts(user_id="maria", known_as_of="2026-09-20")  # lives_in -> Milan

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:

CallAvailable
search() over raw memoriesimmediately
get_facts() and get_context() typed factsafter a few seconds

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:

python
page = korely.events()page.processing  # 0page.events[0]   # MemoryEvent(memory_id='mem_...', status='ready', ...)

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

bash
pip install korely-memory      # Python, plus the `korely` CLInpm install korely-memory      # Node / TypeScript

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:

bash
curl -X POST https://api.korely.ai/v1/agents/init \  -H 'Content-Type: application/json' \  -d '{"agent_caller": "your-name-here"}'

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:

bash
pip install korely-memorykorely init --agent --agent-caller your-namepython -c "from korely_memory import Korely; print(Korely().get_context(query='hi').tokens)"

TypeScript

ts
import { Korely } from "korely-memory";
const korely = new Korely();
await korely.add("Maria downgraded to Free.", { user_id: "maria" });const ctx = await korely.getContext({ query: "what plan is Maria on?", user_id: "maria" });

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

bash
korely add "Maria downgraded to Free." --user-id mariakorely context "what plan is Maria on?" --user-id mariakorely facts --as-of 2026-03-01 --user-id mariakorely audit --user-id maria --all --json > maria.json   # everything that touched Maria

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_from and invalid_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_of answers what was true on any past date, and known_as_of what 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:

python
import asynciofrom korely_memory import AsyncKorely
async def main():    korely = AsyncKorely()    contexts = await asyncio.gather(        korely.get_context(query="what plan?", user_id="a"),        korely.get_context(query="what plan?", user_id="b"),        korely.get_context(query="what plan?", user_id="c"),    )
asyncio.run(main())

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?

  What the store believed in March, when the agent answered:      customer-4821 · subscribes_to · Business plan      Business plan · includes · priority support
  What is true today:      customer-4821 · subscribes_to · Standard plan      customer-4821 · lacks · priority support

Right in March, right today, and both provable. Run it yourself in about twenty seconds:

bash
pip install korely-memorykorely init --agent --agent-caller audit-examplepython examples/audit_trail.py

It checks its own claims rather than making them, erasure included.

Repository layout

PathPackage
python/korely-memory on PyPI, includes the korely CLI and an MCP stdio server
js/korely-memory on npm
n8n/n8n-nodes-korely, a community node for self-hosted n8n (see its README)

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:

bash
claude mcp add --transport http korely https://api.korely.ai/agent/mcp \  --header "Authorization: Bearer kor_live_..."

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
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

2
  1. v1.0.1最新Oct 15, 2026
  2. v1.0.0Sep 16, 2026

评分

已满足适用检查项的 85%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分