transcript high
OpenCode stores sessions, messages, and parts in ~/.local/share/opencode/opencode.db.
Where it lives
- all
~/.local/share/opencode/opencode.db
What you can do
- Set OPENCODE_DATA_DIR to relocate the store, or prune old sessions.
Source: deepwiki.com
config with secrets high
OpenCode stores provider API keys and OAuth tokens in ~/.local/share/opencode/auth.json.
Where it lives
- all
~/.local/share/opencode/auth.json
What you can do
- Restrict permissions on the opencode data directory and keep it off cloud sync.
Source: opencode.ai
This describes where OpenCode stores data. Metadata only, never your content. Confidence: likely. Spot a mistake? Tell us.