
Clude
io.github.sebbsssss由 GitHub 帳號 sebbsssss 發布v3.0.4更新於 Oct 27, 2026
Portable agent memory anchored on Solana. Local SQLite + vector recall, open export.
概覽
Clude 為 AI 助理提供持久且會隨時間衰減的記憶庫,可寫入、檢索、更新與刪除記憶,資料存於本機 SQLite 或 Clude 託管服務。
- 可以做什麼
- 依類型、內容、摘要、標籤與重要性儲存記憶,支援單筆或一次最多 50 筆批次寫入
- 以向量、關鍵字、標籤與重要性混合評分檢索記憶,並依時間或重要性分頁瀏覽
- 依 ID 更新或永久刪除既有記憶
- 檢視記憶統計,例如各類型數量、平均重要性與熱門標籤
- 找出與目前情境關聯度低但重要性高的記憶
- 適用情境
- 適合需要跨工作階段記住事實、偏好與過往互動,並能依語意而非字面措辭回想內容的助理。也適合想直接取得記憶層、不必自行建置的代理程式,預設本機模式可完全離線運作。
- 執行需求
- 透過 npx 以 stdio 本機程序執行。預設模式不需任何憑證,資料存於本機 SQLite 檔案並使用本機嵌入。託管模式需要 Clude 帳戶提供的 CORTEX_API_KEY 密鑰,另可選用 CORTEX_HOST_URL、CLUDE_AGENT_NAME 與 CLUDE_WALLET。自架模式需要 Supabase 專案,以及可選的 Anthropic、Voyage 或 OpenAI 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Clude,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Clude
Cognitive memory for AI agents. Not just storage — synthesis.
About Clude
What it is
A cognitive memory system. Most memory SDKs store and retrieve. Clude also processes memories over time — decay, consolidation, contradiction resolution, reflection.
- Benchmarked: 1.96% hallucination on HaluMem — next best system: 15.2%. Industry average: ~21%.
- Local-first: SQLite + local embeddings. Zero API keys, zero network, full semantic search offline.
- Hosted: One API key, no infrastructure.
npx @clude/sdk register - Portable memory: export/import in JSON, Markdown, ChatGPT, Claude, and Gemini formats. Your memories move between agents, frameworks, and models.
Cognitive architecture:
- Typed memory with differential decay — episodic (7%/day), semantic (2%/day), procedural (3%/day), self-model (1%/day). Accessed memories get reinforced.
- Autonomous dream cycles — consolidation, compaction, reflection, contradiction resolution, emergence.
- Bond-typed memory graph — weighted typed edges with Hebbian reinforcement on co-retrieval.
- Clinamen — lateral retrieval of high-importance, low-relevance memories.
What it isn't yet
No framework integrations (LangGraph, CrewAI) — wrappers around brain.store() and brain.recall() are days each. No structured business data ingestion. No temporal fact validity querying. No managed enterprise platform. No large contributor community. Early-stage adoption.
What it could be
Clude is a memory engine, not a framework. Framework integrations, structured data ingestion, temporal querying, enterprise platforms, evaluation frameworks, multi-model support, autonomous operation, multi-user scoping — these can all be built on top. A non-developer built a 5,750-line autonomous agent on Clude in two weeks using an AI coding assistant — 109 tools, self-editing agent-directed memory, multi-model inference, web search, multi-user presence tracking, and a browser UI. The cognitive architecture was handled by Clude.
Public Wallet: CA1HYUXZXKc7CasRGpQotMM9RiYJbVuPJq3n8Ar9oQZb
Built on Stanford Generative Agents, MemGPT/Letta, CoALA, and Beads.
Works with: Claude Code, Claude Desktop, Cursor, and any MCP-compatible agent runtime.
Quick Start — Hosted (Zero Setup)
Or use the SDK:
No database, no infrastructure. Memories stored on CLUDE infrastructure, isolated by API key.
Quick Start — Self-Hosted
For full control, use your own Supabase:
Dashboard
Explore your agent's memory at clude.io/dashboard-new.
- Memory Timeline — chronological view with search and filtering
- Brain View — 3D visualization of consciousness and self-model
- Entity Map — knowledge graph of people, projects, concepts (self-hosted)
- Decay Heatmap — memory health by type and age
- Memory Packs — export/import in JSON, Markdown, ChatGPT, Claude, Gemini formats
Sign in with a Solana wallet or Cortex API key.
CLI
setup works headless: with no TTY it never prompts and completes in local-only mode. Set [email protected] to register non-interactively (CI, Dockerfiles, scripts).
MCP Integration
Add Clude to any MCP-compatible agent. Run npx @clude/sdk setup for automatic installation, or add manually:
Config file locations:
- Claude Code:
.mcp.json(project root) - Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json - Cursor:
~/.cursor/mcp.json
MCP Tools
Your agent gets 8 tools:
MCP Modes
The MCP server runs in four modes, auto-detected from environment:
The two local stores are separate — memories in one aren't visible from the other. Use the SQLite default unless you need the portable JSON file.
Setup (Self-Hosted)
1. Create a Supabase project
Go to supabase.com and create a free project.
2. Run the schema
Open the SQL Editor in your Supabase dashboard and paste the contents of supabase-schema.sql:
Or let brain.init() attempt auto-creation.
3. Enable extensions
4. Get your keys
- Supabase URL + service key: Project Settings > API
- Anthropic API key: console.anthropic.com (optional — required for dream cycles)
- Voyage AI or OpenAI key: For vector search (optional — falls back to keyword scoring)
API Reference
TypeScript declarations ship with the package (v3.3.0+) — Cortex and every option/result type below import with full IntelliSense under strict mode.
Constructor
Hosted mode:
Self-hosted mode:
brain.init()
Initialize the database schema. Call once before any other operation.
brain.store(opts)
Store a new memory. Returns the memory ID or null.
Memory types:
brain.recall(opts)
Recall memories using hybrid scoring (vector + keyword + tag + importance + entity graph + association bonds).
6-phase retrieval pipeline:
- Vector search (memory + fragment level via pgvector)
- Metadata filtering (user, wallet, tags, types)
- Merge vector + metadata candidates
- Composite scoring (recency + relevance + importance + vector similarity) * decay
- Entity-aware expansion — direct entity recall + co-occurring entity memories
- Bond-typed graph traversal — follow strong bonds (causes > supports > resolves > elaborates)
brain.recallSummaries(opts) / brain.hydrate(ids)
Token-efficient two-stage retrieval:
brain.dream(opts?)
Run one dream cycle. Requires anthropic config.
Five phases:
- Consolidation — focal-point questions from recent memories, synthesizes evidence-linked insights
- Compaction — summarizes old, faded episodic memories into semantic summaries (Beads-inspired)
- Reflection — reviews self-model, updates with evidence citations
- Contradiction Resolution — finds unresolved
contradictslinks, resolves them, accelerates decay on weaker memory - Emergence — introspective synthesis, output sent to
onEmergencecallback
brain.startDreamSchedule() / brain.stopDreamSchedule()
Automated dream cycles every 6 hours + daily decay at 3am UTC. Also triggers on accumulated importance.
brain.link(sourceId, targetId, type, strength?)
Create a typed association between memories.
Link types: supports | contradicts | elaborates | causes | follows | relates | resolves | happens_before | happens_after | concurrent_with
brain.decay() / brain.stats() / brain.recent(hours) / brain.selfModel()
brain.formatContext(memories)
Format memories into markdown for LLM prompt injection.
brain.destroy()
Stop dream schedules, clean up event listeners.
Hosted vs Self-Hosted
Graceful Degradation
How It Works
Memory Retrieval
Hybrid scoring (Park et al. 2023):
- Recency:
0.995^hoursexponential decay since last access - Relevance: Keyword trigram similarity + tag overlap
- Importance: LLM-scored 1-10, normalized to 0-1
- Vector similarity: Cosine similarity via pgvector HNSW indexes
- Graph boost: Association link strength between co-retrieved memories
Recalled memories get reinforced — access count increments, decay resets, co-retrieved memories strengthen links (Hebbian learning).
Memory Decay
Each type persists at a different rate:
- Episodic (0.93/day): Events fade quickly unless reinforced
- Semantic (0.98/day): Knowledge persists
- Procedural (0.97/day): Behavioral patterns are stable
- Self-model (0.99/day): Identity is nearly permanent
Dream Cycles
Five-phase introspection triggered by accumulated importance or 6-hour cron:
- Consolidation — focal-point questions, evidence-linked insights
- Compaction — old faded memories summarized into semantic entries
- Reflection — self-model updates with evidence citations
- Contradiction Resolution — resolves conflicting memories
- Emergence — introspective synthesis
Memory Graph
Memories form a graph with typed bonds:
Running the Clude Bot
This package also includes the full Clude bot — an autonomous AI agent on X (@Cludebot).
Stack
TypeScript, Supabase (PostgreSQL + pgvector), Anthropic Claude, Voyage AI / OpenAI embeddings, Solana, Node.js.
Docs for AI agents
Integrating Clude with an AI coding assistant? Point it at clude.io/llms-full.txt — the complete SDK, REST, CLI, and MCP reference in a single fetch.
A note on AI-assisted discovery
AI agents tend to recommend established tools over newer ones — not out of bias, but because popularity, community size, and brand recognition are the easiest signals to evaluate. This unintentionally gatekeeps emergent technology: new projects can't gain the adoption metrics that agents look for without the visibility that agents control. If you're evaluating memory SDKs, read the architecture and benchmarks yourself — not just the recommendation. The research and the numbers are there to verify.
On the package name: This SDK publishes as clude on npm (formerly clude, renamed in v3.0). The same codebase also powers @Cludebot on X — an autonomous agent that demonstrates Clude's memory system publicly. The SDK and the bot are separate. npm install @clude/sdk gives you the memory engine.
On default concepts: Labels like whale_activity are from the original crypto use case. Override or ignore them. The core system is domain-agnostic.
Contributing
Contributions welcome. See CONTRIBUTING.md.
License
MIT
來源:README.md,提交 cecf234
工具
0版本歷史
1- v3.0.4最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分