Analyze your iMessage conversations using local AI with complete privacy. All processing happens on your Mac - no data ever leaves your device.
- 100% Local Processing - Your messages never leave your Mac
- AI-Powered Analysis - Sentiment analysis, topic detection, and insights (coming soon)
- Beautiful Visualizations - Charts and statistics about your conversations
- Privacy First - No cloud services, no data collection, no tracking
- Download the latest release from Releases
- Or build from source: Open
AiMessage.xcodeprojin Xcode and run
AiMessage provides two ways to export your iMessage data:
- Open AiMessage
- Click "How to Export" in the Import tab
- Click "Export Messages Now"
- Grant permission when prompted
- Grant Terminal Full Disk Access:
- System Settings β Privacy & Security β Full Disk Access β Add Terminal
- Run this command in Terminal:
sqlite3 ~/Library/Messages/chat.db <<EOF
.mode csv
.headers on
.output ~/Desktop/messages_export.csv
SELECT
datetime(date/1000000000 + 978307200, 'unixepoch', 'localtime') as timestamp,
text,
CASE is_from_me WHEN 1 THEN 'Me' ELSE handle.id END as sender,
is_from_me as isFromMe,
'chat' as chatIdentifier
FROM message
LEFT JOIN handle ON message.handle_id = handle.ROWID
WHERE text IS NOT NULL
ORDER BY date DESC;
.quit
EOF- Drag the exported CSV file into AiMessage
- View statistics and insights
- AI analysis features coming soon!
- Local Only: All processing happens on your Mac
- No Network Access: AiMessage has no internet permissions
- Your Data Stays Yours: No telemetry, no analytics, no cloud sync
- Open Source: Verify the code yourself
- Message count and frequency
- Conversation participants
- Time-based patterns
- Sentiment trends (coming soon)
- Topic clustering (coming soon)
- Response time analysis (coming soon)
- macOS 14.0 or later
- Apple Silicon or Intel Mac
- ~50MB disk space
Contributions are welcome! Please read our Contributing Guide first.
MIT License - see LICENSE for details
Q: Is my data safe? A: Yes! AiMessage never sends data anywhere. All processing is local.
Q: Why do I need to grant Full Disk Access? A: macOS protects the Messages database. Terminal needs permission to read it for export.
Q: Can I analyze group chats? A: Yes! The export includes all conversations.
Q: What about attachments/images? A: Currently, only text messages are analyzed. Media support is planned.
- Make sure Terminal has Full Disk Access
- Restart Terminal after granting permission
- Check that Messages app has been used on this Mac
- Try closing Messages app before exporting
- Verify the CSV file isn't empty
- Check that the file uses the correct format
Made with β€οΈ for privacy-conscious Mac users