
Aletheia
io.github.mohamed-ashraf-elsaed由 GitHub 帳號 mohamed-ashraf-elsaed 發布v0.1.13更新於 Nov 3, 2026
一個免費、本機的記憶與規則中心,供 Claude Code 及其他 AI 程式設計工具使用,通過 MCP 提供服務。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
A free, local memory and rules hub for Claude Code and other AI coding tools, served over MCP.
發布方自己的服務:4words
概覽
Aletheia 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Aletheia,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[Aletheia: a network brain with a stack of memory layers]
Aletheia
A free, local memory and rules hub for AI coding tools.
One store on your machine. Any tool reads it over MCP, REST or the CLI.
Persistent memory for Claude Code, Codex CLI, Cursor, Gemini CLI, Windsurf and OpenCode: a local, tool-neutral alternative to claude-mem.
[npm version] [Glama score] [Socket] [Licence] [Tests] [Last commit] [Stars] [Open issues] [Status] [Bun] [Platform] [As seen on Open Source Alternatives]
[Aletheia Memory on AlternativeTo]
Listed in the official MCP Registry, Glama, mcpservers.org, TensorBlock awesome-mcp-servers and AlternativeTo.
Install and run. Bun 1.1 or newer is required; the CLI runs on Bun, not Node.
[The Home page: your projects, your rules and how to start, in plain words (demo data)] [One project on the Home page: what Aletheia knows, with a Hide button, and the rules for it (demo data)]
Docs site · Project page · Frontend guide · Changelog · Issues
Status: alpha. The memory engine and the installers work in tests. The real Claude Code, Command Code, Codex CLI and OpenCode listed the generated MCP config. Hooks have run in real sessions of Claude Code (two days of use), Command Code (one short session) and Codex CLI (one interactive session), all on the author's machine and one user, with secrets redacted and no leaks found by the checker. No hook has run inside Cursor, Gemini CLI, Windsurf or OpenCode yet, and answer accuracy is not measured. CI runs the test suite on Linux, macOS and Windows. On Windows, two hook checks (Windsurf and Gemini CLI) are skipped and no real tool was tried there, so Windows is tested in CI only.
1,533 tests — 0 failures (run bun test).
English · 中文 · Español · Português (Brasil) · 日本語 · Deutsch · Français · 한국어 · हिन्दी · العربية · Русский.
Machine translations live in docs/i18n/; English is canonical. No translation has had native review.
What it is
Aletheia is a free, local memory and rules hub for AI coding tools. One SQLite store is read by any tool over MCP, REST or the CLI, and your rules are written into each tool's own instruction file. It is built to give Claude Code, Codex CLI, Cursor, Gemini CLI, Windsurf and OpenCode one shared, persistent memory; the sections below say which of them has been checked on a real install.
Every coding agent forgets between sessions, and each one remembers differently. Aletheia keeps the memory and the rules once, on your machine, and lets each tool read them in the format it already understands. There is no account, no telemetry and no network call unless you configure a model provider. It listens on loopback only.
Install in three commands
Open http://127.0.0.1:37790. Needs Bun 1.1 or newer. To install the published package instead,
run npm install -g aletheia-mem, then start it with aletheia-server. There are no runtime dependencies to
install.
The first screen has five tabs: Home (start here: pick a project and see what Aletheia knows about it, its rules and its connected tools, in plain words), Activity (Aletheia's own view of the requests and sessions your tools worked on), Knowledge (search, edit, pin, hide, export), Rules (write once and sync) and Connections (installer status and audit).
How capture works
Without --write the command is a dry run. It prints every file it would change and writes nothing. Each changed
file gets a timestamped backup. Hooks call the installed aletheia command, redact secrets and <private> blocks
before storing, spool to disk if the database is unavailable, and always exit 0 so they never block the host.
Compression is queued, not run inside the hook. Details and the exact hook list per host: docs/25.
Which tools it connects to
Aletheia does not depend on any one tool. It speaks MCP (stdio and HTTP), a plain REST API and a CLI, and it writes the instruction file each tool already reads. What has and has not been checked:
Generated from src/hub/install.mjs via aletheia install --list. A row says MCP connection when the real CLI listed the server. Hooks have run in real sessions of Claude Code (two days of use), Command Code (one short session) and Codex CLI (one interactive session), one user on one machine; Cursor, Gemini CLI, Windsurf and OpenCode hooks have not run.
Measured numbers
On LoCoMo, claude-mem 15.2.0 as shipped vs this project. These are retrieval numbers, not answer accuracy.
Retrieval only: Recall@5 asks whether the gold evidence is in the top five results. It is not answer accuracy. Every row is measured-by-us on the same LoCoMo questions; no vendor-claimed benchmark number is in this table. Generated from bench/results/2026-10-26/ (bench/claude-mem-baseline.mjs, raw-turns.json (hybrid), dataset-facts.json (hybrid+facts), dataset-facts-3-rerank.json (hybrid+facts), dataset-facts-3-rerank.json (hybrid+facts+rerank), dataset-facts-rerank.json (hybrid+facts+rerank), our-facts-rules.json (hybrid+facts)); re-run with bun scripts/compare-bench.mjs.
Read the table this way:
- Recall@5 is retrieval. It asks whether the gold evidence is in the top five results. It is not a judgment of whether an answer was right.
- Answer accuracy is not measured. There is no reader or judge harness yet.
- The gap is not 2× when both systems receive the same extracted facts. The speed difference is larger than the quality difference.
- The first local extraction run failed. Ollama
llama3.2:1banswered a trivial call, but thefacts-v1prompt over a two-turn window returned HTTP 500 after 4 min 41 s. No fact was extracted from that run. - Our rule extractor does not reproduce the fact gain. It added 1,672 facts and moved Recall@5 from 57.3% to 57.7%; the dataset's own facts added 7.3 points. Method, raw files and the negative result: bench/results.
How it compares
Competitor cells are copied from each project's own public documentation, fetched 2026-10-26. Aletheia cells were updated 2026-10-26 from tested features; installer sources are in docs/25-installers.md. Cells the source did not state read UNVERIFIED.
Sync and remote MCP
Both are self-hosted and free; neither is tested across two real machines.
- Aletheia Sync is an append-only operation log with one result per operation, device pairing, tombstones, compaction, purge and scoped tokens. Optional end-to-end encryption encrypts payloads on the device before they are sent; it does not hide metadata such as device id, operation kind, entity id, timing or ciphertext size. Unencrypted accounts keep plaintext payloads on the hub. Tested on loopback only. docs/29
- Remote MCP serves the read tools (and, with a
syncoradmintoken, the write tools) over the MCP Streamable HTTP transport. Each call needs a bearer token, is rate-limited and is written to an append-only audit row. TLS is delegated to a reverse proxy or tunnel; OAuth is not built. docs/30
Interfaces
MCP tools
Configuration
All settings are environment variables. The defaults are safe for a single-user machine.
Limits and unverified claims
This list is the honest half of the README.
- MCP config was listed by the real CLI for Claude Code, Command Code, Codex CLI and OpenCode on 2026-10-27. Hooks ran in real sessions of Claude Code (two days of use), Command Code (one short session) and Codex CLI (one interactive session), all on the author's machine and one user; Cursor, Gemini CLI, Windsurf and OpenCode hooks have not run. Cursor, Gemini CLI and Windsurf remain "config written from docs, not tested on a real install."
- CI runs the test suite on Linux, macOS and Windows (GitHub's windows-latest runner, Bun 1.3.10). On Windows, the hook-execution checks for Windsurf and Gemini CLI and one temp-folder cleanup check are skipped, and no real tool was tried. The install smoke test runs on Linux and macOS, and the benchmark gate on Linux only.
- Answer accuracy is not measured. Recall@5 is retrieval, not whether an answer was correct.
- The 1B-model extraction run failed; facts from our own extractor were measured with the rule extractor only.
- Sync and E2EE are tested with temp data dirs and a loopback hub. No real tunnel or second host was used.
- E2EE covers payloads, not metadata.
- At 50,000 synthetic rows, keyword search p95 is 32.7 ms project-scoped and 58.6 ms across all projects (measured-by-us,
bun bench/scale.mjs 50000 20000 --index tuned --queries 200 --seed 1, Linux). The 50 ms target is met for project-scoped search. - The 10 README translations are machine-translated. No native speaker has reviewed them.
- "Works with " is not claimed for any tool. Only a real install test would justify it.
Layout
Documentation
The full documentation is at https://aletheia.mohamedashrafelsaed.com/docs/. The Markdown in docs/ is
canonical.
- Get started: Introduction · Installation · Quickstart · How it works · Dashboard · FAQ
- Concepts: Memory model · Rules · Search · Session-start context · Privacy · Facts · Glossary
- Connect your tools: Overview · Claude Code · Command Code · Codex CLI · Cursor · Gemini CLI · Windsurf · OpenCode · Claude Desktop · Other tools
- Guides: Migrate from claude-mem · Write rules once · Back up, export, import · Run as a service · Model providers · Troubleshooting · Sync · Remote MCP · Team mode · Requests and goals
- Reference: CLI · MCP tools · Configuration · Hooks · HTTP API · Installers · Rules targets
- Compare: Aletheia vs claude-mem · Other memory tools · Claude Code memory options
- Project: Benchmarks · Status and limits · Dependencies and licences
- Internals: Architecture · Data model · Frontend · Operations
AI tools can read llms.txt, or llms-full.txt for every page in one file.
Contributing
The most useful contribution is a report from a real install: open an issue with the tool, its version, the command
you ran and what the tool did. See CONTRIBUTING.md. Run bun test and
bun scripts/gen-tables.mjs --check before a pull request. A new runtime dependency needs a reason.
Licence
Apache-2.0. See NOTICE.md for what comes from claude-mem. Not affiliated with or endorsed by the claude-mem authors or Anthropic.
Author
Made by Mohamed Ashraf Elsaed, technical lead and backend architect in Cairo. Project page and more tools: mohamedashrafelsaed.com/projects/aletheia/.
來源:README.md,提交 bb0461a
工具
0版本歷史
3- v0.1.13最新Nov 3, 2026
- v0.1.11Oct 31, 2026
- v0.1.10Oct 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Aletheia 整合
4words
land.aletheia官方發布者
面向LLM代理程式與人類的臨時文字/檔案共享及即時多代理程式聊天室。AI 翻譯

Aletheia
由 GitHub 帳號 firatmio 發布
Aletheia 為編碼助理提供帶有程式碼證據的專案記憶,每次召回都會對照檔案重新驗證,過期的事實會被隱藏。

Aletheia Certified Compute
由 GitHub 帳號 shaneraphel 發布
一個遠端 MCP 端點,提供經認證的程式合成,按次以 USDC 透過 x402 計費,被拒絕的請求不收費。

Aletheia Runtime Safety & Scope Creep Filter
由 GitHub 帳號 vikasny30 發布
本機 MCP 過濾器,在 shell、SQL、檔案與網路工具呼叫執行前先行攔截,阻擋已知的越權與提示注入模式。