a browser frontend for codex desktop, running on a machine you control.
https://github.com/user-attachments/assets/0a33cbd8-741c-412c-9e75-46dfe9324596
the agents were never meant to stay trapped in a terminal window for long. codex desktop brought the power of agents to your local computer, where your files, credentials, and tools already live.
codex-web brings codex desktop to the browser while keeping the backend on a machine you control (a linux box in the cloud, your home lab, or a desktop / mac mini). agents keep running after your laptop closes. you can reconnect from any device with a browser.
this project aims to be as thin a wrapper as possible to ensure upstream changes to the codex desktop app can be integrated quickly.
codex-web serves the browser client and hosts the desktop-side bridge. by
default, it listens on 127.0.0.1:8214.
it will use codex from PATH if available, or CODEX_CLI_PATH if you set
it.
run it with npx:
npx --yes github:0xcaff/codex-web
or with nix:
nix run github:0xcaff/codex-web
then open http://127.0.0.1:8214 in a browser.
ensure the codex cli on the host machine is signed in before starting the server.
codex login --device-auth
it’s often useful to run the app server separately, so a crash or restart of codex-web doesn’t interrupt the codex process executing commands.
it's possible to hook codex-web up to an already-running app server using the
codex_remote_proxy script.
start a long-lived app server somewhere:
codex app-server --listen unix:///tmp/codex-app-server.sock
then run codex-web with the proxy helper:
nix shell github:0xcaff/codex-web github:0xcaff/codex-web#codex_remote_proxy -c bash -lc '
export CODEX_UNIX_SOCKET=/tmp/codex-app-server.sock
export CODEX_CLI_PATH="$(command -v codex_remote_proxy)"
codex-web
'
run codex-web only on trusted networks. treat anyone who can reach the
codex-web server as someone who can operate codex on the host machine as the
same user running the server.
if you need authn or authz, implement it outside of codex-web: proxy it through
wireguard, tailscale, or an ssh tunnel and put an authentication gateway or
reverse proxy in front.
someone with access to the web ui may be able to:
codex-web
server process.some parts of the desktop experience are not wired up yet:
if something is broken, missing, or rough around the edges, please file an issue.
using codex-web in an interesting way? post about it on x and tag me
@0xcaff.
using this at a company and need something more tailored? email me and we can talk.
codex-web exists and works
today. i can't wait for the mobile app but judging by the other openai mobile
apps, i'm a little bit skeptical about the quality of the mobile experience.
time will tell.$ claude mcp add codex-web \
-- python -m otcore.mcp_server <graph>