Forked from promptpirate/chat-auto-exporter
An LM Studio plugin that automatically exports your chat conversations to .md (Markdown) files — perfect for building a searchable archive, feeding into RAG pipelines, or just keeping a tidy record of your LLM chats.
The plugin quietly watches your conversations in the background. Every time the total message count hits a threshold (default: 10 messages), it writes the entire chat to a Markdown file in a folder you choose.
Install directly from the LM Studio Hub:
Or install via the CLI:
.md files will be saved (e.g. D:\My Chat Exports)That's it! Start chatting and your conversations will be exported automatically.
Files are named with a sortable date prefix and a unique chat fingerprint:
Sorting by filename = chronological order. The fingerprint is derived from the first message in each chat, so the same conversation always maps to the same file.
Each exported file looks like:
Clone and run in dev mode:
The dev server watches for code changes and hot-reloads the plugin automatically.
UNLICENSED
lms install local/chat-auto-exporter
2026-05-03_1430_chat-a3f9b2c1.md
2026-05-03_1502_chat-f7e2d019.md
2026-05-04_0900_chat-a3f9b2c1.md ← same chat, updated content
# Chat Export
*Exported on: 2026-05-03 14:30:00*
*Messages: 10*
---
### 🧑 User
What is the meaning of life?
---
### 🤖 Assistant
That's a profound question...
---
cd chat-auto-exporter
npm install
lms dev
chat-auto-exporter/
├── manifest.json ← plugin metadata
├── package.json ← dependencies
├── tsconfig.json ← TypeScript config
└── src/
├── index.ts ← entry point (wires everything up)
├── config.ts ← settings UI schema (export folder + threshold)
└── promptPreprocessor.ts ← core logic (count, format, export)