r/coolgithubprojects • • 19m ago

GitHub - selsie/DeepSeek-Chat-Archive-Migrator: DeepSeek Chat Archive Migrator (with Image Hosting & Persona Continuity)

https://github.com/selsie/DeepSeek-Chat-Archive-Migrator

Free local Python toolkit to rescue & migrate large DeepSeek exports (600MB+ ZIPs, images & persona continuity)

With the recent restrictions on DeepSeek conversations, I wanted to rescue my own chat archive without uploading a ~600 MB export (60 MB of raw JSON alone) to some random web wrapper.

How to get your DeepSeek export first: Click your username in the bottom-left corner → Settings → Data → Export (DeepSeek will email you a download link for the ZIP archive).

Since Gemini doesn't natively support DeepSeek exports (only ChatGPT-formatted conversations.json imports)—and basic converters only dump plain text while losing branching, local attachments, and conversational context—I put together two lightweight, local Python scripts (standard library only, Python 3.9+) to bridge the gap:

  • ChatGPT-compatible Gemini import: Converts DeepSeek exports into the conversations.json format Gemini's native importer expects.
  • Tree-accurate reconstruction: Follows DeepSeek's parent_id message graph in exact chronological order.
  • Image preservation: Rewrites local relative attachment paths into hosted URLs so images don't break.
  • Persona & context continuity: Packs custom context framing so continuing long-running chats in Gemini feels seamless.
  • Human-readable archive: Also exports clean, individual JSON files per conversation if you just want a readable local backup.

Everything runs 100% locally on your machine with zero external pip packages. Hope it helps anyone else looking to back up or migrate their chats!

0 Upvotes

0 comments sorted by