Braintwin: Shared Memory for AI Agents avatar

Braintwin: Shared Memory for AI Agents

Pricing

from $8.00 / 1,000 save or change memories

Go to Apify Store
Braintwin: Shared Memory for AI Agents

Braintwin: Shared Memory for AI Agents

Shared memory for AI agents. Save lasting decisions and preferences, review agent work, and recall cited passages by project. Stores approved notes and readable source evidence in your Apify account. Uses four core MCP tools and a review dashboard.

Pricing

from $8.00 / 1,000 save or change memories

Rating

0.0

(0)

Developer

Khadin Akbar

Khadin Akbar

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

What is Braintwin?

Braintwin is a shared memory for MCP clients connected to the same Apify account. It can keep a lasting preference or decision, file an agent's proposed work, and recall a cited passage from a source you saved.

  • Your notes. Clear, lasting statements can save automatically under your policy. Tentative statements wait for review. Automatic capture skips explicit opt-outs and filters detected credentials.
  • Agent work. Use memory_capture with kind="agent" and a project scope to propose a useful handoff or work note. Keep or decline it in the dashboard.
  • Source evidence. Save readable public pages, available YouTube captions or descriptions, available social previews, or an excerpt you can share. Pasted excerpts wait for review. Review and lookup show the source so a preview is easy to distinguish from a transcript.
  • Find the right record. Search by project and collection. Use a quoted phrase for exact wording. The normal recall path uses approved memories.

The single-tenant Server Actor uses stores in your Apify account. Optional AI extraction or meaning search can send data to the configured service. Braintwin is an independent community Actor.

When to use this Actor

  • People who use more than one AI tool and are tired of repeating their preferences, project rules and decisions in each one.
  • Agents that start every session from zero and need durable context about the person and their work.
  • Anyone who learns from YouTube and blogs and wants their AI tools to answer from that material, with a regular digest of what was new.
  • Teams that want a reviewed memory: switch on "Ask me first" and nothing is kept until a person approves it.
  • Moving an existing AgentMemory, Mem0 or Basic Memory export into one shared store.
  • Pair it with Apify's hosted MCP server at https://mcp.apify.com when the same agent also runs Actors: that server runs tools, this one remembers what the agent learned.

Check the connection

In the dashboard, open Connect and choose your AI tool. Check the signed-in store, copy the test prompt into the client, and verify that the resulting note is approved. Then copy the recall prompt into a second client to check it can find the same memory. The connection check itself only reads. A saved test note is a normal memory change and may incur an event.

The Apify Server tab lists the Streamable HTTP MCP endpoint and common authenticated dashboard routes for connection status, recall, import, sources and backup. Use the MCP endpoint from an AI tool. Direct API requests use an Apify Bearer token.

Get a short, verifiable answer

For a task that depends on earlier work, use memory_context(query="What resolved PAY-427?", scope="payments", compact=true). Braintwin can find the ticket inside a long saved note and return the matching passage and memory ID. For a policy supplied by URL, the compact result includes the source. Use memory_search(query="<returned memory ID>", compact=true) to inspect the saved wording and page through long records.

When importing a labelled conversation, user and human turns supply personal facts. Supported ChatGPT branch exports and Claude message lists also retain message references. A user can correct a clear preference or ask for a specific memory to be forgotten. A forgotten record leaves normal recall and remains in owner history.

Example workflow: one preference, every tool

A founder tells ChatGPT, "From now on, keep reports to three bullet points, and our releases go out on Tuesdays." ChatGPT hands those words to memory_capture, which saves two memories: a preference and a decision. That evening they open Cursor and ask for a release plan. Cursor calls memory_context at the start of the task, gets both memories back, and writes a three-bullet plan with Tuesday as the date, citing the memory it used. The founder also pastes a YouTube link about release checklists; if captions are available, they are saved with the video link, and on Friday the weekly digest sums up what that video and two followed blogs taught them.

Quick start: connect your MCP client

