Open-source proof of concept to enable users to upload their conversation data from major AI platforms, redact potentially sensitive information from conversations and choose which conversations they want to port from one system to another, and download a new copy of their conversation data for upload.
Helpful links:
- Read the full article on data portability here!
- Selective Memory can also run entirely in a web browser, so people can use it from a link without Python or a terminal. Files are still processed only on the user's own computer. Use the browser version of this tool with no set-up!
-
Create a virtual environment (one-time setup):
cd data-portability-app python3 -m venv .venv ./.venv/bin/pip install -r requirements.txt -
Start the development server:
./.venv/bin/python app.py
-
Open in your browser: Navigate to http://127.0.0.1:5000
This app runs entirely locally, your data never leaves your machine.
- Select Platform — Choose which platform service your conversation export is from (Claude/Anthropic or ChatGPT/OpenAI)
- Upload File — Drag and drop or browse for your
conversations.jsonfile
Tip
To try it out, use example conversations.json files in the sample data folder
- Review Conversations — View all conversations in a searchable, sortable table with metadata (date, message count, word count, sensitivity tag)
- Review conversations with possibly sensitive content which is highlighted by category (Red, Yellow, or Green tags)
- Redact detected sensitive content
- Redact any additional content that is deemed sensitive upon human review
- Delete messages or whole turns
- Delete conversations
- Select for export — Select the conversations you want to keep and review.
- Download — Save your filtered
conversations.jsonfile for upload to another platform.
The sensitivity labels or sensitive information detection is entirely rule-based, with no model calls, using logic for normalized text, word-boundary regexes, and a few structural validators. The three sensitivity labels are:
- 🔴
Red— regulated data (health/finance), high-risk PII, live secrets, malicious/exploit content, legal exposure, and "what do you know about me" profile-audit questions - 🟡
Yellow— quasi-identifying or commercially sensitive: geo/proximity, trackable indicators, memory-write requests, business ventures, interpersonal comms, indirect identifiers, corporate IP, creative/copyrighted material - 🟢
Green— nothing matched
The code handling conversation data parsing was written by members of CDT's AI Governance Lab. To make the parsing code operational for users at scale, we developed an application, Selective Memory, with the assistance of Claude Code. Claude Code was used to develop the application's front and backend functionality.


