If you're using Opencode in Ghostty terminal and noticed that your beautiful transparent background disappears when Opencode launches, here's the fix.
Opencode's TUI doesn't honor Ghostty's transparent background by default, making the Opencode part of your terminal opaque when the app runs.
Configure Opencode to use its system
theme, which adapts to your terminal's native appearance including transparency.
Open your Opencode config:
nvim ~/.config/opencode/opencode.json
Set the theme to system
:
{
"$schema": "https://opencode.ai/config.json",
"theme": "system"
}
Save the file
Restart Opencode
Now your Opencode will seamlessly blend with your terminal's transparency settings.
Happy hacking!