Fixing Opencode Transparency in Ghostty Terminal

Fixing Opencode Transparency in Ghostty Terminal

How to make Opencode respect your terminal’s transparent background

July 18, 2025

Opencode with transparent Ghostty terminal

Opencode running with transparent background in Ghostty (click for full size)

If you’re using Opencode in Ghostty terminal and noticed that your beautiful transparent background disappears when Opencode launches, here’s the fix.

The Problem

Opencode’s TUI doesn’t honor Ghostty’s transparent background by default, making the Opencode part of your terminal opaque when the app runs.

The Solution

Configure Opencode to use its system theme, which adapts to your terminal’s native appearance including transparency.

Quick Fix

  1. Open your Opencode config:

  2. Set the theme to system:

  3. Save the file

  4. Restart Opencode

Now your Opencode will seamlessly blend with your terminal’s transparency settings.

Happy hacking!


Source link