Codex UI Customizer (Unofficial)Customize the OpenAI Codex UI in VS Code. Codex UI Customizer is a small, unofficial VS Code extension that applies visual customizations to the Codex chat interface. It supports both local VS Code sessions and Remote-SSH environments where the Codex extension runs on a remote extension host. The first available customization is styling for user message bubbles. The extension is intentionally structured so additional UI customization options can be added in future releases.
Features
Current CustomizationUser Message BubbleBy default, Codex UI Customizer applies:
Only user message bubbles are targeted. Codex responses are left unchanged. ConfigurationThe extension can be configured from VS Code Settings or directly in Default configuration:
Available Settings
Colors accept 3, 4, 6, or 8 digit hexadecimal values. Border width and corner
radius accept The
CommandsOpen the Command Palette with:
Available commands: Codex UI Customizer: ApplyApplies the current customization settings to the detected Codex CSS assets.
Codex UI Customizer: RemoveRemoves the injected customization and restores the original CSS backup when available.
Codex UI Customizer: Show TargetDisplays diagnostic information in the Output panel, including:
This command is especially useful when troubleshooting Remote-SSH environments. Remote-SSHCodex UI Customizer supports VS Code Remote-SSH. The important rule is:
For example, if:
shows the OpenAI Codex extension under:
then Codex UI Customizer must also be installed under:
The extension uses the VS Code API:
to locate the actual Codex installation. This means it does not depend on paths such as:
or on any specific Codex version. A typical Remote-SSH installation may internally look like:
but this path is discovered dynamically rather than hard-coded. How It WorksCodex UI Customizer currently patches internal WebView CSS files belonging to the installed OpenAI Codex extension. The extension:
Injected styles are wrapped with markers similar to:
These markers allow the extension to safely locate and remove its own changes. Backups and RestorationBefore modifying a Codex CSS file, Codex UI Customizer creates a backup alongside the original file. The backup is used by:
to restore the pre-customization CSS when possible. If a backup is unavailable, the extension falls back to removing only its own marked customization block. This avoids intentionally replacing unrelated Codex CSS rules. Uninstalling
Recommended uninstall sequence:
VS Code does not provide a reliable extension uninstall hook that can safely modify another installed extension's files during the uninstall operation. Because of this, uninstalling Codex UI Customizer without first running If You Already Uninstalled Without Running RemoveYou can recover by either:
or:
After Applying a CustomizationAn already-open Codex WebView may continue using previously loaded CSS. If a change does not appear immediately:
A full VS Code restart is normally not required. Codex UpdatesThe OpenAI Codex extension may update its internal WebView files at any time. Codex UI Customizer listens for extension changes and attempts to reapply the current customization automatically. You can also run:
manually after updating Codex. Because this extension relies on internal implementation details, a Codex update may occasionally change:
If that happens, Codex UI Customizer may temporarily stop working until compatibility is updated. CompatibilityThe current implementation expects the OpenAI Codex VS Code extension to expose: Extension ID
WebView CSS assets
User message attribute
These are internal implementation details and are not guaranteed public APIs. Privacy and SecurityCodex UI Customizer is intentionally small in scope. It:
The extension only reads and updates the Codex WebView CSS assets required to apply the configured visual customization. In VS Code Restricted Mode, workspace-defined Codex UI Customizer settings are disabled. Settings are also validated before being written to CSS so a workspace cannot use customization values to inject additional CSS rules. Why Does It Modify Another Extension?At the time of writing, the OpenAI Codex VS Code extension does not expose a public theming API for the user-message bubble. For example, VS Code's standard:
does not currently control the Codex user-message bubble. Because Codex renders its own WebView UI, Codex UI Customizer applies the style directly to Codex's internal CSS assets. This behavior is documented here intentionally so users can clearly understand what the extension changes. LimitationsCodex UI Customizer is based on Codex implementation details rather than a stable public UI API. As a result:
The extension aims to detect and handle these cases where practical. Installation From VSIXTo build the VSIX:
This produces a file similar to:
Install or update it with:
For Remote-SSH, install the VSIX on the remote extension host where Codex is running. DevelopmentThe extension intentionally has a minimal implementation. The core behavior is:
No WebView injection framework or additional runtime service is required. Future CustomizationsThe project is named Codex UI Customizer rather than after the current user-message feature so additional UI options can be added over time. Possible future customization areas include:
Future options should remain opt-in and configurable through the SupportReport bugs through the GitHub issue tracker. When reporting a problem, please include:
Do not include:
DisclaimerCodex UI Customizer is an independent, unofficial project. OpenAI, Codex, and related names may be trademarks of their respective owners. This project is not affiliated with or endorsed by OpenAI. LicenseMIT |