Skip to main content

Module db

Module db 

Source

Structs§

Row

Constants§

PROVIDERS
Providers that belong to this tool. opencode-go is the Go subscription, opencode the Zen pay-as-you-go gateway.

Functions§

credential_key
The Go credential opencode itself is using.
default_path
Default store location: $OPENCODE_DB, else the XDG data dir.
opencode_home
opencode’s own directory: $XDG_DATA_HOME/opencode, else ~/.local/share/opencode. Holds the store — which carries the Go credential in v2’s credential table — and auth.json, the legacy v1 file.
read_rows
Every OpenCode-owned assistant row at or after since_ms, oldest first.