v2.1.0
mem0ai/mem0v2.1.0Sep 18, 2026by kartik-mem0
Upgrading?
AI Summary
The Python SDK v2.1.0 introduces surface-identity headers to help the platform track the source and chain of API calls. It also introduces environment variables for wrapper configuration and fixes client stack truncation logic to prevent breaking identifiers.
Key Highlights
- Added surface-identity headers (X-Mem0-Source, X-Application, X-Mem0-Client)
- Environment variable support for wrapper configuration (MEM0_SOURCE, etc.)
- Fixed client stack truncation to drop whole entries instead of slicing characters
New Features
- Surface-identity header injection
- Environment variable configuration support
- Improved client stack truncation logic
Full Release Notes
**Improvements:** - **Client:** Requests now carry three surface-identity headers so the platform can tell which product made a call. `X-Mem0-Source` names the surface and `X-Application` the host app it runs inside, both set-once so a wrapper that already declared its identity keeps it. `X-Mem0-Client` is append-only and carries `name/version` per layer, outermost first, so a plugin calling this SDK reports the whole chain rather than only the last speaker. `MEM0_SOURCE`, `MEM0_APPLICATION` and `MEM0_CLIENT_STACK` set them from the environment for wrappers that cannot pass options ([#7326](https://github.com/mem0ai/mem0/pull/7326)) - **Client:** The client stack is bounded by dropping whole entries rather than slicing characters, and this SDK's own entry is the reserved one. Truncating the joined string could sever an identifier mid-name and the platform parsed the fragment as a real client ([#7326](https://github.com/mem0ai/mem0/pull/7326))
Related Repositories
public-apis/public-apis★ 491,131
A collective list of free APIs
NousResearch/hermes-agent★ 255,909
The agent that grows with you
yt-dlp/yt-dlp★ 200,005
A feature-rich command-line audio/video downloader
microsoft/markitdown★ 191,483
Python tool for converting files and office documents to Markdown.
Significant-Gravitas/AutoGPT★ 187,700
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.