Easiest, no token to copy. In ChatGPT, Claude or any tool that accepts a connector address, add a custom connector with this address and choose OAuth. You sign in to Apify, press Allow, and you are connected:

https://mcp.apify.com/?tools=khadinakbar/braintwin

Through this route each tool name carries a longer prefix (for example khadinakbar--braintwin--memory_context).

Direct, a little faster, short tool names. Use your Apify API token as a Bearer token and the Streamable HTTP endpoint of this Actor:

{
"mcpServers": {
"braintwin": {
"url": "https://khadinakbar--braintwin.apify.actor/mcp",
"headers": {
"Authorization": "Bearer <YOUR_APIFY_API_TOKEN>"
}
}
}
}

Create a token under Apify Console, Settings, Integrations, and keep it out of source control. The first request starts your Standby server; it stays warm while requests arrive and stops after its idle period.

Then try this in your client: "Remember that releases are tagged before they are pushed." Open a new chat, or another connected tool, and ask "What is our rule about releases?"

The eleven tools

ToolWhat it does
memory_contextStart here. One free call returns a ready-to-paste context block: a short profile of the owner plus the best matches for your query, trimmed to a token_budget.
memory_captureHand over what the user said. Lasting preferences, standing instructions, decisions and facts are found by built-in rules plus an AI step, and saved. Repeats are skipped and a changed fact replaces the old one. dry_run previews what the rules alone would save.
memory_proposeSave a note, any public web page or YouTube video (url), or an export from another memory plugin. Supports dry_run, scope and agent labels, expires_in_days for temporary facts, and sync for incremental imports.
inbox_listShow the few items that wait for the owner (for example text that looks like a password), as compact cards.
inbox_approveKeep one waiting item or a batch of up to 100, within the owner's rules.
inbox_rejectDecline a waiting item.
memory_searchRanked search over your memories, optionally limited to a scope, with a receipt for every hit.
memory_explainFull text, citations and recent history of one memory.
memory_forgetSoft-delete a memory; the record stays for the audit trail.
recent_followed_contentList what your followed channels and blogs published lately (days, limit, optional follow_id).
brain_healthCounts by status, storage names, queue depth and sources. repair_index rebuilds the index from stored memories.

Searching and reading carry no event charge. Only a real change is charged; previews, repeats of the same content and requests that change nothing are not.

The dashboard: review, add and forget in your browser

Open your Actor's Standby URL in a browser with your Apify token, for example https://khadinakbar--braintwin.apify.actor/?token=<YOUR_APIFY_API_TOKEN>. You get one page with these tabs:

  • Start: the steps to get going (connect an AI tool, save a first memory, add a source), each marked done when it is, and a plain note on where your memory is kept.
  • Inbox: the few items that wait for you, for example text that looks like a password. Keep or decline one at a time or several at once.
  • Memories: browse your memories, search them (typos are fine), filter by status or tag, sort, open one in full and see why it matched, edit it, forget it (a second click confirms), or export everything as a JSON file.
  • Add a note: type a memory yourself.
  • Import: paste a list of memories (one per line or bullet, for example the saved memories copied from a chat assistant) or the contents of an export file from another memory tool. Preview first, then import.
  • Memory tree: open a project to browse your notes, agent work and saved sources.
  • Sources: follow YouTube channels, blogs and newsletters. Set a project, review preference and check cadence for each channel.
  • Connect: a sign-in address that needs no token (for ChatGPT, Claude and similar), copy-paste setup text for Claude Code, Cursor, VS Code, Claude Desktop, Codex and other MCP clients, and a short instruction to give your agent.
  • Activity: counts, what was added by itself lately, and your sources.
  • Settings: how memories are added (Automatic, Careful or Ask me first), AI note-taking, your own AI key and meaning search.

Looking and searching carry no event charge. Keeping, declining, forgetting, editing and adding cost one memory-change event, and only when something actually changed. The page removes your token from the address bar as soon as it loads, keeps it only in that browser tab (session storage) and sends it as a Bearer header; the Actor sets no cookies and does not log request addresses.

