pipecat-mnemoverse
Memory for Pipecat agents with Mnemoverse. Before each reply the agent recalls what the user said in earlier sessions; what the user says now is saved for the next one. Memories live in your Mnemoverse account, so the same memory is readable from any other tool connected to it, such as Claude, ChatGPT, Cursor or VS Code.
This integration is maintained by the Mnemoverse team, who run the Mnemoverse memory service.
Installation
pip install pipecat-mnemoverse
or with uv:
uv add pipecat-mnemoverse
Create an API key at console.mnemoverse.com and set it in the environment:
export MNEMOVERSE_API_KEY=mk_live_...
Usage
Place MnemoverseMemoryService after the user context aggregator and before the LLM:
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 and recalls up to
top_kmemories from the domain; - puts them into the context as one message (a "developer" message at position 1 by default), one numbered line per memory with its line breaks collapsed and
<>replaced by‹›, replacing the one it added for the previous user message; - 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) and the frame moves on without memories if recall takes longer or fails.
When the pipeline ends, the service gives the saves still running up to 5 seconds to finish before it closes its client; a save still running after that is cancelled and logged as a warning.
Each new user message costs two requests: one recall before the reply and one write after it. With "assistant" in store_roles, each reply adds one more write. Reads and writes count together against your plan's daily query limit: the Free plan's 1,000 queries a day is about 500 user messages. Plans and limits are on mnemoverse.com/pricing.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
api_key |
MNEMOVERSE_API_KEY |
Mnemoverse API key |
user_id |
The person the agent talks to; memories go to the domain user:<user_id> |
|
domain |
A Mnemoverse domain to use instead, for example project:support; the service saves messages to it as well as recalling from it |
|
InputParams.top_k |
5 | Memories to recall per user message |
InputParams.min_relevance |
0.3 | Minimum relevance of a recalled memory, 0 to 1 |
InputParams.read_timeout_secs |
1.0 | Longest wait for recall |
InputParams.store_roles |
("user",) |
Roles to save; add "assistant" to save the agent's replies, or set () to save nothing |
InputParams.system_prompt |
"Relevant memories from earlier conversations:\n\n" |
Opening of the memory message |
InputParams.add_as_system_message |
True |
Insert memories as a "developer" message instead of a user message |
InputParams.position |
1 | Where in the context the memory message goes |
min_relevance drops recalled memories below the threshold. Broad questions, such as "what do you remember about me?", can score below the default 0.3 and come back with nothing; if that happens in your agent, try a lower value such as 0.15.
get_memories(limit=10) returns the newest memories of the domain, for example to build a greeting when a call connects.
One API key reads and writes the whole memory of the account it was created in. Give each user their own domain, as user_id does, and keep the key on your server. The service saves the caller's messages to the same domain it recalls from: in a domain shared by several callers, such as project:support, one caller's words are recalled into other callers' conversations. To give callers shared knowledge they only read, set store_roles=(), which saves nothing. How Mnemoverse handles keys and data: mnemoverse.com/docs/api/security.
Pass your own AsyncMnemoClient as client= to share one connection pool between services; the service then leaves it open when the pipeline ends, and closing it is yours. A recall query longer than the API's 5,000 characters is cut to its last 5,000, and a message longer than 10,000 characters is saved as its first 10,000.
Example
examples/voice-agent-memory.py is a voice agent that greets a returning caller with what it remembers. It needs MNEMOVERSE_API_KEY, OPENAI_API_KEY, DEEPGRAM_API_KEY and ELEVENLABS_API_KEY:
pip install "pipecat-ai[daily,deepgram,elevenlabs,openai,runner,silero,webrtc]" pipecat-mnemoverse python-dotenv
python examples/voice-agent-memory.py
Open the local URL it prints, tell the agent something about yourself, end the call, start a new one and ask what it remembers.
Compatibility
Tested with the mnemoverse Python SDK 0.5.2 and Pipecat v1.16.0 on Python 3.11, 3.12 and 3.13, and with Pipecat v1.15.0 on Python 3.11. It needs SDK 0.5.2 or later: in earlier versions a recall cut off by read_timeout_secs, or refused with a client error such as 401, 403 or a quota 429, while the client was probing the service after an outage could leave that client refusing every call until the process restarted.
Issues
github.com/mnemoverse/pipecat-mnemoverse/issues
License
BSD 2-Clause, as Pipecat. See LICENSE.
Metadata
Release files for pipecat-mnemoverse 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pipecat_mnemoverse-0.1.0.tar.gz | 15.1 kB | With provenance | Details for pipecat_mnemoverse-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pipecat_mnemoverse-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pipecat_mnemoverse-0.1.0-py3-none-any.whl |
Total release size: 25.3 kB
Release files / pipecat_mnemoverse-0.1.0.tar.gz
| Download URL | pipecat_mnemoverse-0.1.0.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bad8567a769912cbdbe5a4d775151cfd87c09f4453c9ddb23d1433689feb8108
|
|
BLAKE2b-256 checksum How to use checksums |
b03bbb1b7be661eb5327cab6431e33a276ccefb3bf73cb92517b15d4864e9cf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / pipecat_mnemoverse-0.1.0-py3-none-any.whl
| Download URL | pipecat_mnemoverse-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0cd3bee0195b54ac9475b8472ce4e12368347fbbfcd5e6225aad1ae034d10fb
|
|
BLAKE2b-256 checksum How to use checksums |
abba0185f7e7ded51a7b1fc3d8538f60caffa6bda1e3bd33564166c30ea2d514
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for pipecat-mnemoverse 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pipecat_mnemoverse-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.