mem0ai breaking changes
mem0ai 2.0.0 (April 16, 2026) is its newest release with breaking changes, 120 of them. The first: Removed api_version. Every breaking API change we have recorded in mem0ai on PyPI: 130 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.2.1, released September 25, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
mem0ai 2.0.0 breaking changes
- Removed
api_version
The api_version parameter is removed. Remove it from all calls. github.com - Removed
API_VERSION
The API_VERSION enum is removed and handled internally. docs.mem0.ai - Removed
async_mode
The async_mode parameter is removed because add is async by default. Remove it from all calls. github.com - Removed
batch_size
The batch_size parameter is removed. Remove it from all calls. github.com - Removed
custom_update_memory_prompt
The custom_update_memory_prompt option is removed. Use custom_instructions instead. github.com - Removed
enableGraph
Graph memory config is removed from the TypeScript OSS SDK and is only available on Mem0 Platform. docs.mem0.ai - Removed
excludes
The excludes parameter is removed. Remove it from all calls. github.com - Removed
expiration_date
The expiration_date parameter is removed. Remove it from all calls. github.com - Removed
filter_memories
The filter_memories parameter is removed. Remove it from all calls. github.com - Removed
force_add_only
The force_add_only parameter is removed. Remove it from all calls. github.com - Removed
graphStore
The graphStore config block is no longer read. Remove it from your config. docs.mem0.ai - Removed
immutable
The immutable parameter is removed. Remove it from all calls. github.com - Removed
includes
The includes parameter is removed. Remove it from all calls. github.com - Removed
keyword_search
The keyword_search parameter is removed. Remove it from all calls. github.com - Removed
mem0.AsyncMemory.__aenter__
AsyncMemory.__aenter__ was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.AsyncMemory.__aexit__
AsyncMemory.__aexit__ was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.configs.base.GraphStoreConfig
mem0.configs.base.GraphStoreConfig was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.configs.base.MemoryConfig.custom_fact_extraction_prompt
MemoryConfig.custom_fact_extraction_prompt was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.configs.base.MemoryConfig.custom_update_memory_prompt
MemoryConfig.custom_update_memory_prompt was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.configs.base.MemoryConfig.graph_store
Graph memory is removed from the open-source SDK and is only available on Mem0 Platform. Remove graph_store config and graph driver packages. pypi.org - Removed
mem0.exceptions.GraphStoreError
mem0.exceptions.GraphStoreError was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.graphs
mem0.graphs was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.Memory.__enter__
Memory.__enter__ was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.Memory.__exit__
Memory.__exit__ was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.memory.apache_age_memory
mem0.memory.apache_age_memory was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.Memory.custom_fact_extraction_prompt
Memory.custom_fact_extraction_prompt was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.Memory.custom_update_memory_prompt
Memory.custom_update_memory_prompt was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.Memory.enable_graph
The enable_graph parameter is removed from MemoryConfig and related APIs. Code that passes it will no longer work. pypi.org - Removed
mem0.Memory.graph
Memory.graph was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.memory.graph_memory
mem0.memory.graph_memory was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.memory.kuzu_memory
mem0.memory.kuzu_memory was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.memory.main.ensure_json_instruction
mem0.memory.main.ensure_json_instruction was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.memory.main.get_fact_retrieval_messages
mem0.memory.main.get_fact_retrieval_messages was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.memory.main.get_update_memory_messages
mem0.memory.main.get_update_memory_messages was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.memory.main.GraphStoreFactory
mem0.memory.main.GraphStoreFactory was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.memory.main.normalize_facts
mem0.memory.main.normalize_facts was removed in mem0ai 2.0.0 pypi.org - Removed
mem0.memory.memgraph_memory
mem0.memory.memgraph_memory was removed in mem0ai 2.0.0 pypi.org - Removed
MemoryClient.org_id
MemoryClient no longer accepts org_id. Construct it with api_key only. github.com - Removed
MemoryClient.project_id
MemoryClient no longer accepts project_id. Construct it with api_key only. github.com - Removed
org_name
The org_name parameter is removed. Remove it from all calls. github.com - Removed
output_format
The output_format parameter is removed. Remove it from all calls. github.com - Removed
OutputFormat
The OutputFormat enum is removed; v1.1 output is always used. docs.mem0.ai - Removed
project_name
The project_name parameter is removed. Remove it from all calls. github.com - Removed
relations
The relations array is no longer returned in OSS because graph memory was removed. Code that reads it must move to Platform or change. docs.mem0.ai - Renamed
custom_fact_extraction_prompt
The config key custom_fact_extraction_prompt is renamed to custom_instructions. github.com - Renamed
customPrompt
The customPrompt config key is renamed to customInstructions. docs.mem0.ai - Renamed
search
The limit option of search is renamed to topK in the TypeScript OSS SDK. docs.mem0.ai - Behavior changed
add
add is async by default and returns a PENDING status with an event_id. Poll the event endpoint to confirm completion. github.com - Behavior changed
get_all
get_all now returns an object with count, next, previous and results keys. Update code that iterates the return value directly. github.com - Behavior changed
score
Scores still range from 0 to 1 but are calculated differently, so absolute values shift. Retune hard thresholds against real queries. docs.mem0.ai
And 70 more in this version. Sign up to see every change
mem0ai 2.0.0b0 breaking changes
- Removed
Deprecated parameters are removed across LLM, embedding, vector store and graph components. Code that passes them must drop them. github.com
mem0ai 1.0.0 breaking changes
- Default changed
Async mode is now enabled by default. Code that relied on the previous default may need to opt out or adjust how it awaits calls. github.com - Default changed
add
The add calls in the AI SDK now default to version=v2. Code that depends on the old default behavior should pass the version explicitly. github.com - Signature changed
mem0.memory.main.get_fact_retrieval_messages
Was def get_fact_retrieval_messages(message); now def get_fact_retrieval_messages(message, is_agent_memory=False). pypi.org - Signature changed
mem0.Memory.search
Was def search(self, query: str, *, user_id: Optional[str] = None, agent_id: Optional[str] = None, run_id: Optional[str] = None, limit: int = 100, filters: Optional[Dict[str, Any]] = None, threshold: Optional[float] = None); now def... pypi.org - Signature changed
mem0.memory.utils.get_fact_retrieval_messages
Was def get_fact_retrieval_messages(message); now def get_fact_retrieval_messages(message, is_agent_memory=False). pypi.org - Signature changed
mem0.MemoryClient.add
Was def add(self, messages: List[Dict[str, str]], **kwargs) -> Dict[str, Any]; now def add(self, messages, **kwargs) -> Dict[str, Any]. pypi.org - Signature changed
mem0.MemoryClient.get_all
Was def get_all(self, version: str = 'v1', **kwargs) -> List[Dict[str, Any]]; now def get_all(self, **kwargs) -> Dict[str, Any]. pypi.org - Signature changed
mem0.MemoryClient.search
Was def search(self, query: str, version: str = 'v1', **kwargs) -> List[Dict[str, Any]]; now def search(self, query: str, **kwargs) -> Dict[str, Any]. pypi.org - Signature changed
mem0.vector_stores.milvus.MilvusDB.create_col
Was def create_col(self, collection_name: str, vector_size: str, metric_type: MetricType = MetricType.COSINE) -> None; now def create_col(self, collection_name: str, vector_size: int, metric_type: MetricType = MetricType.COSINE) -> None. pypi.org
Related packages
- @mem0/vercel-ai-provider on npm
- mem0ai on npm
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.