BetaMindDuckBeta
HomeManifestFeaturesDevelopersDownloadPricingFAQsDocs
Beta
Sign in

DOCUMENTATION · Settings

Memory for your programs

Screen in the app: Settings → Agents (#/agents), the row Let it use your memory on the card of a program. On a computer only.

MindDuck documentation
Getting started
  • What MindDuck is
  • Installation
  • First launch
  • Connecting models
  • Access to your data and copies
  • Free and Pro
  • MindDuck AI: subscription and credits
Chats
  • The chat screen
  • Images and PDFs
  • Voice input
  • Context panel
  • Private chats
  • Finding chats
  • Chat and message actions
  • Web search and reading pages
  • Reading the answer
Memory
  • How memory works
  • Facts
  • Projects
  • Documents
  • Image descriptions
  • Trash
Search
  • Memory search
  • Local search index
History import
  • Import from ChatGPT and Claude
  • Claude Code and Codex sessions
Sync and devices
  • How sync works
  • Connecting Google Drive
  • A second device
  • Recovery code
  • Managing devices
Backups and export
  • Backup
  • Restoring on a new device
  • Export
Settings
  • Settings map
  • Account
  • Models
  • Assistant
  • MCP Connections
  • Mail
  • Memory for your programs
  • Updates
Privacy and security
  • What is stored where
Help
  • Support and diagnostics
  • App messages
  • Glossary
Getting started
  • What MindDuck is
  • Installation
  • First launch
  • Connecting models
  • Access to your data and copies
  • Free and Pro
  • MindDuck AI: subscription and credits
Chats
  • The chat screen
  • Images and PDFs
  • Voice input
  • Context panel
  • Private chats
  • Finding chats
  • Chat and message actions
  • Web search and reading pages
  • Reading the answer
Memory
  • How memory works
  • Facts
  • Projects
  • Documents
  • Image descriptions
  • Trash
Search
  • Memory search
  • Local search index
History import
  • Import from ChatGPT and Claude
  • Claude Code and Codex sessions
Sync and devices
  • How sync works
  • Connecting Google Drive
  • A second device
  • Recovery code
  • Managing devices
Backups and export
  • Backup
  • Restoring on a new device
  • Export
Settings
  • Settings map
  • Account
  • Models
  • Assistant
  • MCP Connections
  • Mail
  • Memory for your programs
  • Updates
Privacy and security
  • What is stored where
Help
  • Support and diagnostics
  • App messages
  • Glossary

Programs on your computer can use MindDuck as their memory. You connect a program, choose the projects it works in and give it a key. From then on the program can read what those projects hold and search them. In Pro it also saves documents there and adds working notes: the next session of the program starts from what the last one learned, and you read all of it in MindDuck, on any device.

Reading and search are part of Free. Writing from programs is part of Pro, which is not released yet: in Free the card of a program shows the line Saving documents and working notes from programs is part of Pro · soon. The browser extension sends pages to memory in Free too. See Free and Pro.

The program does not run inside MindDuck and MindDuck does not run it. It talks to MindDuck on this computer only; nothing is sent over the network.

Writing needs you to be signed in under Settings → Account and to have Pro. See Account.

Turn it on

  1. Open Settings → Agents. Claude Code and Codex have cards there already; for any other program press Add another program under the cards and choose it.
  2. On the card of the program press Connect in the row Let it use your memory. Tick the projects it works in and press Create key.
  3. Copy the key and give it to the program. MindDuck shows the key once and keeps only a fingerprint of it. If the key is lost, make a new one.

Connecting the first program turns on Accept connections on this computer by itself. The card of that name, under the cards of programs, shows the address programs connect to, http://127.0.0.1:47821 by default. Turn it off there to stop every program at once.

MindDuck answers programs while it is running, with its window open or closed. See Background in Assistant. While the workspace is locked, programs are told so and get nothing from it.

Your answer in a chat goes first. While MindDuck prepares an answer, searches memory for the assistant or saves your message, a program's search waits its turn, for 15 seconds at most. Programs do not wait for each other.

If Not running appears with a note that the port is used by another program, type another number in Port and press Use this port. Programs you already connected need the new address.

Connect Claude Code

After Create key, MindDuck shows how to connect the program. The same steps open later with How to connect on the card of the program, with a place for the key instead of the key.

In a terminal, in the folder of your project:

claude mcp add --transport http mindduck http://127.0.0.1:47821/mcp --header "Authorization: Bearer mdk_..."

Claude Code keeps the connection for that folder only. Without a terminal, for example in the Claude desktop app, save the second block MindDuck shows as .mcp.json in the folder of the project. That file holds the key: keep it out of version control.

Start a new session and ask Claude Code to read the project context. It gets the memory tools: memory_context, memory_search, memory_read, memory_documents, memory_note, memory_save, memory_update, memory_projects, memory_index_status. In Free the three tools that write (memory_note, memory_save, memory_update) are not listed. Claude Code asks before it uses a tool for the first time; allow the ones you want it to use without asking.

If the key opens several projects, choose one under Project for this connection before you copy the command. The program then works in that project without naming it every time.

Connect Codex

Add the block MindDuck shows to ~/.codex/config.toml and start Codex again:

[mcp_servers.mindduck]
url = "http://127.0.0.1:47821/mcp"
http_headers = { "Authorization" = "Bearer mdk_..." }

To connect one project only, put the block into .codex/config.toml of a trusted project.

Connect Claude Desktop

Claude Desktop starts its MCP servers itself, as commands. MindDuck shows an entry for its configuration file; it starts MindDuck's own program as a bridge to the memory.

  1. In Claude Desktop open Settings → Developer → Edit Config.
  2. Add the mindduck entry MindDuck shows under Add to claude_desktop_config.json to the mcpServers section of the file.
  3. Start Claude Desktop again.

MindDuck must be running for the tools to answer. If it is not, Claude is told so and can go on without memory; the next call works once MindDuck is running again.

The project context at the start of every session

Claude Code and Codex can run a command when a session starts and give its output to the model. With the two optional steps MindDuck shows, a session in your project folder starts with the project context already in front of the agent: your Agent brief, the latest working notes, the facts you confirmed and the list of documents and recent conversations.

  1. In the folder of the project, run the Save the key for the folder command. The key is kept in .mindduck in your home folder.
  2. Add the hook MindDuck shows to .claude/settings.local.json in that folder for Claude Code, or to ~/.codex/hooks.json for Codex. In Codex, review and trust the hook with /hooks.

The hook never holds a session up. When MindDuck is not running or the workspace is locked, the session starts without the context.

A new project folder

With May create new projects ticked for the program, a folder you start working in gets its project in MindDuck with one command, run in that folder:

"C:\Program Files\MindDuck\mindduck-desktop.exe" memory connect

The command uses the key you saved before, starts a project named after the folder and ties the folder to it. To choose the name, add --project "Name". If the key already opens a project with that name, the folder is tied to it and nothing new is made. Run again in the same folder, the command changes nothing.

To have the memory tools and the context in every folder without setting each one up, connect once for all folders: in Claude Code add --scope user to the claude mcp add command and put the hook into ~/.claude/settings.json. A session in a folder where you have not run connect starts without the context.

Without the tick, connect only saves the key, and a project name the key does not open is refused.

Connect another program

A program that connects to MCP servers by address needs the address http://127.0.0.1:47821/mcp and the header Authorization: Bearer with the key. MindDuck shows this as JSON for programs that take it in that form, and the bridge as a command for programs that start their MCP servers themselves. A program without MCP can use the HTTP API described below.

The browser extension

The MindDuck extension for Chrome and Firefox sends what you read on the web to MindDuck. Each thing you send becomes a new chat, with the passage or the address of the page as its first message.

Beta. The extension is not in the Chrome Web Store or in Firefox Add-ons yet. For now it is installed by hand, in the developer mode of the browser: see Installing the extension during the beta below.

  1. Install the MindDuck extension in your browser.
  2. In MindDuck press Add another program, choose Browser extension and press Create key. There are no projects to choose: the extension only sends pages and reads nothing from your memory.
  3. Open the options of the extension, paste the address and the key and press Connect.

Installing the extension during the beta

  1. Unpack the archive with the extension that comes with the beta into a folder you will keep. The browser loads the extension from that folder every time it starts, so do not move or delete it.
  2. In Chrome open chrome://extensions, in Edge edge://extensions. Turn on Developer mode, press Load unpacked and choose the folder.
  3. In Firefox open about:debugging#/runtime/this-firefox, press Load Temporary Add-on and choose the file manifest.json in the folder. Firefox keeps an extension loaded this way until it is closed: load it again after a restart.

The browser may remind you at start that an extension in developer mode is on. That is expected while the extension is installed this way.

To update the extension, replace the files in the folder with the new ones and press the reload arrow on its card in chrome://extensions.

The key belongs to the extension that used it first. Another extension or a web page cannot use it. To move to another browser, press New key on the card and paste the new key there.

Press the MindDuck button in the browser toolbar and choose:

  • Send to MindDuck sends the selected text with the address of the page, or only the name and address of the page when nothing is selected.
  • Send a picture of the page sends a picture of what the browser shows.

A page goes as its address, not as its text: when you ask about it, MindDuck opens the page itself. It does so without your sign-ins, so on a page behind a sign-in select the text you need and send that.

Send selection to MindDuck and Send page to MindDuck are also in the menu that opens with a right click on a page.

MindDuck stays in the background. The extension says that the page is saved as a new chat and shows Open in MindDuck, which brings MindDuck to the front with that chat. You can send several things in a row and come back to them later: they are in the chat list, each named after its page.

The assistant says nothing in such a chat until you write there, and the message field asks for your request or a note about what you sent. The first message says where it is from and, for a page, asks the assistant to open it. The assistant gets it exactly as you see it, together with what you write, and nothing is added out of your sight. It is yours to change: edit it, delete it, or delete the whole chat. The chat belongs to no project until you move it to one.

The extension takes the name, the address and the selection of a page, and only when you press one of these. Pictures, PDF files and video on a page are not sent, only the selected text, the address or a picture of what is on screen.

From a terminal

MindDuck's own program answers memory commands when it is started with the word memory. The path below is for Windows; on a Mac the program is /Applications/MindDuck.app/Contents/MacOS/mindduck-desktop.

"C:\Program Files\MindDuck\mindduck-desktop.exe" memory connect --key mdk_...
"C:\Program Files\MindDuck\mindduck-desktop.exe" memory context
"C:\Program Files\MindDuck\mindduck-desktop.exe" memory search release plan
"C:\Program Files\MindDuck\mindduck-desktop.exe" memory note Decided to ship on Monday.
"C:\Program Files\MindDuck\mindduck-desktop.exe" memory save --title "Release plan" --file plan.md

The note and save commands write to memory and work in Pro; the others work in Free too.

connect saves the key for the folder you run it in; --default saves it for every folder. memory help lists the commands. On Windows the command prints into the terminal it was started from, and the prompt may return before the output ends; pipe the output, for example | more, to wait for it.

What a connected program can do

In the projects you chose for it, and nowhere else:

  • read the project's documents and conversations;
  • search them;
  • in Pro: save a text as a new document and change a document;
  • in Pro: add working notes;
  • in Pro: keep a conversation line by line.

In Free a write is answered with read_only and a note that writing is part of Pro. The MCP tool list in Free has no memory_note, memory_save and memory_update: the model doesn't try what would be refused.

It never sees:

  • other projects and chats without a project;
  • private chats and documents you kept out of memory;
  • what is in the trash.

It cannot create or change facts. Facts stay yours to confirm; a program writes what it learned into the working notes.

With May create new projects ticked, the program can start a project of its own. That project is added to its list. Your other projects stay closed.

Working notes

A note a program adds goes to the end of a document named Working notes with the month, for example Working notes 2026-10, under a line with the time and the name of the program. Nothing is rewritten: several programs and you can add to the same notes without overwriting each other. It is an ordinary document: read it, correct it, delete what is wrong.

A month with many notes continues in Working notes 2026-10 (2).

Instructions for the program

Create a document named Agent brief in the project and write there what every program working in this project should follow: how the project is built, what to check before finishing, what to leave alone. A program asks for the context of the project when it starts and gets the brief first, then the latest notes, the facts you confirmed and the list of documents and recent conversations.

You can edit the brief on your phone. The program reads the new text at the start of its next session.

What a program did

Each program has a chat of its own in every project it writes to, named after it, for example Claude Code activity. The chat lists what the program did, one line for each document it created or changed and each note it added, with a link to the document. The chat syncs, and you can read it on your phone. You can't write in it: a message sent in such a chat continues it in a copy, see Claude Code and Codex sessions.

Under a line there is Undo while the action can still be taken back:

  • a created document goes to the trash, from where you can restore it;
  • a change, or a note, is undone by making the earlier text the current one again. This is a new revision, so nothing leaves the document's history.

A change can be undone only while it is the latest one. If the document was edited afterwards, open it and use its history instead. What you undid is noted in the same chat.

Documents a program wrote are marked as written by an agent when another program, or the assistant, finds them later.

Before saving, MindDuck removes from the text whatever looks like a credential: API keys, tokens, private keys, passwords in addresses. [secret removed] is left in their place.

What programs asked for

Recent requests lists what connected programs asked MindDuck for since it was started: the time, the program, what it asked for and how it ended. The text of requests and answers is not kept there. A request with a key MindDuck does not know is listed as Unknown key, which usually means the program still has an old key.

A program that asks for too much in a short time is slowed down: 300 requests a minute and 32 MB of written text a day for each key. Such requests are listed as slowed down.

Change or remove access

On the card of a program:

  • Change access - other projects, another name, the right to create projects. The key stays the same.
  • New key - replaces the key. The previous one stops working at once.
  • Remove - the key stops working at once. Documents and notes the program wrote stay in memory.

Turning Accept connections on this computer off stops every program at once. Keys stay valid for when you turn it back on.

The list of programs and their keys is kept on this computer and is not synced. A key made here means nothing on another computer.

For developers

Any program that can send an HTTP request can use the memory. A request carries the key as a bearer token:

curl -H "Authorization: Bearer mdk_..." http://127.0.0.1:47821/v1/projects
Request What it does
GET /v1/status the key works and the workspace is open
GET /v1/projects projects of this key
GET /v1/projects/{id}/context what to know before starting work
GET /v1/projects/{id}/documents documents of a project
POST /v1/projects/{id}/notes add a working note: {"text": "..."}
POST /v1/search search: {"query": "...", "projectId": "..."}
POST /v1/sources save a document: {"projectId", "title", "content"}
GET /v1/sources/{sourceId} read a document, a conversation or a message
PATCH /v1/sources/{sourceId} change a document: {"baseRevision", "content"}
GET /v1/sources/{sourceId}/index-status whether search finds the document yet
POST /v1/log add a line of a conversation: {"projectId", "role", "text"}

A source is named doc:<id>, chat:<id> or msg:<chat id>:<message id>, as search and read return it. Long sources are read in parts: pass nextOffset of one answer as offset of the next.

A change to a document names the revision it was written from. If the document was edited in the meantime, the answer is revision_conflict with the current revision: read the document again and apply the change to it.

Send an Idempotency-Key header with a write that may be retried. The same key with the same request gets the first result back and writes nothing new.

An error has a stable code: unauthorized, forbidden, not_found, invalid_request, revision_conflict, idempotency_conflict, limit_exceeded, rate_limited, unsupported, read_only, workspace_locked, busy. A source the key may not see answers not_found, like one that does not exist.

If something goes wrong

  • The program cannot connect. Check that MindDuck is running, that Accept connections on this computer is on and that the program uses the address shown on the card.
  • The program is told the workspace is locked. Open MindDuck and unlock the workspace.
  • Claude Code shows the server as failed. MindDuck was not running, or connections were off, when the session started. Start MindDuck and begin a new session.
  • The program is told it may not write. Sign in under Settings → Account; see Account.
  • The program says the key is not accepted. Look at Recent requests: an Unknown key line means the program has an old key. Make a new key and give it to the program.
  • A document the program saved is not found by search yet. New text is indexed in the background, usually within a minute.
  • The browser extension says the key is not for the browser extension. The key is one of another program, or another extension used it first. Press Add another program and choose Browser extension, or press New key on its card, and paste the key in the options of the extension.
PreviousMailNextUpdates

Updated October 14, 2026 · for version 0.2.17 · Found a mistake? Write to us

On this page

  • Turn it on
  • Connect Claude Code
  • Connect Codex
  • Connect Claude Desktop
  • The project context at the start of every session
  • A new project folder
  • Connect another program
  • The browser extension
  • Installing the extension during the beta
  • From a terminal
  • What a connected program can do
  • Working notes
  • Instructions for the program
  • What a program did
  • What programs asked for
  • Change or remove access
  • For developers
  • If something goes wrong
MindDuck|Terms of use|Privacy policy|Imprint