Who can open the page. The page opens only with your own Apify sign-in, and there is no extra page password. Any AI tool you connect holds the same sign-in, so connect only tools you trust. When you run the server yourself outside Apify, BRAINTWIN_DASHBOARD=off turns the page off.

What happens by itself

  • Agents use the memory without being told. The server tells every connected agent to read your memory at the start of a task and to hand over lasting things you say. Some chat apps still want the connector switched on for the chat.
  • Automatic saving. Clear personal notes can be kept immediately. Tentative statements and agent work can wait in the review inbox. Use Careful to review more sources or Ask me first to review new agent proposals before normal recall.
  • Nothing is filed twice, and changes replace the old fact. Saying the same thing again is ignored. "My editor is now X" retires "my editor is Y".
  • Links are read at once. A slow page is queued and fetched by itself the next time the server is awake. You pay for a page only when it is actually saved: a page with no readable text, a page already in your memory, or a queued page that never loads costs nothing.
  • Video links save what was said. Give it a YouTube link and the transcript is saved and searchable, with the title, channel and description. If YouTube refuses the server's address, the request is retried through Apify Proxy on your own account (a few kilobytes per video); if captions still cannot be read, the title, channel and description are saved and the result says so.
  • Followed sources can be checked automatically. Choose hourly, daily or weekly in each source's Settings. Open Set up automatic checks on Apify for the input to use in one recurring Apify Schedule.

How much it can hold

The search index is kept in 16 small records, so saving one memory rewrites only one of them, and two servers writing at the same time keep each other's saves. The whole index is still loaded into memory to search it. With the default 256 MB that is comfortable for a few thousand memories; a saved web page counts as up to 17. Beyond that, raise the Actor's memory. This was measured on a local test store, not on a large live account.

AI note-taking

Clear statements such as "I prefer…", "from now on…" or "we decided…" are caught by built-in rules, free of any extra charge. People also say lasting things less directly ("honestly the Berlin office handles the invoices"), and rules miss those. So the hosted server has a built-in AI step that reads what you said and picks out the lasting facts.

  • It has its own small price, the smart-capture event, and you pay it only when the AI found at least one fact the rules missed. A call that finds nothing, or fails, costs nothing.
  • What you say to your AI tool is sent to an AI service to be read. Only words you actually said are kept: anything the AI adds on its own is thrown away.
  • It is asked only when your message could hold a personal fact, and at most 300 times a day.
  • You can switch it off in the dashboard's Settings tab. The free rules keep working.
  • If you add your own AI key (next section), your key is used instead and the smart-capture price never applies.

Learning digest

If you follow channels and blogs or save links, you can ask for a digest: an AI summary of what all of that taught you, written for you. The AI is given your saved preferences and facts, so the digest says what matters to you and what you could do next, not just what the items said.

  • In the dashboard's Follow tab choose every day, every week or every month, or press "Write one now". It is off until you choose.
  • Each digest is saved as a memory of type digest, with links to the items it used, so every connected AI tool can answer from it.
  • It has its own price, the learning-digest event, charged once per digest written. If nothing new came in during the period, no digest is written and nothing is charged. A failed attempt costs nothing.
  • A due digest is written while your AI tools are using the memory. For a fixed rhythm on quiet days, add an Apify schedule with the input {"mode": "follow"}.
  • With your own AI key (next section) your key is used and the digest costs one ordinary memory change instead.
  • The digest is made from web content, so it is marked as such. Treat it as a summary, not as a source of exact quotes or numbers.

Use your own AI key instead (optional)

The built-in AI step needs no setup. If you would rather use an AI account of your own, open the dashboard's Settings tab and enter the https base address of an AI service that offers the common /chat/completions route, a chat model name and your API key. From then on your key is used for note-taking and for the learning digest, that service bills you directly, and the smart-capture and learning-digest prices never apply.

