[GH-ISSUE #4737] [FEAT]: import chats from chatgpt (converstations.json), gemini etc. #2994

Closed
opened 2026-02-22 18:32:10 -05:00 by yindo · 10 comments
Owner

Originally created by @furllmm on GitHub (Dec 8, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4737

What would you like to see?

I want AnythingLLM Desktop to support importing external chat histories and to store chats inside the local SQLite database (threads + messages tables). This allows importing ChatGPT conversation exports directly into AnythingLLM as real chat threads.

Originally created by @furllmm on GitHub (Dec 8, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4737 ### What would you like to see? I want AnythingLLM Desktop to support importing external chat histories and to store chats inside the local SQLite database (threads + messages tables). This allows importing ChatGPT conversation exports directly into AnythingLLM as real chat threads.
yindo added the enhancementfeature request labels 2026-02-22 18:32:10 -05:00
yindo closed this issue 2026-02-22 18:32:11 -05:00
Author
Owner

@timothycarambat commented on GitHub (Dec 9, 2025):

Is it even possible to export chats from ChatGPT or Gemini? Last time we ever investigated such a function that did not exist. I just checked Gemini and I cannot export a thread.

@timothycarambat commented on GitHub (Dec 9, 2025): Is it even possible to export chats from ChatGPT or Gemini? Last time we ever investigated such a function that did not exist. I just checked Gemini and I cannot export a thread.
Author
Owner

@furllmm commented on GitHub (Dec 10, 2025):

yes.. you can export chats in chatgpt.... https://help.openai.com/en/articles/7260999-how-do-i-export-my-chatgpt-history-and-data and you will get email and zip inside email download that and you will get converstations.json inside root of zip like this

Image

@timothycarambat

@furllmm commented on GitHub (Dec 10, 2025): yes.. you can export chats in chatgpt.... https://help.openai.com/en/articles/7260999-how-do-i-export-my-chatgpt-history-and-data and you will get email and zip inside email download that and you will get converstations.json inside root of zip like this <img width="1037" height="717" alt="Image" src="https://github.com/user-attachments/assets/44759175-ef3b-4fba-8cca-015a21e885f8" /> @timothycarambat
Author
Owner

@furllmm commented on GitHub (Dec 10, 2025):

Sign in to ChatGPT.

In the top right corner of the page click on your profile icon.

Click Settings.

Click Data Controls menu.

Under Export Data click Export.

In the confirmation screen click Confirm export.

You should receive an email with your data.Note: The link in the email expires after 24 hours

Click Download data export to download a .zip file will be downloaded including your chat history in chat.html as well as your other data on file with us

@furllmm commented on GitHub (Dec 10, 2025): Sign in to [ChatGPT](https://chat.openai.com/). In the top right corner of the page click on your profile icon. Click Settings. Click Data Controls menu. Under Export Data click Export. In the confirmation screen click Confirm export. You should receive an email with your data.Note: The link in the email expires after 24 hours Click Download data export to download a .zip file will be downloaded including your chat history in chat.html as well as your other data on file with us
Author
Owner

@furllmm commented on GitHub (Dec 10, 2025):

in gemini go to google takeout for it

@furllmm commented on GitHub (Dec 10, 2025): in gemini go to google takeout for it
Author
Owner

@alandooz commented on GitHub (Feb 21, 2026):

@timothycarambat it's possible to reopen this ticket again? It'd be really good to have this feature as it allows much better migration from ChatGPT

@alandooz commented on GitHub (Feb 21, 2026): @timothycarambat it's possible to reopen this ticket again? It'd be really good to have this feature as it allows much better migration from ChatGPT
yindo changed title from [FEAT]: import chats from chatgpt (converstations.json), gemini etc. to [GH-ISSUE #4737] [FEAT]: import chats from chatgpt (converstations.json), gemini etc. 2026-06-05 14:49:43 -04:00
Author
Owner

@balupton commented on GitHub (Mar 30, 2026):

yeah, I'd really love to bring my chats verbatim with me from claude (allows export via settings, not sure what the format is), typingmind (json export), and openai (json export)

I looked to see if the anythingllm api enabled injecting chat histories, but nope, only allowing posting new chat prompts

perhaps the database could be modified directly via an external tool while anythingllm is not running

<!-- gh-comment-id:4153780041 --> @balupton commented on GitHub (Mar 30, 2026): yeah, I'd really love to bring my chats verbatim with me from claude (allows export via settings, not sure what the format is), typingmind (json export), and openai (json export) I looked to see if the anythingllm api enabled injecting chat histories, but nope, only allowing posting new chat prompts perhaps the database could be modified directly via an external tool while anythingllm is not running
Author
Owner

@evrencosta-creator commented on GitHub (Mar 30, 2026):

Thanks for the suggestion! Importing chats from other platforms is
something we can definitely explore.

On Mon, Mar 30, 2026, 5:02 AM Benjamin Lupton @.***>
wrote:

balupton left a comment (Mintplex-Labs/anything-llm#4737)
https://github.com/Mintplex-Labs/anything-llm/issues/4737#issuecomment-4153780041

yeah, I'd really love to bring my chats verbatim with me from claude,
typingmind (json export), and openai (json export)


Reply to this email directly, view it on GitHub
https://github.com/Mintplex-Labs/anything-llm/issues/4737?email_source=notifications&email_token=CAXJIUWP33XIJNR6C7CRZ7D4TJAZTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJVGM3TQMBQGQY2M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-4153780041,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/CAXJIUWVTX3N6L4VQB6QAC34TJAZTAVCNFSM6AAAAACOMQ4IJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCNJTG44DAMBUGE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

<!-- gh-comment-id:4153957490 --> @evrencosta-creator commented on GitHub (Mar 30, 2026): Thanks for the suggestion! Importing chats from other platforms is something we can definitely explore. On Mon, Mar 30, 2026, 5:02 AM Benjamin Lupton ***@***.***> wrote: > *balupton* left a comment (Mintplex-Labs/anything-llm#4737) > <https://github.com/Mintplex-Labs/anything-llm/issues/4737#issuecomment-4153780041> > > yeah, I'd really love to bring my chats verbatim with me from claude, > typingmind (json export), and openai (json export) > > — > Reply to this email directly, view it on GitHub > <https://github.com/Mintplex-Labs/anything-llm/issues/4737?email_source=notifications&email_token=CAXJIUWP33XIJNR6C7CRZ7D4TJAZTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJVGM3TQMBQGQY2M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-4153780041>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/CAXJIUWVTX3N6L4VQB6QAC34TJAZTAVCNFSM6AAAAACOMQ4IJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCNJTG44DAMBUGE> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Author
Owner

@balupton commented on GitHub (Mar 30, 2026):

I've used github copilot to write a script that injects my typingmind chats into the sqlite database, and it works more or less, but got rate limited. I'll post back once I have something more concrete.

Update: got it working. Now updating the script to import chatgpt as well.

I imagine claude will be more difficult due to claude having artifacts.

<!-- gh-comment-id:4154087364 --> @balupton commented on GitHub (Mar 30, 2026): I've used github copilot to write a script that injects my typingmind chats into the sqlite database, and it works more or less, but got rate limited. I'll post back once I have something more concrete. Update: got it working. Now updating the script to import chatgpt as well. I imagine claude will be more difficult due to claude having artifacts.
Author
Owner

@balupton commented on GitHub (Mar 31, 2026):

TypingMind imports finished. However OpenAI have a significant delay for their data exports… will be a several days apparently until the export is done. I'm going to work on the claude import now.

<!-- gh-comment-id:4160577902 --> @balupton commented on GitHub (Mar 31, 2026): TypingMind imports finished. However OpenAI have a significant delay for their data exports… will be a several days apparently until the export is done. I'm going to work on the claude import now.
Author
Owner

@timothycarambat commented on GitHub (May 1, 2026):

#5564

<!-- gh-comment-id:4361075975 --> @timothycarambat commented on GitHub (May 1, 2026): #5564
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2994