[GH-ISSUE #6124] Do not generate a history #29585

Closed
opened 2026-04-22 08:34:45 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ghost on GitHub (Aug 1, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6124

I would like to request that history can be disabled, as it can be undesirable to write sensitive data to disk for no reason.

I would like to point out that ollama is a bit aggressive about it, the usual tricks like turning it into a symbolic link, giving ownership to root or removing all permissions didn't work :-/

Originally created by @ghost on GitHub (Aug 1, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6124 I would like to request that history can be disabled, as it can be undesirable to write sensitive data to disk for no reason. I would like to point out that ollama is a bit aggressive about it, the usual tricks like turning it into a symbolic link, giving ownership to root or removing all permissions didn't work :-/
GiteaMirror added the feature request label 2026-04-22 08:34:45 -05:00
Author
Owner

@mxyng commented on GitHub (Aug 1, 2024):

OLLAMA_NOHISTORY disables readline history. You can set it in your ~/.bashrc or equivalent for persistence or invoke one time with OLLAMA_NOHISTORY=1 ollama run <model>

<!-- gh-comment-id:2263466526 --> @mxyng commented on GitHub (Aug 1, 2024): `OLLAMA_NOHISTORY` disables readline history. You can set it in your `~/.bashrc` or equivalent for persistence or invoke one time with `OLLAMA_NOHISTORY=1 ollama run <model>`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#29585