Chat history can hold a prompt or reply you want to keep after a conversation ends. LM Studio can export a chat as a Markdown file you can read outside the app. The Markdown export opens the GNOME save dialog on Ubuntu, where choosing a folder can collapse the filename field to a pencil icon.

Markdown keeps the messages in editable text. The Export menu introduced in LM Studio 0.4.0 also lists PDF and a formatted prompt saved as a .txt file.

If you plan to continue the conversation in LM Studio or reuse its attachments, keep the original chat and any source files you still need.

Steps to export a chat from LM Studio:

  1. Open the three-dot menu beside the conversation you want to export in the Chats sidebar.
  2. Select Export from the chat menu.
  3. Select Export as Markdown (.md).
  4. Choose a local folder such as Documents in the save dialog.
  5. Click the pencil beside the filename if the field is collapsed.

    If the filename field is already open, you can go straight to editing.

  6. Replace the part of the filename before the existing .md suffix with an unused name such as banana-chat.

    After clicking the pencil in Documents, only the text before .md is selected.

  7. Click Save.
  8. Click Open File on the export confirmation.

    If the confirmation has closed, open the saved .md file from its folder in your text editor.

  9. Confirm the saved User and Assistant sections match the prompt and reply in the original chat.
Share this guide