Kortexio Memory

io.kortexio由 kortexio.io 發布官方發布者v1.0.0更新於 Nov 2, 2026

Hosted ambient memory for AI agents. Retrieve context and save notes via MCP tools with OAuth.

已驗證Streamable HTTP可網頁執行知識與記憶AI 與機器學習

概覽

AI 產生的概覽

為 AI 代理提供的託管式環境記憶服務:透過 MCP 工具儲存筆記、擷取上下文,並以 OAuth 登入。

可以做什麼
  • 在對話中儲存筆記與記憶,使其跨工作階段保留
  • 搜尋並讀取已存記憶,在新工作階段中回想先前的上下文
  • 以可讀的 markdown 工作階段 wiki 與歷史紀錄保存記憶,而非不透明的向量嵌入
  • 可選用共享全域 wiki,對公司或文件知識進行搜尋與 grep
  • 執行伺服器端代理工具迴圈,包含沙箱、MCP 目錄、技能、護欄,並在破壞性操作前要求人工確認
適用情境
適合希望 Cursor、Claude 等助理在不同對話之間記住事實、決策或環境資訊的情境,且不必改寫用戶端。也適合在 OpenAI 相容模型服務前自架一層記憶閘道。
執行需求
託管端點為 mcp.kortexio.io 上的遠端 streamable HTTP 服務,使用 OAuth 登入;未宣告任何套件或環境變數。README 中的自架方案需要 Docker Compose、本機 OpenAI 相容推論引擎(如 llama.cpp、vLLM 或 Ollama),以及閘道的 API 金鑰與應用程式識別碼。
安裝前請注意
託管服務會保存助理寫入的內容,請勿將金鑰或敏感資料存入記憶。自架需設定主金鑰與各應用程式的 API 金鑰,README 中的範例值必須更換。閘道可在伺服器端執行工具、沙箱與 MCP 伺服器,破壞性操作僅由選用的人工確認步驟把關。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Kortexio Memory,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Kortexio ContextMemory — Memory you can open as a wiki]

Try it (3 commands) · Engines · Docs · vs Mem0 / Zep / Letta

[License: AGPL-3.0] [.NET 9] [Docker GHCR] [Docker CI] [Tests] [e2e: llama.cpp]

Self-hosted memory gateway for your llama.cpp / vLLM server.

Put one OpenAI-compatible /v1 URL in front of your engine. Your client sends only the new message; the gateway keeps session memory as markdown you can open, edit, and diff. No vector DB, no client rewrite.


Try it in three commands

bash
git clone https://github.com/Kortexio/ContextMemory.git && cd ContextMemorydocker compose -f docker-compose.yml -f docker-compose.llamacpp.yml up --build -d   # CPU; GPU: docker-compose.vllm.yml./scripts/aha-chat.sh                                                             # Windows: .\scripts\aha-chat.ps1

aha-chat sends two requests in the same session. The second one carries only the new question:

text
==> Turn 1: "Remember this for later: our staging database host is postgres-staging-01."==> Turn 2: "What is our staging database host?"   (no history in the request body)AHA OK — the client sent no history; the gateway remembered 'postgres-staging-01'.

The same check runs in CI against a real llama-server on every push (e2e-llamacpp). First start downloads a ~2 GB GGUF; pick another model with LLAMACPP_HF_MODEL (Engines). Admin UI: http://localhost:5200.


What is ContextMemory?

ContextMemory is the open-source agentic memory gateway behind Kortexio.

Your app (or Cursor/Claude) keeps talking to a normal chat API. The gateway:

  1. Authenticates the tenant and attaches session wiki + history
  2. Runs an agentic tool loop when tools are enabled (wiki search, sandbox, MCP, …)
  3. Applies skills, guardrails, validators, and optional HITL before destructive actions
  4. Returns a standard OpenAI-shaped chat.completions response (streaming supported)
Your client (OpenAI SDK / Cursor MCP / curl)        │        ▼  POST /v1/chat/completions┌────────────────────────────────────────────┐│  ContextMemory (.NET 9)                    ││  Auth · session wiki · Global Wiki tool    ││  Agentic loop · skills · guardrails · HITL ││  LLM backend (per app — BYO engine)        │└───────┬──────────────────┬─────────────────┘        ▼                  ▼ sandbox-runtime      mcp-runtime / MCP servers (shell/python/node)  (HTTP + stdio, OAuth) or Azure ACA sessions

Honest boundaries: this is a gateway + server-side harness, not a client agent framework (LangGraph/CrewAI) and not an agent OS (Letta). You keep your OpenAI client; the loop runs on the server.

LLM engines: ContextMemory does not ship or lock to one inference stack. Per tenant you pick any OpenAI-compatible /v1 host — Ollama, vLLM, LM Studio, ExLlamaSharp, OpenAI, Azure-compatible, LiteLLM, custom. Compose ships llama.cpp and vLLM overrides; swap engines per app in Admin → Config → LLM.

How we compare (Mem0 / Zep / Letta / why we are not RAG): docs/compare.md.


What it gives developers

