Will deleting opencode delete the conversation files? Where are all the conversation files saved? I want to backup #6583

Open
opened 2026-02-16 18:04:40 -05:00 by yindo · 3 comments
Owner

Originally created by @RunMintOn on GitHub (Jan 17, 2026).

Originally assigned to: @jayair on GitHub.

Question

Will deleting opencode delete the conversation files? Where are all the conversation files saved? I want to backup

Originally created by @RunMintOn on GitHub (Jan 17, 2026). Originally assigned to: @jayair on GitHub. ### Question Will deleting opencode delete the conversation files? Where are all the conversation files saved? I want to backup
yindo added the docs label 2026-02-16 18:04:40 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 17, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #4980: Does OpenCode automatically clean up old session/conversation data?
  • #5099: Documentation on sessions
  • #5238: Where is the opencode auth.json stored when installed by brew on Linux?
  • #4526: [FEATURE]: Full portable mode
  • #5734: [FEATURE]: Subagent sessions accumulate without cleanup option - causes storage bloat and UI clutter
  • #6156: Opencode doesn't know the location of its config file
  • #6669: Docs miss mentioning XDG base directories for global configuration while already supporting them
  • #8235: [BUG] Config and Data directories follow the Linux XDG standard even on windows
  • #8968: [FEATURE]: Support OPENCODE_CACHE_DIR and OPENCODE_LOG_DIR for full isolation
  • #3274: Can I get an easily human readable log file with plain text that just shows the whole conversation?
  • #8083: [FEATURE]: good way to manage stored data
  • #8749: [BUG] tmp_pack Files Consuming 180GB on Ubuntu 24.04 LTS
  • #7607: If disk space runs out your active session becomes corrupted

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 17, 2026): This issue might be a duplicate of existing issues. Please check: - #4980: Does OpenCode automatically clean up old session/conversation data? - #5099: Documentation on sessions - #5238: Where is the opencode auth.json stored when installed by brew on Linux? - #4526: [FEATURE]: Full portable mode - #5734: [FEATURE]: Subagent sessions accumulate without cleanup option - causes storage bloat and UI clutter - #6156: Opencode doesn't know the location of its config file - #6669: Docs miss mentioning XDG base directories for global configuration while already supporting them - #8235: [BUG] Config and Data directories follow the Linux XDG standard even on windows - #8968: [FEATURE]: Support OPENCODE_CACHE_DIR and OPENCODE_LOG_DIR for full isolation - #3274: Can I get an easily human readable log file with plain text that just shows the whole conversation? - #8083: [FEATURE]: good way to manage stored data - #8749: [BUG] tmp_pack Files Consuming 180GB on Ubuntu 24.04 LTS - #7607: If disk space runs out your active session becomes corrupted Feel free to ignore if none of these address your specific case.
Author
Owner

@cravenceiling commented on GitHub (Jan 17, 2026):

I'm not sure about your first question, for second one, I think it's here: ~/.local/share/opencode/storage/.

This might help:

@cravenceiling commented on GitHub (Jan 17, 2026): I'm not sure about your first question, for second one, I think it's here: `~/.local/share/opencode/storage/`. This might help: - https://opencode.ai/docs/troubleshooting/#storage - https://opencode.ai/docs/cli/#uninstall
Author
Owner

@RunMintOn commented on GitHub (Jan 17, 2026):

thanks bro,before ur reply i have spent lots of time feeding docs to ai for answer and finally i replace and restore it successfully. it rather hard and difficult for a biginer. : _ )

@RunMintOn commented on GitHub (Jan 17, 2026): thanks bro,before ur reply i have spent lots of time feeding docs to ai for answer and finally i replace and restore it successfully. it rather hard and difficult for a biginer. : _ )
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6583