Skip to content

mxinO/Codex-Web-UI

Repository files navigation

Codex Web UI icon Codex Web UI

A lightweight browser interface for Codex CLI using codex app-server.

Requirements

  • Node.js 20+
  • Codex CLI authenticated on the host
  • Bash

Start

npm install
npm run build
npm start -- --host 127.0.0.1 --port 3001

Open the URL printed by the server. The default URL includes a random access token.

Install as a command

From a clone:

npm install
npm run install:global

Then start the UI from any workspace:

cd /path/to/project
codex-web-ui --host 0.0.0.0 --port 3001

You can also install directly from GitHub:

npm install -g https://github.com/mxinO/Codex-Web-UI/archive/refs/heads/main.tar.gz

To update an installed command:

codex-web-ui --update

That reruns the global install from the GitHub main tarball and exits without starting or restarting a server. To update from another package spec or tarball, use codex-web-ui --update --source <tarball-url-or-package-spec>.

The installed command serves the committed UI bundle from the package install directory, while new Codex sessions default to the directory where codex-web-ui is launched. Runtime state defaults to ${XDG_STATE_HOME:-~/.local/state}/codex-web-ui; override it with --state-dir <path> or CODEX_WEB_UI_STATE_DIR. When changing frontend code, run npm run build before committing so the installable bundle stays current.

Notes

  • The server owns one codex app-server process.
  • Browser disconnects do not stop Codex work while the Node server remains running.
  • Runtime state is namespaced by hostname for shared filesystems.
  • ! bash command output is browser-ephemeral and is not persisted by the server.

About

A web UI for codex

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages