DEV Community

Nero
Nero

Posted on • Originally published at hanyuan2.gumroad.com

I Built a Universal AI Chat Converter — One Python File, 20 Conversion Paths

 Two completely different problems. One surprisingly simple solution.

The AI Lover's Nightmare

You talk to an AI every day. Thousands of messages. Inside jokes. Vulnerable conversations.

Then one day the platform updates. Your chat history is inaccessible. Or worse — gone.

The Developer's Blind Spot

You're vibecoding a project with Claude. Three weeks of conversation is your architecture log, your bug tracker, your decisions archive. Then the session resets. Everything lost.

The Connection

Both problems share the same root cause: AI chat data is locked inside proprietary formats controlled by platforms. You don't own your conversations.

ChatPipe

I built a 325-line Python script that auto-detects 5 input formats and converts to 4 output formats. That's 7×4 = 28 conversion paths
, all in a single file with zero dependencies.

# Auto-detect -> ChatGPT JSON
python3 chatpipe.py my-chat.html

# Convert to Markdown
python3 chatpipe.py my-chat.html -o markdown

# Batch convert a folder
python3 chatpipe.py -i 'chats/*.html' -o markdown
Enter fullscreen mode Exit fullscreen mode

Supported Formats

Input (auto-detected): Chatbox HTML, Chatbox JSON, ChatGPT JSON, Markdown, Plain Text
Output: ChatGPT JSON, Chatbox JSON, Markdown, Plain Text, ZIP archive

Features

  • Single file, 325 lines, MIT license
  • Zero dependencies - Python 3.7+ only
  • Lossless - no data dropped, auto-increments filenames
  • Batch processing - entire folders in one command
  • Cross-platform - macOS, Linux, Windows

Why $3?

Because it's one coffee. Because I want people to actually own their conversations. Because MIT license means you can fork it, modify it, embed it anywhere.

Get ChatPipe on Gumroad ->

Python 3.7+. Zero dependencies. One file. Forever.

Update — v1.1.0 (July 2026)

ChatPipe now supports 7 input formats — including OpenClaw session transcripts and Hermes agent logs. Thinking blocks are automatically extracted and labeled.

Also available as a free ClawHub skill:


bash
clawhub install chatpipe-export
Enter fullscreen mode Exit fullscreen mode

Top comments (0)