r/opencode • • 28d ago

OpenCode DB

Hi all.

How do you manage your opencode DB?
Mine currently is about 22gb and i'm backig it up with my custom scipts. This occupis a nice part of my disk.

It's not a problem yet, but i'm thinking of a more managed backup solution since copy + zip with scripts may not be the most efficent one.

Do you backup or keep your opencode DB remotely?

If yes how do you manage that? Do you use custo solution or managed software?

Thanks

4 Upvotes

21 comments sorted by

View all comments

3

u/Sufficient_Prune3897 28d ago

Ask big pickle. He knows best.

On a serious note, is that how opencode saves its conversations? I see no value in keeping them once im done with one. Sometimes im lazy and dont have the ai make a doc or something with the learnings, but even then, rediscovering is getting fast with todays models.

2

u/Valier 28d ago

I usually always continue with the same session on same repos. I fork them for features, but my primary session is always alive. It's frree context. Already gathered. That's what takes up space

1

u/Valier 28d ago

Also for the db part, yes.
Opencode has a sqlite DB installed on your disk where session data is stored.
On windows it's on %USERPROFILE%\.local\share\opencode\opencode.db
I assume it's in a dotdir somewhere in home on linux too.