Skip to content

Pipecat ​

pipecat-mnemoverse gives Pipecat voice agents memory across sessions. Before each reply the agent recalls what the user said earlier, and what the user says now is saved for next time. It is a Mnemoverse package, not a Pipecat one. The memory lives in your Mnemoverse account, so the same memory is readable from Claude, ChatGPT, Cursor, VS Code and the other tools connected to it.

Install ​

bash
pip install pipecat-mnemoverse

It needs Python 3.11 or newer. Create an API key at console.mnemoverse.com and set it as MNEMOVERSE_API_KEY, or pass api_key=.

Add it to a pipeline ​

In your pipeline, place MnemoverseMemoryService after the user context aggregator and before the LLM (the voice agent example shows a whole pipeline):

python
from pipecat_mnemoverse import MnemoverseMemoryService

memory = MnemoverseMemoryService(
    user_id="caller-42",  # memories go to the domain user:caller-42
    params=MnemoverseMemoryService.InputParams(top_k=5, read_timeout_secs=1.0),
)

pipeline = Pipeline(
    [
        transport.input(),
        stt,
        user_aggregator,
        memory,
        llm,
        tts,
        transport.output(),
        assistant_aggregator,
    ]
)

On every LLM context frame the service takes the latest user message, recalls up to top_k memories from the domain and puts them into the context as one message, one numbered line per memory. It then saves the new messages of the configured roles in the background, each message once. Recall sits on the path to the LLM, so it waits at most read_timeout_secs (1 second by default); if recall takes longer or fails, the frame moves on without memories.

get_memories(limit=10) returns the newest memories of the domain, for example to greet a returning caller when a call connects. The voice agent example does that.

One domain per caller ​

user_id names the person the agent talks to, and their memories go to the domain user:<user_id>. Pass domain= instead to use another domain, such as project:support. Take the id from your own system, on the server.

The service saves the caller's messages to the same domain it recalls from, so in a domain shared by several callers one caller's words are recalled into other callers' conversations. To let callers read shared knowledge without adding to it, pass params=MnemoverseMemoryService.InputParams(store_roles=()), which saves nothing. A domain separates how memory is used, not who may read it: the API key reads every domain of its account, so keep it on your server and give each app its own key (what one key shares).

Limits and cost ​

By default each new user message costs two requests: one recall before the reply and one save after it. With "assistant" in store_roles, each reply adds one more save. Reads and writes count together against your plan's daily query limit (pricing). A recall query is cut to its last 5,000 characters and a saved message to its first 10,000. The parameters, min_relevance and the other options are in the package README.

Tested ​

Version 0.1.0 is tested with fake SDK clients, with mnemoverse 0.5.2 and Pipecat 1.16.0 on Python 3.11 to 3.13, and with Pipecat 1.15.0 on Python 3.11. It has not been run against the live API yet.