The same care applies as with the built-in step: the model may only pick out and shorten what you said, an item whose words are not in your text is thrown away, and everything still follows your saving rules. If the service fails, the free rules carry on alone. The settings are yours alone, saved in your own key-value store (config.extractor). If you already turned on meaning search, the Settings tab offers a shortcut: name a chat model of the same service and the key you already saved is used.

Optional meaning search (off by default)

The built-in search needs no model and no extra service. It forgives typos and finds word forms and a few related words, but it does not understand a question that shares no words with your note. If you want that, point it at an embeddings API you pay for yourself. In the dashboard's Settings tab enter the https base address of an embeddings API that offers the common /embeddings route, the model name and your API key; the vector size is optional. These settings are yours alone and are saved in your own key-value store (config.embeddings), so treat that store as private. No other user of this Actor shares them, and the publisher supplies no key. When you run the server yourself outside Apify you can use the BRAINTWIN_EMBEDDINGS_URL, _MODEL, _KEY and _DIMS variables instead.

Turning it on sends memory titles and summaries to that provider, so leave it off if that is not acceptable. Vectors are stored in your own key-value store and filled in a small batch per search. If the provider is slow or down, search quietly falls back to the normal ranking and says meaning: unavailable. This Actor adds no charge for it. In the project's own test (49 author-written notes, 7 paraphrase questions, a small embeddings model at 256 dimensions, thresholds tuned on that set), the right note came first for 6 of 7 paraphrase questions instead of 3 of 7, with no loss on the other question types. On 9 fresh questions written afterwards it went from 5 to 7 correct. These are small samples, not a published benchmark, so test it on your own notes before relying on it. Run bench/bench_embeddings.py to repeat the measurement.

A larger open test is included too: bench/bench_locomo.py runs the search over LoCoMo, a public research dataset of long conversations (you download the dataset yourself). With the built-in search alone, a passage the dataset marks as evidence was in the top 10 results for 71% of 1,982 questions, in the top 5 for 62% and first for 37%. With optional meaning search switched on, those figures were 73%, 65% and 38%, and each search took about half a second longer because it calls the embeddings service. This measures finding the right passage only. It is not the answer-accuracy score that memory products publish, so do not compare the two.

How memories are kept: three modes

You choose in the dashboard's Settings tab, under "How memories are added":

  • Automatic (the default). Everything your AI tools save is kept and searchable at once: notes, pages and videos you add. Followed items use the review preference set on their channel. Two things wait in your inbox for you: your own notes that look like they hold a password, key or card number, and web text written to give orders to an AI. A changed fact ("my editor is now X") replaces the old one by itself, at most ten times a day, and each replacement is listed in the Activity tab.
  • Careful. Plain notes in your own words are kept at once when they pass your rules (confidence, allowed types and scopes, length, a daily cap). Web pages, imports and followed items wait for you, and nothing replaces an existing memory by itself.
  • Ask me first. Nothing is kept until you approve it in the inbox.

Whatever the mode, a decision of yours sticks: a memory you decline or forget is not saved again when the same text comes back. Every automatic save is recorded with the rule that allowed it, and you can remove anything at any time.

These checks are helpful filters, not a wall. In Automatic mode a tricked AI tool or a hostile web page can put wrong text into your memory; that is the price of having no review step, and Careful or Ask me first are there if you prefer review. When you run the server yourself you can also set BRAINTWIN_APPROVAL to human (only you approve, from the command line) or agent, and tune the Careful rules with python -m my_actor.cli policy show and policy set.

Bring in an existing memory export

Paste an AgentMemory export, Mem0 results, Basic Memory notes or a plain list of {title, content} records into import_json. Set dry_run to preview. Add sync to make the import incremental:

  • New records are filed as items waiting for you (or kept at once if you tick "approve straight away" in the Import tab).
  • Changed records that are still waiting are updated in place.
  • Changed records you already kept arrive as a new waiting item that points at the original.
  • Records you rejected or forgot are left alone.
  • Running the same sync again changes nothing.

Followed content