You need…ContextMemory provides…
Memory that survives turns without rewriting your clientSession markdown wiki + history inject; send only the new message
Memory you can open, edit, auditFiles on disk / Postgres — not opaque embeddings
Shared company/docs knowledge in chatGlobal Wiki digests + on-demand wiki_search / wiki_grep (not classic RAG / embeddings)
Tools without a second orchestratorSame /v1: sandbox + MCP + wiki tools
Safer agentsSkills & guardrail packs, validators, HITL [CONFIRM:id]
Cursor / Claude permanent memory fastMCP wedge: memory_save / memory_search / memory_get
Any LLM per tenantBYO /v1 — Ollama, vLLM, LM Studio, ExLlamaSharp, OpenAI, Azure-compatible, custom
Operate without a test clientAdmin + Playground
Full control / zero opsDocker self-host · Kortexio Cloud (cmk_live_…)

Capabilities (summary)

Full detail: docs/architecture-and-features.md · Admin: docs/admin-ui.md · HITL: docs/hitl.md.

AreaHighlights
MemorySession wiki + rolling summary; history budgets; Global Wiki digests/FTS/revisions (asOf); no vector RAG
AgenticServer-side tool loop; sandbox; MCP catalog; artifacts; subagents; validators; HITL; egress policy
SkillsPlatform + per-app skills/guardrails (skill / always_on / requestable)
MCPOutbound wedge (Cursor → CM) · inbound catalog (CM → your MCP servers)
OpsAdmin UI · File or Postgres · Prometheus /metrics · Compose (API + Admin + mcp-runtime + sandbox)

[ContextMemory Admin dashboard]

[LLM backend picker]   [Admin Playground]


More ways to run

The gateway talks OpenAI-compatible /v1 to the engine (and Ollama native /api/chat when you need num_ctx). Change the engine anytime in Admin → Config → LLM or PATCH /admin/apps/{id}/config.

Engine already running (llama-server, vLLM, LM Studio, …) — API image only

bash
docker run --rm -p 5100:8080 \  -v contextmemory-data:/app/data \  -e ContextMemory__MasterKey=cm_master_dev_key_change_me \  -e ContextMemory__Apps__demo-dev__ApiKey=cm_live_dev_key_change_me \  -e ContextMemory__Apps__demo-dev__LlmBackend=openai-compatible \  -e ContextMemory__Apps__demo-dev__LlmModel=local-model \  -e ContextMemory__Apps__demo-dev__LlmEndpoint=http://host.docker.internal:8080 \  --add-host=host.docker.internal:host-gateway \  ghcr.io/kortexio/contextmemory:latest

Host-level default for all apps: ContextMemory__LlmEndpoint. Ollama on the host works too (ContextMemory__LlmEndpoint=http://host.docker.internal:11434). Engine flags that matter (llama.cpp --jinja, vLLM tool parser): Engines. Full stack (API + Admin + MCP + sandbox): docs/self-host.md.

Cursor / Claude memory (MCP)

bash
git clone https://github.com/Kortexio/ContextMemory.gitcd ContextMemory/mcp-server && npm install && node print-mcp-config.mjs

Paste into Cursor → Settings → MCP (or ~/.cursor/mcp.json). Same snippet works for Claude Desktop. Details: mcp-server/README.md.

Then, in two separate chats:

ChatYou sayAgent should
ARemember: staging DB is postgres-staging-01memory_save
B (new)What is our staging DB?memory_search + answer

Same flow without Cursor (wiki API, no LLM): ./scripts/aha-demo.sh or .\scripts\aha-demo.ps1.

No GPU, no ops: Kortexio Cloud

Kortexio CloudSelf-host (this repo)
Best forZero opsFull control (API + Admin + MCP + sandbox)
Keycmk_live_… (no X-App-Id)cm_live_… + X-App-Id
Chat bodyIdentical OpenAI /v1Identical OpenAI /v1
LLMBYO provider in dashboardBYO engine in Admin / env

Guides: Cloud · Self-host

Chat drop-in

bash
curl -X POST http://localhost:5100/v1/chat/completions \  -H "Content-Type: application/json" \  -H "X-App-Id: demo-dev" -H "X-User-Id: user-42" -H "X-Session-Id: sess-abc" \  -H "Authorization: Bearer cm_live_dev_key_change_me" \  -d '{"model":"local-model","messages":[{"role":"user","content":"Hello"}]}'

Thin header helpers (not full SDKs): @kortexio/contextmemory · kortexio-contextmemory


Documentation & support

DocTopic
docs/compare.mdWhy it exists · vs Mem0 / Zep / Letta · why we are not RAG
docs/architecture-and-features.mdWiki, temporal facts, agentic, skills, LLM backends
docs/admin-ui.mdAdmin UI map
docs/hitl.mdHuman-in-the-loop
docs/api.mdHTTP API
docs/cloud.md · docs/self-host.mdCloud · Docker / Compose
docs/ops.mdOps & troubleshooting
docs/README.mdFull docs index

Website: kortexio.io · Email: [email protected]


License

AGPL-3.0 for this open-source core — self-host it freely, including commercially. Need to embed it in a closed-source product without AGPL obligations? Use Kortexio Cloud or a commercial license. See docs/license-and-support.md.

來源:README.md,提交 303e693

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分