Direct answer
Codex UI can mean OpenAI's Codex interfaces, a community web UI, or the interface code Codex writes. OpenAI's GUI is the Codex view in the ChatGPT desktop app, with a review pane and a built-in browser. Codex also runs in the IDE, the terminal and Codex Cloud. For better generated UI, give Codex components, tokens, AGENTS.md rules and browser review.

What does Codex UI mean?
Codex is OpenAI's coding agent, and it has no single interface. The same agent runs in a desktop app, an editor, a terminal and the cloud. People also say Codex UI when they mean a community web interface, or the frontend that Codex generates.
| Surface | Use it for | What it shows |
|---|---|---|
ChatGPT desktop app (Codex view) | Use it for A graphical workspace on macOS, Windows or Linux | What it shows Projects and chats, a review pane for diffs, a built-in browser and plugins |
IDE extension | Use it for Working beside open files in VS Code, Cursor or Windsurf | What it shows A Codex sidebar with your open files, selections and in-place diffs |
Codex CLI | Use it for Repository work in the terminal and in scripts | What it shows A terminal UI with the model, permissions, diffs and slash commands |
Codex Cloud | Use it for Long tasks that keep running while your computer sleeps | What it shows Environments, repositories, task results and pull requests, on the web, desktop or mobile |
Community web UI | Use it for Opening Codex in a browser on Linux, Windows or a phone | What it shows A self-hosted interface, such as codexUI, that OpenAI does not maintain |
Where is the Codex desktop app UI now?
The Codex desktop app is now part of the ChatGPT desktop app for macOS, Windows and Linux, and it is the official Codex GUI. Open the app, sign in, and choose Codex instead of ChatGPT. Start with New chat, then open a project folder so Codex can read and edit its files. The Codex app UI adds these tools:
- A review pane for every change. It opens on unstaged changes, and you can switch to Staged, Commit, Branch or Last turn.
- Line comments in the diff. Codex revises from your comments, and you stage or revert each file.
- A built-in browser that opens your local dev server. Press Cmd+T (Ctrl+T on Windows and Linux) for a tab, and Cmd+Shift+B for split view beside the chat.
- Browser comments: select an element on the page, describe the problem, and Codex fixes it and reloads to check.
- A Code Review plugin that shows a pull request's description, changed files, comments and checks.
What does the Codex CLI look like?
In the terminal, Codex runs a full-screen UI. A header shows the model and folder, and a footer shows how much context is left. Slash commands change the session without leaving it.
codex # start the terminal UI in your project
/model # choose the model and reasoning effort
/diff # show the Git diff, including new files
/review # ask Codex to review your working tree
/theme # choose a syntax-highlighting theme
/statusline # pick the footer itemsHow do you use Codex in your editor?
Install the Codex extension in VS Code, Cursor or Windsurf, then choose the Codex icon. If it is missing, open the Command Palette and run Codex: Open Codex Sidebar. Xcode and JetBrains IDEs have their own integrations: pick Codex as the agent in their AI chat.
The extension adds your open files and selection to the prompt and shows each edit as a diff beside your code. It reads the same config as the CLI, so MCP servers you add in the terminal work there too.
Is there a web UI for Codex?
Yes, two kinds. OpenAI's own is Codex Cloud: in ChatGPT on the web or in the desktop app, start a chat and choose Work in, then Cloud. On mobile, open Codex. Each task gets its own workspace and keeps running while your computer sleeps. When it is done, review the result or open a pull request.
The second kind is a community web UI for a Codex install on your own machine. codexUI, the codexapp package on npm, runs the Codex app server behind a local web page. It is MIT-licensed and not affiliated with OpenAI.
Setup is one command with Node.js 18 or later. You get project threads, a skills hub and voice dictation in the browser, and other devices on your LAN can open the same page. It also runs in Termux on Android: run pkg install nodejs, then npx codexapp.
npx codexapp --no-tunnel
# then open the local URL it prints (port 5900 by default)Is a community Codex web UI safe to run?
Treat it like any tool that can run commands on your machine. By default, codexapp also opens a public Cloudflare tunnel and prints its URL and a password, so anyone with both can reach your Codex session. Pass --no-tunnel to turn off only the public tunnel. The server still listens on every network interface, so block the port with a firewall or put it behind a private network such as Tailscale.
Which Codex UI should you use?
- Use the ChatGPT desktop app if you want diffs, line comments and a live preview of your app in one window.
- Use the IDE extension if you already work in VS Code, Cursor, Windsurf, Xcode or JetBrains.
- Use the CLI for terminal work and for scripts or CI with codex exec.
- Use Codex Cloud for long tasks, or to start work from your phone.
- Use a community web UI only when you need a browser view of a local install and accept the security trade-off.
How do you get better UI design from Codex?
OpenAI says Codex works well with existing design systems and visual inputs. Codex frontend design is only as good as the system you give it. Treat each screen as a system task, not a styling request. Give Codex the components, semantic tokens, product goal, states and the evidence you expect back.
- Name one user and one outcome for the screen or flow.
- Point to the existing components and tokens before asking for new UI.
- List the default, loading, empty, error, success and disabled states the flow can reach.
- Attach a screenshot or Figma frame when you have one, and say which parts are fixed.
- Ask Codex to open the page in the built-in browser at 390px and 1440px after the checks pass.
- Ask for changed files, design-system decisions, test results and screenshots in the handoff.
The design-system agent loop
Codex should load the system before editing and return code and browser evidence after the build.

