Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AfterChat — LLM Chat Exporter

简体中文 | English

AfterChat is a free, open-source AI chat history exporter — a userscript that backs up your LLM conversations with one click.

Export chats from ChatGPT, Gemini, DeepSeek, GLM (Z.ai / ChatGLM) and 23 major AI platforms to Markdown, preserving reasoning / thinking and citation sources, for personal archive, migration and offline reading.

After installing the AfterChat client, you can also save the current conversation to your AfterChat workspace with one click.

🖥️ Supported Platforms

Platform Site
ChatGPT chatgpt.com
Google Gemini gemini.google.com
Google AI Studio aistudio.google.com
M365 Copilot m365.cloud.microsoft
Microsoft Copilot copilot.microsoft.com
Grok (xAI) x.com/i/grok
DeepSeek chat.deepseek.com
Qwen chat.qwen.ai
Kimi kimi.com
Qianwen qianwen.com
Tencent Yuanbao yuanbao.tencent.com
Tencent Hunyuan aistudio.tencent.com / aistudio.tencent.ai
MiniMax agent.minimax.io / agent.minimaxi.com
Mistral Le Chat chat.mistral.ai
Sakana AI chat.sakana.ai
Doubao doubao.com
Dola dola.com
Arena AI arena.ai
Tencent IMA ima.qq.com
Z.ai chat.z.ai
ChatGLM chatglm.cn
DuckDuckGo AI Chat duck.ai
Perplexity perplexity.ai

✨ Features

  • Multi-platform support: works with 23 major LLM platforms.
  • Single or batch export: exports the current conversation or all conversations at once.
  • Incremental export: on the list page, batch export skips conversations you've already downloaded (by update-time anchor) and only fetches new/updated ones — dramatically faster on repeat runs.
  • Content fidelity: exports include user messages, AI replies, reasoning / thinking, and citation sources.
  • One-click save to AfterChat: on a conversation detail page, right-click the button to save the current conversation directly to your AfterChat workspace.

📦 Installation

After installing Violentmonkey (Chrome / Firefox) or Tampermonkey (Chrome / Firefox), click the link below and confirm in the popup:

Install AfterChat — LLM Chat Exporter

🚀 Usage

The script shows a circular download button in the bottom-right corner of the page:

Action Where Result
Left-click Detail page Export the current conversation (Markdown)
Left-click Default/list page Incremental export: ZIP with only new/updated conversations (skips already-exported ones)
Shift + left-click Default/list page Force full export: ZIP with all conversations, ignoring the incremental anchor
Right-click Detail page Save the current conversation to the AfterChat workspace

⚠️ Disclaimer

  • This script pulls data through each platform's front-end same-origin API. These are unofficial interfaces and may stop working when platforms update.
  • Please follow each platform's terms of service. Exported content is intended for personal backup and learning only.
  • The script uses @grant none and sends no data to any third party; exported files are only saved locally.

📄 License

Licensed under the GNU Affero General Public License v3.0.

About

Exports chat history from major LLM platforms to Markdown files.

Resources

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages