GC

gambletan/cortex

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

37 stars 4 forks 质量 80 趋势 26MIT

为AI代理提供永不离开设备的内存。本地优先、端到端加密、零遥测的内存引擎(Rust、MCP)——为Claude和任何MCP客户端提供持久的跨会话内存。

概览

—— 零安装,124KB WASM,完全客户端运行。——只需1秒钟,帮助他人发现项目。 私密。免费。本地。——个人AI代理的记忆引擎。 纯Rust。3.8MB二进制。数据路径中无第三方服务器,零遥测,零成本。通过你自己的云存储同步。(设备语义搜索首次使用时下载一个约30MB的型号,然后完全离线——或者100%离线,CORTEX_NO_EMBEDDINGS=1。参见安全与隐私。) - 🔒 — 内存存储在本地SQLite文件中,永不离开设备,零遥测(CI强制)。- 🧠 — 4层,多信号检索,自我纠正贝叶斯信念,跨通道人物图。- ⚡ — 156微秒的导入,568微秒的搜索。~528×比云内存API快,且无网络往返。- 🔌 — 一台MCP服务器为Claude Code / Claude Desktop(或任何MCP客户端)提供持久的跨会话内存。- ☁️ — 可选通过您自己的iCloud / Drive / Dropbox实现端到端加密同步。

概述(AI 翻译)

** 🧠 试试浏览器中的Cortex** — 零安装,124KB WASM,完全客户端运行。

如果Cortex帮助你的AI记忆,就给它一个⭐——它只需1秒钟,还能帮助他人发现项目。

中文 |日本語 |한국어

个人AI代理的本地内存。

_Private。免费。本地。——个人人工智能agents._的记忆引擎

**你的AI内存归档存储在你的设备上。**纯粹的Rust。3.8MB二进制。本地引擎不需要托管服务,且不收集任何遥测数据。可选的加密同步使用你自己的云存储;可选的Muse共享仅将你批准的摘录发送到Cortex Cloud和Meta。(设备内语义搜索首次下载一次约30MB的型号,然后完全离线——或者在CORTEX_NO_EMBEDDINGS=1时100%离线。参见安全与隐私。)

你得到的是什么

  • 🔒 默认为私有 — 内存存储在本地SQLite文件中;同步和Muse共享需要明确选择加入。零遥测(CI强制)。
  • 🧠 真实内存,而非文本文件 — 4层,多信号检索,自我纠正贝叶斯信念,跨通道人图。
  • ⚡ 亚毫秒 — 156微秒吸收,568微秒搜索。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Cortex

🧠 Try Cortex in your browser — zero install, 124KB WASM, runs entirely client-side.

If Cortex helps your AI remember, give it a ⭐ — it takes 1 second and helps others discover the project.

中文 | 日本語 | 한국어

Local memory for personal AI agents.

Private. Free. Local. — a memory engine for personal AI agents.

Your AI’s memory archive lives on your device. Pure Rust. 3.8MB binary. The local engine needs no hosted service and collects zero telemetry. Optional encrypted sync uses your own cloud storage; optional Muse sharing sends only the excerpts you approve to Cortex Cloud and Meta. (On-device semantic search downloads a ~30MB model once on first use, then runs fully offline — or go 100% offline with CORTEX_NO_EMBEDDINGS=1. See Security & Privacy.)

What you get

  • 🔒 Private by default — memories live in a local SQLite file; sync and Muse sharing require explicit opt-in. Zero telemetry (CI-enforced).
  • 🧠 Real memory, not a text file — 4 tiers, multi-signal retrieval, self-correcting Bayesian beliefs, a cross-channel people graph.
  • ⚡ Sub-millisecond — 156µs ingest, 568µs search. ~528× faster than cloud memory APIs, with no network round-trip.
  • 🔌 Drop-in for any agent — one MCP server gives Claude Code / Claude Desktop (or any MCP client) persistent cross-session memory.
  • 🤝 Connect Meta Muse to chosen excerpts — your archive stays local. The optional service at https://cortex.alvinsclub.ai serves only your approved export, with daily disclosure limits and revocation. The server and Meta can read shared excerpts. Setup and privacy limits →
  • ☁️ Yours across devices — optional end-to-end-encrypted sync through your own iCloud / Drive / Dropbox; this sync needs no Cortex server.

See it remember across sessions — ~30 seconds:

brew install gambletan/tap/cortex-mcp-server          # or: cargo build --release -p cortex-mcp-server
claude mcp add cortex-memory -- cortex-mcp-server ~/.cortex/memory.db

Tell Claude “remember I deploy on Fly.io and always run tests before pushing.” Open a brand-new session and ask “how do I deploy this project?” — it answers from memory, 100% on your machine.

⭐ If that’s useful, give it a star — it helps others find a memory engine that respects their privacy.


在 GitHub 查看完整 README

安装

docker run -v ~/.cortex:/data -p 3315:3315 ghcr.io/gambletan/cortex/cortex-http:latest
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "cortex": { "command": "/Users/you/.local/bin/cortex-mcp-server", "args": ["/Users/you/.cortex/memory.db"] } } }