Follow public YouTube channels, blogs and newsletters from Sources. Use Check now to save new posts and videos with their title, summary and link. Each channel shows when it last ran, when it is due next, and how many items it kept or sent to review. Set a project for future items, and choose whether to keep them automatically or review them later. Removing a channel lets you keep its previous memories or clear them.

In Settings, choose manual, hourly, daily or weekly. You can set the first check in your local time. Automatic checks repeat from that time as fixed intervals. Create one Apify Schedule for Braintwin with input {"mode":"follow","dueOnly":true} to scan sources when they become due. Run it hourly if you follow an hourly source. The dashboard shows the time a channel becomes eligible. The actual check starts on the next Apify scheduled run. Legacy sources using the workspace setting can still use the daily check triggered by Braintwin activity.

Adding sources and editing settings carry no event charge. Each check that saves new items costs one memory-change event. Scheduled Actor runs also consume Apify platform usage. The per-source schedule reads public feeds. To keep an individual social post, use Add a source under Add a memory and supply an excerpt you can share when public text is unavailable.

Web pages

Give memory_propose any public url and the page is fetched right away and saved with its source recorded. A long page is also cut into short passages, so a later search can find any part of it and not only its opening lines. The passages follow their page: keeping, declining or forgetting the page does the same to its passages, and one page fills at most two places in a result list. A YouTube link saves the transcript instead of the page, in up to 40 passages.

In Automatic mode the page is searchable at once; in Careful or Ask-me-first mode it waits for you as a single inbox item. A page that is slow to answer is queued and fetched by itself the next time the server is awake, or by a run with the input {"mode": "ingest"}. Private and internal addresses are not fetched, including through redirects.

Input reference

FieldTypeWhat it controls
modeserve, follow or ingestserve (default) is the live memory server. follow checks the channels and blogs you follow for new items and stops; put it on a daily schedule. ingest fetches web pages that were queued because they were slow, then stops.
dueOnlybooleanIn follow mode, check only hourly, daily or weekly sources that are due. Default false.
followLimitinteger, 1 to 50In follow mode, the most new items to take from each source. Default 10.
drainLimitinteger, 1 to 100In ingest mode, the most queued pages to fetch in one run. Default 20.
notesstringFree text for your own reference. Not used by the tools.

What data you receive

A memory record, as returned by memory_explain:

{
"id": "mem_3f9a1c52d0e4",
"status": "approved",
"type": "note",
"title": "Release tagging rule",
"summary": "Tag every release before pushing to the main branch.",
"tags": ["scope:my-project", "release"],
"citations": [{"url": "https://example.com/handbook/releases"}],
"confidence": 0.7,
"createdAt": "2026-11-09T10:15:00+00:00",
"approvedAt": "2026-11-09T10:20:00+00:00"
}

A search hit adds a receipt:

{
"rank": 1,
"score": 2.41,
"receipt": {
"memoryId": "mem_3f9a1c52d0e4",
"matchedTerms": ["release", "tag"],
"sourceUris": ["https://example.com/handbook/releases"],
"scorer": "hybrid-local-v3"
}
}

Memory statuses are approved (kept), proposed (waiting for you), rejected and decayed (forgotten). Search returns kept memories.

Storage

StorageNameHolds
Key-value storebraintwin-kvmemories, search index, inbox, sources, sync progress, queued pages
Datasetbraintwin-auditone event per propose, approve, reject, forget, import, sync and ingest

Both are named storages, so they stay in your account until you delete them. There is no other database: the maker of this Actor does not hold a copy of your memories, and you need no account besides your Apify one.

Use through the API

Run the one-off ingest pass over the Apify API:

curl -X POST "https://api.apify.com/v2/acts/khadinakbar~braintwin/runs" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"mode": "ingest", "drainLimit": 20}'

Read the audit trail afterwards from the braintwin-audit dataset in Apify Console, or through the dataset API.

Use with AI agents through Apify MCP

Connect to my Braintwin server. Before you start, get what you know about me and this project. Then find my deployment rules in scope my-project and quote the receipt for each one.

