codex-xremote is a lightweight browser UI for Codex app-server workflows. It starts a local HTTP/WebSocket bridge, serves a Vue frontend, and lets you use Codex from a desktop browser, a mobile browser, a LAN device, or a remote development box.
The project is useful when Codex is running somewhere other than the device where you want to interact with it: a Linux workstation, a Windows machine, a VPS, or Termux on Android.
npx codex-xremoteThen open the local URL printed by the command, usually:
http://localhost:5999
codex-xremote checks for the Codex CLI and starts codex login when local Codex auth is missing.
- Password protection is enabled by default.
- A random password is generated at startup and printed in the terminal.
- Use
--password <value>to set your own password. - Use
--no-passwordonly on a trusted local machine. --tunnelis enabled by default and startscloudflared tunnelwhen available.- Use
--no-tunnelwhen you only want local or LAN access.
If you expose the server through a tunnel, reverse proxy, or public network, keep password protection enabled.
npx codex-xremote --port 5999
npx codex-xremote --no-tunnel
npx codex-xremote --password "change-me"
npx codex-xremote login
npx codex-xremote helpnode -v
npx codex-xremoteNode.js 18 or newer is required.
Run from PowerShell:
node -v
npx codex-xremoteThe CLI resolves the Codex binary through the normal PATH and common npm install locations.
pkg update && pkg upgrade -y
pkg install nodejs -y
npx codex-xremoteKeep Termux running while the server is active. For longer sessions, disable battery optimization for Termux and consider running termux-wake-lock.
- Browser UI for Codex app-server workflows.
- HTTP/WebSocket bridge between the browser and Codex.
- Desktop and mobile layouts.
- Searchable project picker.
- Skills hub UI.
- Voice dictation into the composer when browser microphone permission is granted.
- Optional Cloudflare quick tunnel startup.
- Optional Android shell through Capacitor.
Browser
|
| HTTP/WebSocket
v
codex-xremote
|
| Codex app-server bridge
v
Codex CLI / app-server runtime
The CLI serves the built frontend from dist/ and the Node bridge from dist-cli/.
npm ci
npm run build
npm run test:smokeUseful scripts:
npm run dev
npm run build:frontend
npm run build:cli
npm run changelog:update
npm run changelog:checkBefore publishing a release:
- Run a full secret scan on the working tree and Git history.
- Run
npm audit --omit=dev. - Run
npm ci. - Run
npm run build. - Run
npm pack --dry-run. - Create a GitHub release from a clean tag.
- Publish to npm with
npm publish --access public.
This is an early public release. It is intended for developers already comfortable with Codex, local CLIs, tunnels, and browser-based development workflows.
MIT. See LICENSE.



