Skip to content
Back to skills

Chatgpt Import

ASecurity

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.

  • 57 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 17, 2026
ai-agentspythonbashsqlapi

Works with

  • api

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill chatgpt-import --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Chatgpt Import?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Chatgpt Import
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-chatgpt-import/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-chatgpt-import)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: chatgpt-import
description: 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.
---

# 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`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.