Ask the agent to read the receipt of each hit, to keep source URLs when it quotes a memory, and to hand lasting things you say to memory_capture. The dashboard's Connect tab has a short instruction you can paste into your agent's rules so it does this without being asked. For client-specific setup of Apify-hosted MCP servers, see https://mcp.apify.com.

A focused standalone workflow

Braintwin works as a focused standalone workflow: connect one MCP client and the memory is ready, with no other Actor required. It pairs well with Apify's hosted MCP server when your agent also runs Actors, and it keeps its own storages so the two never share state.

Pricing

There are four prices, and no monthly plan:

WhatPriceWhen you pay it
Server start$0.00005Each time your memory server wakes up after being idle.
Memory change$0.01When something is actually saved or changed: a note, a web page or video, an import, a feed check that found something new, an approval, a rejection or a forget.
Built-in AI note-taking$0.004Only when the built-in AI found a fact the free rules missed. Never with your own AI key, and never if you switch it off.
Learning digest$0.02Once per digest written, on the rhythm you chose. Never when nothing new came in, and never unless you switched it on.

Searching and reading are free. Duplicates, previews and pages that could not be read cost nothing. Example: an agent that saves 5 notes a day and searches 50 times costs about $0.05 a day in events.

This Actor uses Pay per event plus Apify platform usage. "Free" reads mean no event charge: the server still uses a little platform compute while it is awake, and it goes back to sleep after five idle minutes. Open the live Pricing tab for the current event details, and use Apify's run cost controls to keep the workflow aligned with your budget.

Best results

  • Give each memory a short title and one clear statement; search ranks on titles, summaries and tags, forgives typos and a few related words (car, vehicle), and prefers newer memories. It does not understand pure paraphrases that share no words with your note, so use the words you will search with.
  • Use scope for each project or team so searches stay focused.
  • Preview a large import first (the Import tab, or dry_run), then run it for real.
  • Glance at the Activity tab now and then: it lists what was added by itself, and anything wrong can be edited or forgotten in one click.
  • Use brain_health to see counts and queue depth at a glance.

Builder's note

I found that the hard part of agent memory is the write path, not the search. An early version let an agent save the same text again after I had rejected it, and the memory came back. So decisions now stick: a rejected or forgotten memory is not reopened by a repeat proposal, an approved memory is never overwritten in place, and a changed version arrives as a separate proposal that points at the old one. Later I learned the opposite lesson about speed: saving each note as waiting and then approving it wrote everything twice, so the rules are now checked first and the note is written once, which cut a plain save from about two and a half seconds to about one.

FAQ

Does an agent save anything without my review? By default, yes: that is what makes it work by itself. Text that looks like a password, key or card number still waits for you, and you can switch to Careful or Ask me first in the Settings tab.

Do I need my own AI account? No. Rules catch clear statements at no extra charge, and the built-in AI step and the learning digest need no setup. You can use your own AI key instead if you prefer.

Where is my data stored? In two named storages in your own Apify account, listed in the Storage section.

Can I import from another memory plugin? Yes. Use import_json with AgentMemory, Mem0, Basic Memory or a plain record list, and add sync to keep it up to date.

How do I remove something? Use memory_forget. The record stays for the audit trail but no longer appears in default search.

What happens if the index and the stored memories disagree? Call brain_health with repair_index and the index, inbox and counts are rebuilt from the stored memories.

  • Web pages and videos: public pages and public YouTube captions only; nothing behind a login.
  • AI steps: what you say (note-taking) and excerpts of what you saved (digest) are sent to an AI service to be read. Switch both off in the dashboard if that does not suit you.
  • Search: ranking over titles, summaries and tags, typo-tolerant; optional meaning search on your own key.
  • Removal: a forgotten memory stays in the audit trail; delete the named storages in Apify Console to remove everything.

Store information you are entitled to keep, and follow the terms of any site whose pages you file. Keep secrets, passwords and API keys out of memories. This Actor is an independent project and is separate from Apify's own hosted MCP server.