Heyditto CLI
MCP server by ditto-assistant Verified · npm:@heyditto
Heyditto CLI is a command-line client for the Ditto memory graph. It lets you save, search, fetch and traverse memories from the shell, for people and AI agents who want persistent memory.
Install Heyditto CLI
Built from the published package, never by AI.
claude mcp add heyditto-cli -- npx -y @heyditto/cliRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"heyditto-cli": {
"args": [
"-y",
"@heyditto/cli"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"heyditto-cli": {
"args": [
"-y",
"@heyditto/cli"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"heyditto-cli": {
"args": [
"-y",
"@heyditto/cli"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add heyditto-cli -- npx -y @heyditto/cli{
"mcpServers": {
"heyditto-cli": {
"args": [
"-y",
"@heyditto/cli"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add heyditto-cli npx -y @heyditto/cliGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the heyditto-cli block.
About
Heyditto CLI, published as @heyditto/cli, lets you save, search, fetch and traverse the Ditto memory graph from the terminal. Commands cover memories, subjects, subject edges, knowledge graphs, friends and graph sharing. The package also manages personal BYOK router endpoints and provider keys, and it can launch claude and codex sessions through an inference endpoint.
Humans sign in with heyditto login, which opens the browser and approves a one-time device code. Agents can run heyditto init to create a free claimable agent account without a browser, email or OTP. The agent name is set once at init with --name, because it labels every memory the agent saves. The package is aimed at people and agents who want shell access to their Ditto memories and endpoints.
Written from the project's README and checked against it.
Tools it gives your assistant
saveSaves a memory with optional source and source context.searchSearches the memory graph with a query, optionally including public memories.fetchFetches one or more memories by id, in full, outline or blocks format.subjectsFinds subjects that match a query, with a top-k limit.subject-edgesLists edges connected to a subject, with limit and minimum weight options.memoriesLists memories linked to one or more subject ids, optionally filtered by query.updateUpdates a memory's content, title, source context or edits.deleteDeletes a memory by id and requires the --confirm flag.
What you need
- npm, to install @heyditto/cli globally or run it with npx
- A Ditto account, or an agent account created with heyditto init
- A browser to approve heyditto login for human sign-in
- A Ditto API key (ditto_mcp_...), if you paste a key instead of signing in
Try asking
- Save this to my Ditto memory: I prefer TypeScript for new projects
- Search my Ditto memories for what I said about language preferences
- Show the subjects related to memory architecture in my Ditto graph
Good to know
- The CLI cannot rename an agent after init yet.
- Apple's /usr/bin/ditto is a separate command, so use heyditto instead.
- On Windows, the source recommends external secret managers for key files.
- Background update checks apply only to eligible global npm installs.
Security check
C- Asks for administrator rights (sudo)In
README.md:sudo
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Heyditto CLI
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Heyditto CLI: common questions
Does heyditto conflict with the macOS ditto command?
Apple's /usr/bin/ditto is a separate file-copy utility and this package does not install a ditto command. Use heyditto, and remove an old ditto alias if one exists.
Can an agent create an account without a browser?
Yes. Running heyditto init --json creates a free claimable agent account and stores the key in the CLI config directory. The claim URL is shared with a human later.
Does the CLI update itself?
Eligible global npm installs check for newer versions about every six hours in the background. You can disable or pin updates with self-update commands, or suppress checks with environment variables.
How do I install Heyditto CLI?
In Claude Code run claude mcp add heyditto-cli -- npx -y @heyditto/cli. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Heyditto CLI the official server?
Heyditto CLI is published by npm:@heyditto from its verified domain in the official MCP Registry.
Is Heyditto CLI free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Heyditto CLI safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality C. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to Heyditto CLI?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Heyditto CLI work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
