mex / Security
Security and data handling
mex gives coding agents shared knowledge about your codebase, so it has to be careful with that codebase. This page explains what each version of mex can access, what it keeps, and who decides what agents are told.
Hosted mex is in beta access. More detail is shared during early-access onboarding.
Two products with different boundaries
| Open-source CLI | Hosted mex | |
|---|---|---|
| Where it runs | Your machine | mex infrastructure on Google Cloud |
| Access to your code | Whatever your local checkout has | Read-only GitHub App |
| Where memory lives | Markdown in your repository, shared through Git | In hosted mex, per project. Nothing is committed to your repo |
| Who changes what agents load | Your team, through Git review | People promote. Agents can only propose |
| Model training on your code | Never | Never |
We don't train on your code
mex does not use your code, or the knowledge compiled from it, to train models. This applies to every plan and to the open-source CLI.
Hosted mex: access to your code
Hosted mex connects through a GitHub App. Someone on your team signs in, installs it and picks the repository to connect.
| Permission | Hosted mex |
|---|---|
| Repository contents | Read-only |
| Repository metadata | Read-only |
| Write to code | Not requested |
| Pull requests | Not requested |
| Administration | Not requested |
- Only pushes to the default branch start a compile. Other branches are ignored.
- To compile, mex clones the default branch and deletes the clone when the compile ends, including when it fails.
- What mex keeps are the compiled knowledge units (architecture, components, patterns, conventions), stored per project in hosted mex. It does not write a .mex/ folder into your repository.
- Hosted mex runs on Google Cloud, which encrypts all stored data at rest by default.
Hosted mex: people decide what agents are told
- Compiled knowledge arrives as a proposal. A person promotes or rejects it.
- Agents load promoted knowledge only. An agent can propose a new unit or a change, but cannot approve it.
- When the code a promoted unit describes changes, the unit is marked as drifted and goes back to review instead of being served as current.
- If the latest compile is missing, running or failed, agents get that status as an error. They are never quietly given an older snapshot.
Hosted mex: tokens, uninstalling and deletion
- Agents connect over MCP with a project token. Tokens are shown once and can be revoked at any time from the Org screen.
- Uninstalling the GitHub App stops new clones.
- Compiled units stay until a project owner deletes the project.
The open-source CLI
- It runs on your machine. Memory is Markdown in your repository and moves only when you git push.
- The local Hub listens on 127.0.0.1 only. You don't need a mex account.
- It is MIT licensed, so you can read every line of what it does.
- It collects pseudonymous usage telemetry (which commands ran and whether they succeeded). Code, content, paths, repository remotes, search text and names are excluded. See the telemetry policy.
Turn telemetry off with either of these:
mex telemetry disable
# or set an environment variable
MEX_TELEMETRY=0Your coding agents (Claude Code, Codex, Cursor and others) send requests to their own model providers under their own terms. mex doesn't change that.
Security reviews and reporting a vulnerability
Evaluating hosted mex for your team? Send security questions or your company's questionnaire to info@mexmemory.com.
Found a vulnerability? Please report it privately, not in a public issue. For hosted mex, email info@mexmemory.com. For the open-source CLI, follow the repository's security policy.
FAQ
Does mex train models on our code?
No. mex does not train models on your code, in the open-source CLI or in hosted mex.
What access to our code does hosted mex need?
Read-only access to repository contents and metadata through a GitHub App. It does not request write, administration or pull request permissions.
Does mex keep a copy of our repository?
No. Hosted mex clones the default branch to compile it and deletes the clone when the compile ends, including when it fails. What it keeps are the compiled knowledge units, stored per project.
Where does hosted mex run?
On Google Cloud, which encrypts all stored data at rest by default.
Can an AI agent change what other agents are told?
Not on its own. In hosted mex an agent can propose a change, and only a person can promote it. Agents load promoted knowledge only.
Does the open-source CLI send our code anywhere?
No. The CLI runs on your machine and memory stays as Markdown in your repository. Its usage telemetry excludes code, content, paths, repository remotes and names, and you can turn it off.
Want to try hosted mex with your team?
Get free early access