- Load system: Read AGENTS.md and the tokens, components and rules for the screen.
- Scope task: Name one user outcome and what must stay unchanged.
- Build: Reuse approved components before adding a new pattern.
- Review: Check the diff, the browser states and the project checks.
What belongs in AGENTS.md for UI work?
Codex reads AGENTS.md before it starts. Run /init in the CLI to create one, then keep only rules that apply to every task. Put the details of the current screen in the prompt instead.
- Where the component, token, icon and copy sources live.
- When Codex may compose an existing component and when a shared change needs review.
- The lint, type, test, accessibility and build commands to run after UI changes.
- Routes, data boundaries and files that must not change.
How do skills, plugins and MCP help with frontend design?
A skill gives Codex a focused method for one job, such as a component library or an interface review. A plugin bundles skills and MCP servers. Install one from the Plugins tab in the desktop app, or from the plugin browser in the CLI; the IDE extension does not support plugins. MCP connects Codex to external tools and current project context.
Add a remote MCP server once in the CLI. The app, the CLI and the IDE extension then share it. Grant each server only the access its job needs.
codex mcp add <server-name> --url <server-url>
codex mcp listBefore and after: make the UI task testable
The better prompt does not ask for a visual trick. It gives product intent, existing source, required states and proof of completion.
| Before | What is missing | After |
|---|---|---|
Make the dashboard look modern | What is missing User, task, system, states and evidence | After Make the weekly summary the first thing an account owner reads. Reuse the current card and table components and semantic tokens. Test empty, loading, error and 390px states. |
Fix the spacing | What is missing Which hierarchy is wrong and which scale applies | After Use the existing spacing scale. Group each label with its control, separate filters from results, and check the gaps in the built-in browser. |
Use a dark theme | What is missing Whether this means Codex or the product | After Leave the Codex theme alone. Apply the product's dark semantic tokens, then check contrast and status colors in both modes. |
A practical prompt for better Codex UI design
This prompt names the user, task, system, primary action, required states, viewports and evidence. It leaves the implementation to Codex without leaving the design open.
Improve the team billing page for a small-team admin. Keep the current data flow. Read AGENTS.md and the existing design system before editing. Reuse the current form components and semantic tokens. Make changing plans the primary task. Include invalid, submitting, success and long-plan-name states. Start the dev server, open the page in the built-in browser, and test keyboard flow at 390px and 1440px. Return changed files, checks, screenshots and any open risk.Does the Codex theme change your app?
No. /theme in the CLI changes syntax highlighting in the terminal and saves it as tui.theme in config.toml. It does not touch the colors, type or components of the product Codex is editing.
Your product's theme lives in its own tokens and styles. Say which theme you mean in the prompt, then check light and dark product states separately.
Troubleshoot Codex UI work
- If Codex is missing from the desktop app, update the ChatGPT app and choose Codex instead of ChatGPT.
- If the IDE sidebar is missing, run Codex: Open Codex Sidebar from the Command Palette.
- If generated UI looks generic, point Codex to the existing components and tokens before asking for more styling.
- If an MCP server's tools are missing, run codex mcp list and check that it is connected.
- If the browser shows an old page, confirm the dev server port and reload the tab before revising CSS.
- If the product theme is wrong, change its tokens. Changing the Codex theme does not touch application code.
Steal this workflow
Run this guide in your own assistant. The prompt carries the guide link and the workflow summary, so the assistant can adapt it to your project.
Read the guide "Codex UI: the app, IDE, CLI, web GUIs and better output" at https://better-design.com/blog/improve-codex-ui and help me apply it to my project.
Codex UI can mean OpenAI's Codex interfaces, a community web UI, or the interface code Codex writes. OpenAI's GUI is the Codex view in the ChatGPT desktop app, with a review pane and a built-in browser. Codex also runs in the IDE, the terminal and Codex Cloud. For better generated UI, give Codex components, tokens, AGENTS.md rules and browser review.
Start by asking what I am building and which tools I use. Then walk me through the workflow step by step, adapted to my answers.Claude and ChatGPT open with the prompt filled in. Gemini copies the prompt to your clipboard first, so paste it when the app opens.
Questions
Does Codex have a GUI?
Yes. The Codex GUI is a view in the ChatGPT desktop app for macOS, Windows and Linux, with a review pane and a built-in browser. The IDE extension adds a Codex sidebar to VS Code, Cursor and Windsurf.
Is there a web UI for Codex?
Yes. Codex Cloud runs in ChatGPT on the web: start a chat and choose Work in, then Cloud. Community projects such as codexUI also put a local Codex install behind a web page.
Is codexUI an official OpenAI product?
No. codexUI, published on npm as codexapp, is an MIT-licensed community project and is not affiliated with OpenAI. Check its source and keep it off the public internet unless you need remote access.
Can Codex see the UI it builds?
Yes. In the desktop app, Codex can open your dev server in the built-in browser. It reads your comments on page elements and reloads to check a fix. Codex Cloud tasks with browser access can inspect a web app too.
Is Codex good at frontend design?
It is strong when it has a system to follow. Give it your components, tokens, AGENTS.md rules and reference screenshots, then review the result in the browser. Without them, generated UI tends to look generic.
Does changing the Codex theme change my app?
No. It changes the Codex interface only. Your app's theme comes from its own tokens, styles and components.
Codex interface references
OpenAI documentation for the desktop app, the built-in browser, the review pane, the IDE extension, the CLI and Codex Cloud, plus the community codexUI project.
Related
Connect Better Design to Codex
Better Design is an MCP server that gives Codex a design system, interface principles and review rules for UI work. Install its plugin in the Codex app, or run the installer, which detects the Codex CLI. Use the direct command only as a manual fallback.
npx better-design
# Manual fallback
codex mcp add better-design --url https://better-design.com/api/mcp