Guides · DexThemes
Move a Codex Theme to Another Computer
Save the complete codex-theme-v1 string for each variant, transfer it as plain text, install any required fonts, then import each string from Codex Appearance on the new computer.
Move a Codex app theme by carrying its import string, not by copying an entire Codex configuration directory. Save one complete codex-theme-v1: value for dark and another for light, transfer them as plain text, and approve each import on the destination computer.
This approach avoids moving unrelated application settings and gives you an artifact you can inspect before importing.
Export a portable copy
If the theme is in DexThemes:
- Open the theme or your builder draft.
- Select the dark variant.
- Copy the complete import string and paste it into a UTF-8 plain-text file.
- Repeat for the light variant if one exists.
- Label each value with the theme name, variant, and export date.
- Confirm that every value begins with
codex-theme-v1:and contains one complete JSON object.
If the theme is public, also save its canonical DexThemes page URL. Keep the import string anyway: a durable local copy protects you from a later catalog rename, removal, or network outage.
OpenAI's official Codex settings documentation says Appearance can share custom themes with friends. You can use the sharing control in your installed app when it gives you a portable theme artifact, but verify the result before depending on it.
Do not rely on a builder draft
The current DexThemes builder saves draft state in the browser's local storage. That is helpful when returning in the same browser, but it is not a portable backup and should not be assumed to sync to another computer.
Export the actual import string before wiping a browser profile, changing computers, or resetting site data. A screenshot preserves the look but cannot be imported.
Transfer the file safely
The theme string is appearance data, but good transfer hygiene still prevents corruption:
- Use a trusted encrypted sync service, local network transfer, removable drive, or direct message.
- Keep the file as plain text.
- Avoid rich-text editors that substitute smart quotes.
- Do not put the payload inside a shell command.
- Do not append credentials, private repository details, or account data.
- Compare the beginning and end of the value after transfer.
The string may wrap visually across lines in an editor. What matters is that no characters were removed or replaced.
Install required fonts separately
A theme payload can name a UI font and a code font, but it does not contain font binaries or a license. Before importing:
- Inspect
theme.fonts.codeandtheme.fonts.ui. - Install properly licensed copies of any required fonts for the destination user.
- If a font is unavailable, choose an acceptable fallback in Codex Appearance.
- Test glyph coverage, code alignment, and interface readability.
Operating systems can use different family names or render the same font differently. See Change Codex UI and code fonts.
Import on the destination computer
- Open Codex Settings.
- Choose Appearance.
- Choose Import theme or the variant-specific import control.
- Paste the complete dark string.
- Review and approve the import.
- Repeat with the light string.
- Switch between light and dark appearance modes.
- Inspect prose, code, diffs, skills, selections, and focus states.
DexThemes can open general Settings on supported desktop flows, but the portable process does not depend on that link. Opening Codex yourself is equally valid.
Expect version differences
The destination computer may run a different Codex build. A string that worked on the source computer can fail or render differently if:
- The registered code-theme families changed.
- The destination does not support that import behavior.
- A requested font is missing.
- Operating-system rendering differs.
- Codex changed how it interprets an appearance field.
Record the Codex versions on both machines if consistent rendering matters. Passing DexThemes validation proves the string matches the project's current contract, not that every Codex release accepts it.
Keep app and CLI artifacts separate
A codex-theme-v1: string moves a desktop Appearance theme. It does not move the Codex CLI syntax theme.
For the CLI, record the /theme picker choice or transfer the custom .tmTheme file from $CODEX_HOME/themes. The official CLI customization guide documents that separate workflow.
Do not copy an entire $CODEX_HOME just to move a theme. It can contain configuration unrelated to appearance. Move only the specific CLI .tmTheme file you authored and inspect.
Verify and keep a fallback
After migration:
- Confirm both variants are present.
- Check actual working content rather than only the settings preview.
- Verify fonts and semantic colors.
- Keep the transferred text file until both imports are stable.
- Know how to restore a built-in theme from Appearance.
If the destination rejects the string, recopy it from the source, check the format reference, and follow import troubleshooting.
DexThemes is community-built and is not affiliated with OpenAI. The import artifact is portable by design, but Codex compatibility remains controlled by the installed app.