Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Portable agent memory anchored on Solana. Local SQLite + vector recall, open export.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
CORTEX_API_KEY, CORTEX_HOST_URL, CLUDE_WALLET, CLUDE_AGENT_NAME标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"clude": {
"command": "npx",
"args": [
"-y",
"@clude/sdk"
],
"env": {
"CORTEX_API_KEY": "your-value",
"CORTEX_HOST_URL": "your-value",
"CLUDE_WALLET": "your-value",
"CLUDE_AGENT_NAME": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add clude --env CORTEX_API_KEY=your-value --env CORTEX_HOST_URL=your-value --env CLUDE_WALLET=your-value --env CLUDE_AGENT_NAME=your-value -- npx -y @clude/sdk运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"clude": {
"command": "npx",
"args": [
"-y",
"@clude/sdk"
],
"env": {
"CORTEX_API_KEY": "your-value",
"CORTEX_HOST_URL": "your-value",
"CLUDE_WALLET": "your-value",
"CLUDE_AGENT_NAME": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"clude": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@clude/sdk"
],
"env": {
"CORTEX_API_KEY": "your-value",
"CORTEX_HOST_URL": "your-value",
"CLUDE_WALLET": "your-value",
"CLUDE_AGENT_NAME": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
CORTEX_HOST_URL envCLUDE_WALLET envCLUDE_AGENT_NAME env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 sebbsssss 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:CORTEX_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(3.0.4)于6个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Cognitive memory for AI agents. Not just storage — synthesis.
A cognitive memory system. Most memory SDKs store and retrieve. Clude also processes memories over time — decay, consolidation, contradiction resolution, reflection.
npx @clude/sdk registerCognitive architecture:
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.
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.
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.
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
Explore your agent's memory at clude.io/dashboard-new.
Sign in with a Solana wallet or Cortex API key.
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).
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:
.mcp.json (project root)~/Library/Application Support/Claude/claude_desktop_config.json~/.cursor/mcp.jsonYour 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 |
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.
Go to supabase.com and create a free project.
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.
CREATE EXTENSION IF NOT EXISTS vector;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
TypeScript declarations ship with the package (v3.3.0+) — Cortex and every option/result type below import with full IntelliSense under strict mode.
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:
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:
只显示了开头部分;其余内容请在仓库中阅读