Install
openclaw skills install chatgpt-importImport and embed ChatGPT conversation history into OpenClaw's memory search database for easy archival and retrieval of past chats.
openclaw skills install chatgpt-importImport your ChatGPT conversations into OpenClaw so they're searchable via memory search.
Follow references/export-guide.md to download your conversations.json.
python3 scripts/convert_chatgpt.py \
--input /path/to/conversations.json \
--output /path/to/chatgpt-history
Options: --min-messages N to skip trivial conversations (default: 2).
export OPENAI_API_KEY=sk-...
python3 scripts/bulk_embed.py \
--history-dir /path/to/chatgpt-history \
--db /path/to/chatgpt-memory.sqlite
Options: --model, --batch-size, --max-workers, --chunk-size, --api-key.
Add as an extra search path in your OpenClaw config:
memorySearch:
extraPaths:
- /path/to/chatgpt-memory.sqlite
Then restart the gateway:
openclaw gateway restart
api.openai.com for embedding. If your conversations contain secrets, consider filtering them out first or using a scoped API key.text-embedding-3-small.