返回顶部
c

chatgpt-import

Import ChatGPT conversation history into OpenClaw's memory search. Use when migrating from ChatGPT, giving OpenClaw access to old conversations, or building a searchable archive of past chats.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
714
下载量
2
收藏
概述
安装方式
版本历史

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](references/export-guide.md) to download your `conversations.json`. ### 2. Convert to Markdown ```bash 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 ```bash 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: ```yaml memorySearch: extraPaths: - /path/to/chatgpt-memory.sqlite ``` Then restart the gateway: ```bash openclaw gateway restart ``` ## Important Notes - **OpenAI API key required.** The embed script sends conversation text to `api.openai.com` for 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`.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 chatgpt-import-1776419964 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 chatgpt-import-1776419964 技能

通过命令行安装

skillhub install chatgpt-import-1776419964

下载 Zip 包

⬇ 下载 chatgpt-import v1.0.2

文件大小: 6.77 KB | 发布时间: 2026-4-17 20:09

v1.0.2 最新 2026-4-17 20:09
- Added "Important Notes" section detailing security and cost considerations for embedding conversations.
- Clarified that an OpenAI API key is required and shared advice on handling secrets and API key usage.
- Noted that the output database does not store your API key.
- Reminded users to back up prior to embedding; script refuses to overwrite existing databases.
- Provided an example cost for embeddings to help users estimate expenses.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部