bm import claude conversations
Import chat conversations from Claude.ai.Arguments
CONVERSATIONS_JSON- Path to conversations.json file (default: conversations.json)
Options
--folder TEXT- Folder to place the files in (default: conversations)
How to Export from Claude.ai
- Visit Claude.ai
- Go to Settings → Data & Privacy
- Click “Export data”
- Download the
conversations.jsonfile
Examples
What Gets Imported
The importer:- Reads chat data and nested messages
- Creates markdown files for each conversation
- Formats content in clean, readable markdown
- Preserves conversation structure and timestamps
Output
File Format
Each conversation is saved as:bm import chatgpt
Import conversations from ChatGPT JSON export.Arguments
CONVERSATIONS_JSON- Path to ChatGPT conversations.json file (default: conversations.json)
Options
--folder TEXT- Folder to place the files in (default: conversations)
How to Export from ChatGPT
- Visit ChatGPT
- Click your profile → Settings
- Go to Data Controls
- Click “Export data”
- Wait for email with download link
- Download and extract
conversations.json
Examples
What Gets Imported
The importer:- Reads the complex tree structure of messages
- Converts them to linear markdown conversations
- Saves as clean, readable markdown files
- Preserves message ordering and timestamps
Output
File Format
Each conversation is saved as:bm import memory-json
Import entities and relations from a memory.json file.Arguments
JSON_PATH- Path to memory.json file (default: memory.json)
Options
--destination-folder TEXT- Optional destination folder within the project
File Format
The memory.json file should contain JSON Lines format (one JSON object per line):Examples
What Gets Imported
The importer:- Reads entities and relations from the JSON file
- Creates markdown files for each entity
- Includes outgoing relations in each entity’s markdown
- Preserves observations and metadata
Output
File Format
Each entity is saved as:Post-Import Steps
After importing data, you should reindex your knowledge base:- New content is searchable
- Relations are resolved
- Knowledge graph is updated
- Embeddings are generated (if semantic search is enabled)
Import Workflows
Import Claude Conversations
Import ChatGPT History
Import Memory JSON
Import Best Practices
Before Importing
-
Backup your data - Create a snapshot if using cloud
-
Review the source file - Make sure it’s the correct export
-
Test with dry run - Use a test project first
During Import
- Monitor progress - Watch for errors in output
- Check file count - Verify expected number of files created
- Verify disk space - Ensure sufficient space for large imports
After Importing
-
Reindex immediately
-
Spot check content
-
Update project info
Troubleshooting
Import Failed
Invalid JSON Format
Duplicate Content
If you import the same data twice, Basic Memory will:- Overwrite existing files with the same name
- Preserve your manual edits if filenames differ
No Files Created
Data Privacy
All import operations:- Run locally on your machine
- Never send data to external services
- Store files in your local project directory
- Can be used offline
Related Commands
- bm reindex - Reindex imported content
- bm project info - View project statistics
- bm tool search-notes - Search imported content