Skip to content

Instantly share code, notes, and snippets.

@itstauq
itstauq / convert-ai-history.py
Last active February 18, 2026 17:06
Convert ChatGPT and Claude Code conversation exports to clean markdown for importing into OpenClaw memory
#!/usr/bin/env python3
"""
Convert Claude Code and ChatGPT conversation exports to clean markdown.
Usage:
python convert-ai-history.py --claude ~/.claude/projects --chatgpt ~/Downloads/conversations.json --output ~/openclaw/memory
# Claude only
python convert-ai-history.py --claude ~/.claude/projects --output ~/openclaw/memory