[GH-ISSUE #3002] Disable Chat History/Logging Option #1844

Closed
opened 2026-04-12 11:54:12 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @trymeouteh on GitHub (Mar 8, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3002

Please add a setting to disable chat history/logging option and consider to have this disabled by default. This can increase privacy from preventing others to see what they asked the AI in the past.

Would especially be useful feature for Users and users management
https://github.com/ollama/ollama/issues/2863

Originally created by @trymeouteh on GitHub (Mar 8, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3002 Please add a setting to disable chat history/logging option and consider to have this disabled by default. This can increase privacy from preventing others to see what they asked the AI in the past. Would especially be useful feature for Users and users management https://github.com/ollama/ollama/issues/2863
GiteaMirror added the feature request label 2026-04-12 11:54:12 -05:00
Author
Owner

@easp commented on GitHub (Mar 8, 2024):

/set nohistory in the CLI. It doesn't persist across sessions, though.

<!-- gh-comment-id:1986078206 --> @easp commented on GitHub (Mar 8, 2024): `/set nohistory` in the CLI. It doesn't persist across sessions, though.
Author
Owner

@gunesacar commented on GitHub (Mar 20, 2024):

Please also consider disclosing in the README and the FAQ that Ollama keeps a history of your chats by default (e.g., in ~/.ollama/history on Linux). Many users turn to local models for privacy concerns and this (chat history enabled by default) may be a bitter surprise to many.

Regardless, thanks for your work and this awesome tool.

<!-- gh-comment-id:2009202400 --> @gunesacar commented on GitHub (Mar 20, 2024): Please also consider disclosing in the README and the FAQ that Ollama keeps a history of your chats by default (e.g., in `~/.ollama/history` on Linux). Many users turn to local models for privacy concerns and this (chat history enabled by default) may be a bitter surprise to many. Regardless, thanks for your work and this awesome tool.
Author
Owner

@glassbell commented on GitHub (Apr 4, 2024):

This workaround works for me (after deleting the history file with all of the warcrimes in it):

$ touch history
$ touch history.tmp
# chattr +i history
# chattr +i history.tmp

(yes, it also tries to write to the second file)
(also, I don't know how it does it, but if the i attribute is not set, ollama can recreate the file even if the owner is root and no permissions. Creepy)

<!-- gh-comment-id:2036182558 --> @glassbell commented on GitHub (Apr 4, 2024): This workaround works for me (after deleting the `history` file with all of the warcrimes in it): ```console $ touch history $ touch history.tmp # chattr +i history # chattr +i history.tmp ``` (yes, it also tries to write to the second file) (also, I don't know how it does it, but if the `i` attribute is not set, ollama can recreate the file even if the owner is root and no permissions. Creepy)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1844