chore(docker): disable Mem0 telemetry in container config#531
chore(docker): disable Mem0 telemetry in container config#531
Conversation
Set MEM0_TELEMETRY=false in Docker compose, CLI template, and .env.example. Mem0's telemetry initializes an extra vector store to stage usage data before shipping to Mem0's servers — disabling it reduces startup overhead and keeps all data local.
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a new environment variable Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
📝 Coding Plan
Comment |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the Docker container configuration by explicitly disabling Mem0 telemetry. This change is crucial for optimizing application startup performance and reinforcing data privacy by ensuring that no additional vector stores are initialized for telemetry data collection, keeping all operational data local to the deployment. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request disables Mem0 telemetry by default across Docker configurations, which is a good change for privacy and performance. The implementation is mostly correct, but I've found one area for improvement in docker/compose.yml where the configuration is hardcoded, preventing users from easily overriding it. My suggestion makes the setting configurable via the .env file, which is a common practice in docker-compose setups.
docker/compose.yml
Outdated
| # Disable Mem0 telemetry (extra vector store init overhead). | ||
| MEM0_TELEMETRY: "false" |
There was a problem hiding this comment.
Hardcoding MEM0_TELEMETRY to "false" prevents users from overriding this setting in their .env file, because environment values in docker-compose.yml override values from an env_file. To allow for user configuration, it's better to use Docker Compose variable substitution. This provides a default while still allowing overrides, which is a more flexible approach.
# Disable Mem0 telemetry by default. Override in .env to enable.
MEM0_TELEMETRY: "${MEM0_TELEMETRY:-false}"There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docker/compose.yml`:
- Around line 22-23: The environment variable MEM0_TELEMETRY is set to the
lower-case string "false" which does not match Mem0's documented expected value;
change the value for the MEM0_TELEMETRY entry to use a capitalized "False" so
Mem0 will correctly interpret telemetry as disabled (update the MEM0_TELEMETRY
value in the docker compose service definition).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: c0f03980-f1e8-4001-8572-5603e2eb92a2
📒 Files selected for processing (6)
cli/internal/compose/compose.yml.tmplcli/testdata/compose_custom_ports.ymlcli/testdata/compose_default.ymlcli/testdata/compose_digest_pins.ymldocker/.env.exampledocker/compose.yml
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: Build Backend
- GitHub Check: Build Web
- GitHub Check: CLI Test (windows-latest)
- GitHub Check: CLI Test (macos-latest)
- GitHub Check: Analyze (python)
🧰 Additional context used
📓 Path-based instructions (1)
docker/compose.yml
📄 CodeRabbit inference engine (CLAUDE.md)
docker/compose.yml: Docker image versions are tagged frompyproject.tomlvia[tool.commitizen].version(semver + SHA). Use git tags for release versions (v*)
All Docker Compose services must be defined indocker/compose.yml. Use.env.examplefor environment variable documentation
Files:
docker/compose.yml
🧠 Learnings (1)
📚 Learning: 2026-03-17T22:03:39.493Z
Learnt from: CR
Repo: Aureliolo/synthorg PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-17T22:03:39.493Z
Learning: Applies to docker/compose.yml : All Docker Compose services must be defined in `docker/compose.yml`. Use `.env.example` for environment variable documentation
Applied to files:
docker/compose.yml
🔇 Additional comments (5)
docker/.env.example (1)
36-40: LGTM — well-documented environment variable.Clear explanation of what the telemetry setting does and why it's disabled by default. This follows the coding guideline to use
.env.examplefor environment variable documentation.cli/testdata/compose_custom_ports.yml (1)
18-18: LGTM — testdata file updated consistently with template.cli/testdata/compose_digest_pins.yml (1)
18-18: LGTM — consistent with template and other golden files.cli/testdata/compose_default.yml (1)
18-18: LGTM — default golden file updated consistently.cli/internal/compose/compose.yml.tmpl (1)
18-18: LGTM — hardcoding the telemetry disable is appropriate.Using a static value rather than a template variable makes sense since this is a deliberate default policy (keep data local, reduce overhead) rather than a user-configurable option.
docker/compose.yml
Outdated
| # Disable Mem0 telemetry (extra vector store init overhead). | ||
| MEM0_TELEMETRY: "false" |
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
mem0ai MEM0_TELEMETRY environment variable disable telemetry
💡 Result:
To disable Mem0 (mem0ai) telemetry, set the environment variable MEM0_TELEMETRY to False (do this before initializing/using Mem0). [1]
Shell
export MEM0_TELEMETRY=FalsePython
import os
os.environ["MEM0_TELEMETRY"] = "False"[1]
Sources
- [1] Mem0 Docs – FAQs (section “How do I disable telemetry in Mem0?”) (docs.mem0.ai)
Citations:
Fix value casing to match Mem0 documentation.
The variable name MEM0_TELEMETRY is correct, but according to Mem0's official documentation, the value should be "False" (capital F), not "false". In Python, the string "false" is truthy (non-empty string), which may prevent telemetry from actually disabling. Update line 23 to:
Suggested fix
MEM0_TELEMETRY: "False"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docker/compose.yml` around lines 22 - 23, The environment variable
MEM0_TELEMETRY is set to the lower-case string "false" which does not match
Mem0's documented expected value; change the value for the MEM0_TELEMETRY entry
to use a capitalized "False" so Mem0 will correctly interpret telemetry as
disabled (update the MEM0_TELEMETRY value in the docker compose service
definition).
Allow users to override the default (false) via .env file. Hardcoded environment values in compose override env_file.
🤖 I have created a release *beep* *boop* --- ## [0.3.2](v0.3.1...v0.3.2) (2026-03-17) ### Features * **settings:** route structural data reads through SettingsService ([#525](#525)) ([289f604](289f604)) ### Bug Fixes * **cli:** add fallback arch detection in PowerShell installer ([#529](#529)) ([0250afb](0250afb)), closes [#521](#521) ### CI/CD * bump the minor-and-patch group with 2 updates ([#517](#517)) ([46bdd1a](46bdd1a)) * bump wrangler from 4.73.0 to 4.74.0 in /.github in the minor-and-patch group ([#511](#511)) ([903b71a](903b71a)) ### Maintenance * bump node from `7a4ef57` to `44bcbf4` in /docker/sandbox ([#515](#515)) ([3cbddd1](3cbddd1)) * bump python from `6a27522` to `584e89d` in /docker/backend ([#513](#513)) ([0715910](0715910)) * bump python from `6a27522` to `584e89d` in /docker/sandbox ([#514](#514)) ([787dfe1](787dfe1)) * bump the minor-and-patch group across 1 directory with 2 updates ([#527](#527)) ([e96c0d4](e96c0d4)) * bump the minor-and-patch group across 2 directories with 3 updates ([#512](#512)) ([b95ba3d](b95ba3d)) * **docker:** disable Mem0 telemetry in container config ([#531](#531)) ([9fc29eb](9fc29eb)) * improve GitHub issue templates with structured forms ([#528](#528)) ([4fb66cf](4fb66cf)), closes [#522](#522) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
MEM0_TELEMETRY=falsein Docker compose, CLI compose template, and.env.exampleMEM0_TELEMETRYis disabledChanges
docker/.env.example— addedMEM0_TELEMETRY=falsewith documentation commentdocker/compose.yml— addedMEM0_TELEMETRY: "false"to backend environmentcli/internal/compose/compose.yml.tmpl— addedMEM0_TELEMETRY: "false"to CLI-generated composecli/testdata/compose_*.yml— updated 3 golden files to match templateTest plan
go test ./internal/compose/)go vet ./...clean