ChatGPT Import
/install chatgpt-import
ChatGPT History Import
Import your ChatGPT conversations into OpenClaw so they're searchable via memory search.
Workflow
1. Export from ChatGPT
Follow references/export-guide.md to download your conversations.json.
2. Convert to Markdown
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).
3. Embed into SQLite
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.
4. Configure OpenClaw
Add as an extra search path in your OpenClaw config:
memorySearch:
extraPaths:
- /path/to/chatgpt-memory.sqlite
Then restart the gateway:
openclaw gateway restart
Important Notes
- OpenAI API key required. The embed script sends conversation text to
api.openai.comfor embedding. If your conversations contain secrets, consider filtering them out first or using a scoped API key. - No key material stored. The generated DB does not store your API key.
- Back up first. The embed script will refuse to overwrite an existing output DB.
- Embeddings cost money — but it's cheap. ~2,400 conversations cost ~$0.15 with
text-embedding-3-small.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install chatgpt-import - 安装完成后,直接呼叫该 Skill 的名称或使用
/chatgpt-import触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
ChatGPT Import 是什么?
Import and embed ChatGPT conversation history into OpenClaw's memory search database for easy archival and retrieval of past chats. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 780 次。
如何安装 ChatGPT Import?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install chatgpt-import」即可一键安装,无需额外配置。
ChatGPT Import 是免费的吗?
是的,ChatGPT Import 完全免费(开源免费),可自由下载、安装和使用。
ChatGPT Import 支持哪些平台?
ChatGPT Import 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 ChatGPT Import?
由 samdickson22(@samdickson22)开发并维护,当前版本 v1.0.2。