에피소드 및 시맨틱 메모리, 자율 드림 사이클, 하이브리드 벡터-키워드 검색 기능을 갖춘 AI 에이전트용 인지 메모리 시스템을 제공합니다.
다른 이름 sebbsssss/clude, @clude/sdk
- 스타
- 23
- Tools
- 8
- 다운로드, 30일
- 221
- 최신 버전
- 3.0.4
- 마지막 커밋
- 2026년 10월 4일
- 라이선스
- MIT
clude MCP란?
clude은(는) MCP server입니다. 에피소드 및 시맨틱 메모리, 자율 드림 사이클, 하이브리드 벡터-키워드 검색 기능을 갖춘 AI 에이전트용 인지 메모리 시스템을 제공합니다. 8개 도구를 제공합니다. 예: recall_memories, store_memory, batch_store_memories.
프로젝트 README에서 생성된 요약
clude MCP server 정보
Clude는 단순한 저장을 넘어선 정교한 아키텍처를 통해 AI 에이전트를 위한 인지 메모리 시스템을 구현합니다. 에이전트가 에피소드, 시맨틱, 절차적 및 셀프 모델 메모리 유형에 대해 차등 감쇠를 사용하여 시간이 지남에 따라 정보를 처리할 수 있도록 지원합니다. 개발자는 오프라인 시맨틱 검색을 위해 SQLite와 로컬 임베딩을 사용하는 로컬 우선 솔루션으로 사용하거나, 단일 API 키가 필요한 호스팅 서비스로 사용할 수 있습니다.
사용자는 Clude를 Claude Desktop, Claude Code 또는 Cursor와 같은 MCP 호환 런타임에 통합할 수 있습니다. 이 시스템은 메모리 공고화 및 모순 해결을 위한 자율 드림 사이클과 결합된 본드 타입 메모리 그래프를 특징으로 합니다. 하이브리드 검색을 위한 recall_memories, store_memory, 중요도는 높지만 관련성은 낮은 메모리를 찾는 find_clinamen을 포함하여 에이전트를 위한 8가지 특정 도구를 제공합니다. 메모리는 휴대성이 매우 뛰어나 JSON, Markdown, ChatGPT, Claude, Gemini 형식으로 내보내기 및 가져오기가 가능합니다.
활용 사례
- 1자율적 메모리 공고화 수행개발자는 드림 사이클을 트리거하여 오래된 에피소드 메모리를 영구적인 시맨틱 지식으로 요약할 수 있습니다.
- 2문맥적으로 관련 있는 정보 검색에이전트는 벡터 유사도, 키워드 및 중요도 점수의 조합을 사용하여 과거 상호작용을 검색할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
clude MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 clude MCP 설치
$ claude mcp add --env 'CORTEX_API_KEY=<YOUR_CORTEX_API_KEY>' clude -- npx -y @clude/sdkCursor에 clude MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"clude": {
"command": "npx",
"args": [
"-y",
"@clude/sdk"
],
"env": {
"CORTEX_API_KEY": "<YOUR_CORTEX_API_KEY>"
}
}
}
}VS Code에 clude MCP 설치
.vscode/mcp.json
{
"servers": {
"clude": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@clude/sdk"
],
"env": {
"CORTEX_API_KEY": "<YOUR_CORTEX_API_KEY>"
}
}
}
}VS Code CLI에 clude MCP 설치
$ code --add-mcp '{"name":"clude","type":"stdio","command":"npx","args":["-y","@clude/sdk"],"env":{"CORTEX_API_KEY":"<YOUR_CORTEX_API_KEY>"}}'Claude Desktop에 clude MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"clude": {
"command": "npx",
"args": [
"-y",
"@clude/sdk"
],
"env": {
"CORTEX_API_KEY": "<YOUR_CORTEX_API_KEY>"
}
}
}
}Codex에 clude MCP 설치
$ codex mcp add clude --env 'CORTEX_API_KEY=<YOUR_CORTEX_API_KEY>' -- npx -y @clude/sdkCodex config.toml에 clude MCP 설치
~/.codex/config.toml
[mcp_servers.clude] command = "npx" args = ["-y", "@clude/sdk"] [mcp_servers.clude.env] CORTEX_API_KEY = "<YOUR_CORTEX_API_KEY>"
Gemini CLI에 clude MCP 설치
$ gemini mcp add -s user -e 'CORTEX_API_KEY=<YOUR_CORTEX_API_KEY>' clude npx -- -y @clude/sdkGemini settings.json에 clude MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"clude": {
"command": "npx",
"args": [
"-y",
"@clude/sdk"
],
"env": {
"CORTEX_API_KEY": "<YOUR_CORTEX_API_KEY>"
}
}
}
}clude MCP 도구 8
README에서 감지됨recall_memoriesstore_memorybatch_store_memorieslist_memoriesupdate_memorydelete_memoryget_memory_statsfind_clinamen
| recall_memories | — | |
| store_memory | — | |
| batch_store_memories | — | |
| list_memories | — | |
| update_memory | — | |
| delete_memory | — | |
| get_memory_stats | — | |
| find_clinamen | — |
구성
CORTEX_API_KEY필수비밀Clude API key from https://clude.io/register
CLUDE_AGENT_NAMEHuman-readable name for this agent instance
CLUDE_WALLETSolana wallet public key used to sign and anchor memories (optional but recommended)
CORTEX_HOST_URLClude host URL (defaults to https://clude.io)
| 이름 | 설명 | 유형 |
|---|---|---|
| CORTEX_API_KEY | Clude API key from https://clude.io/register | 필수비밀 |
| CLUDE_AGENT_NAME | Human-readable name for this agent instance | |
| CLUDE_WALLET | Solana wallet public key used to sign and anchor memories (optional but recommended) | |
| CORTEX_HOST_URL | Clude host URL (defaults to https://clude.io) |
자동 검사
2026년 11월 12일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음통과
README
GitHub에서 보기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
npm install -g @clude/sdk
clude setup
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)
npx @clude/sdk setup # Creates agent, installs MCP, done
Or use the SDK:
import { Cortex } from '@clude/sdk';
const brain = new Cortex({
hosted: { apiKey: process.env.CORTEX_API_KEY! },
});
await brain.init();
await brain.store({
type: 'episodic',
content: 'User asked about pricing and seemed frustrated.',
summary: 'Frustrated user asking about pricing',
tags: ['pricing', 'user-concern'],
importance: 0.7,
source: 'my-agent',
});
const memories = await brain.recall({
query: 'what do users think about pricing',
limit: 5,
});
No database, no infrastructure. Memories stored on CLUDE infrastructure, isolated by API key.
Quick Start — Self-Hosted
For full control, use your own Supabase:
import { Cortex } from '@clude/sdk';
const brain = new Cortex({
supabase: {
url: process.env.SUPABASE_URL!,
serviceKey: process.env.SUPABASE_KEY!,
},
anthropic: { apiKey: process.env.ANTHROPIC_API_KEY! },
});
await brain.init();
await brain.store({
type: 'episodic',
content: 'User asked about pricing and seemed frustrated.',
summary: 'Frustrated user asking about pricing',
tags: ['pricing', 'user-concern'],
source: 'my-agent',
relatedUser: 'user-123',
});
const memories = await brain.recall({
query: 'what do users think about pricing',
limit: 5,
});
const context = brain.formatContext(memories);
// Pass `context` into your system prompt
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
npx @clude/sdk setup # Guided setup: register + config + MCP install
npx @clude/sdk register # Get an API key for hosted mode
npx @clude/sdk init # Advanced setup (self-hosted options)
npx @clude/sdk status # Check if Clude is active + memory stats
npx @clude/sdk mcp-install # Install MCP server for your IDE
npx @clude/sdk mcp-serve # Run as MCP server (used by agent runtimes)
npx @clude/sdk connect # Connect Claude Desktop / claude.ai as a remote MCP connector
npx @clude/sdk export # Export memories (json/md/chatgpt/gemini)
npx @clude/sdk import # Import from ChatGPT, markdown, or JSON
npx @clude/sdk sync # Auto-update system prompt file
npx @clude/sdk doctor # Run diagnostics
npx @clude/sdk start # Start the full Clude bot
npx @clude/sdk --version # Show version
setup works headless: with no TTY it never prompts and completes in local-only mode. Set CLUDE_SETUP_EMAIL=you@example.com 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:
{
"mcpServers": {
"clude-memory": {
"command": "npx",
"args": ["@clude/sdk", "mcp-serve"],
"env": {
"CORTEX_API_KEY": "clk_..."
}
}
}
}
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:
| Tool | Description |
|---|---|
recall_memories |
Search memories with hybrid scoring (vector + keyword + tags + importance) |
store_memory |
Store a new memory with type, content, summary, tags, importance |
batch_store_memories |
Store up to 50 memories in a single call |
list_memories |
Browse without a query — paginated, sorted by recency, importance, or last access |
update_memory |
Update fields of an existing memory by ID |
delete_memory |
Permanently delete a memory by ID |
get_memory_stats |
Memory statistics — counts by type, avg importance/decay, top tags |
find_clinamen |
Anomaly retrieval — find high-importance memories with low relevance to current context |
MCP Modes
The MCP server runs in four modes, auto-detected from environment:
| Mode | Config | Storage |
|---|---|---|
| Hosted | CORTEX_API_KEY |
clude.io (zero setup) |
| Self-hosted | SUPABASE_URL + SUPABASE_SERVICE_KEY |
Your Supabase |
| Local SQLite (default) | none — what setup creates |
~/.clude/brain.db (local embeddings, fully offline) |
| Local JSON | --local flag or CLUDE_LOCAL=true |
~/.clude/memories.json (portable single file) |
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:
cat node_modules/@clude/sdk/supabase-schema.sql
Or let brain.init() attempt auto-creation.
3. Enable extensions
CREATE EXTENSION IF NOT EXISTS vector;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
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:
const brain = new Cortex({
hosted: {
apiKey: string, // From `npx @clude/sdk register`
baseUrl?: string, // Default: 'https://clude.io'
},
});
Self-hosted mode:
const brain = new Cortex({
supabase: { url: string, serviceKey: string },
// Optional — required for dream cycles and LLM importance scoring
anthropic: { apiKey: string, model?: string },
// Optional — enables vector similarity search
embedding: {
provider: 'voyage' | 'openai',
apiKey: string,
model?: string,
dimensions?: number,
},
// Optional — commits memory hashes to Solana
solana: { rpcUrl?: string, botWalletPrivateKey?: string },
// Optional — owner wallet for memory isolation
ownerWallet?: string,
});
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.
const id = await brain.store({
type: 'episodic',
content: 'Full content of the memory...',
summary: 'Brief summary',
source: 'my-agent',
tags: ['user', 'question'],
importance: 0.7, // 0-1, or omit for LLM-based scoring
relatedUser: 'user-123',
emotionalValence: 0.3, // -1 (negative) to 1 (positive)
});
Memory types:
| Type | Decay/day | Use for |
|---|---|---|
episodic |
7% | Raw interactions, conversations, events |
semantic |
2% | Learned knowledge, patterns, insights |
procedural |
3% | Behavioral rules, what works/doesn't |
self_model |
1% | Identity, self-understanding |
introspective |
2% | Journal entries, dream cycle outputs |
brain.recall(opts)
Recall memories using hybrid scoring (vector + keyword + tag + importance + entity graph + association bonds).
const memories = await brain.recall({
query: 'what happened with user-123',
tags: ['pricing'],
relatedUser: 'user-123',
memoryTypes: ['episodic', 'semantic'],
limit: 10,
minImportance: 0.3,
});
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:
const summaries = await brain.recallSummaries({ query: 'recent events' });
const topIds = summaries.slice(0, 3).map(s => s.id);
const full = await brain.hydrate(topIds);
brain.dream(opts?)
Run one dream cycle. Requires anthropic config.
await brain.dream({
onEmergence: async (thought) => {
console.log('Agent thought:', thought);
},
});
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.
await brain.link(42, 43, 'supports', 0.8);
Link types: supports | contradicts | elaborates | causes | follows | relates | resolves | happens_before | happens_after | concurrent_with
brain.decay() / brain.stats() / brain.recent(hours) / brain.selfModel()
await brain.decay(); // Trigger memory decay
const stats = await brain.stats(); // Memory statistics
const last24h = await brain.recent(24); // Recent memories
const identity = await brain.selfModel(); // Self-model memories
brain.formatContext(memories)
Format memories into markdown for LLM prompt injection.
const memories = await brain.recall({ query: userMessage });
const context = brain.formatContext(memories);
brain.destroy()
Stop dream schedules, clean up event listeners.
Hosted vs Self-Hosted
| Hosted | Self-Hosted | |
|---|---|---|
| Setup | Just an API key | Your own Supabase |
| store / recall / stats | Yes | Yes |
| Dream cycles | No | Yes (requires Anthropic) |
| Entity graph | No | Yes |
| Memory packs | No | Yes |
| Embeddings | Managed | Configurable (Voyage/OpenAI) |
| On-chain commits | No | Yes (Solana) |
| Dashboard | Yes (API key login) | Yes (wallet login) |
Graceful Degradation
| Feature | Without it |
|---|---|
anthropic not set |
LLM importance scoring falls back to rules. dream() throws. |
embedding not set |
Vector search disabled, recall uses keyword + tag scoring only. |
solana not set |
On-chain memory commits silently skipped. |
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:
├── Memories = nodes with type, importance, decay
├── Bonds = typed weighted edges
│ ├── causes (1.0) — "this led to that"
│ ├── supports (0.9) — "evidence for"
│ ├── concurrent_with (0.8) — "happened at the same time"
│ ├── resolves (0.8) — "contradiction resolved"
│ ├── happens_before/after (0.7) — temporal ordering
│ ├── elaborates (0.7) — "adds detail"
│ ├── contradicts (0.6) — "these conflict"
│ ├── relates (0.4) — "conceptually linked"
│ └── follows (0.3) — "temporal sequence"
├── Entities = extracted people, tokens, concepts, wallets
└── Co-occurrence = entities that appear together
Running the Clude Bot
This package also includes the full Clude bot — an autonomous AI agent on X (@Cludebot).
git clone https://github.com/sebbsssss/clude.git
cd cludebot
npm install
cp .env.example .env # fill in API keys
npm run dev
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
clude MCP 질문
clude MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --env 'CORTEX_API_KEY=<YOUR_CORTEX_API_KEY>' clude -- npx -y @clude/sdk를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
clude MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
clude MCP는 어떤 도구를 제공하나요?
8개 도구를 제공합니다. 예: recall_memories, store_memory, batch_store_memories, list_memories, update_memory.
Clude가 다른 메모리 SDK와 다른 점은 무엇인가요?
표준 저장 방식과 달리 Clude는 감쇠, 공고화, 모순 해결 및 성찰 과정을 통해 시간이 흐름에 따라 메모리를 처리합니다.
Clude를 오프라인에서 사용할 수 있나요?
네, Clude는 SQLite와 로컬 임베딩을 사용하는 로컬 우선 모드를 제공하여 인터넷 연결 없이도 전체 시맨틱 검색이 가능합니다.
Clude는 기존 AI 도구와 호환되나요?
네, Claude Code, Claude Desktop, Cursor 및 모든 MCP 호환 에이전트 런타임에서 작동합니다.
에이전트의 메모리를 어떻게 내보낼 수 있나요?
메모리는 JSON, Markdown, ChatGPT, Claude, Gemini 형식으로 내보낼 수 있습니다.