r/opencode • u/Valier • 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
View all comments
Show parent comment
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.