Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyCodex

MyCodex is an MVP launcher for the Microsoft Store ChatGPT app on Windows. The Store package is still named OpenAI.Codex; MyCodex starts its packaged ChatGPT app with Chromium proxy flags and per-process proxy environment variables.

Scope

  • Launches the installed Store package app\ChatGPT.exe directly.
  • Adds --proxy-server=http://127.0.0.1:7897 by default.
  • Sets HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, and NO_PROXY only on the launched ChatGPT process.
  • Waits for the Codex resources\codex.exe app-server child process and verifies that it inherited the proxy environment variables.
  • Refuses to launch over an already running ChatGPT.exe by default, because startup flags only reliably apply to a fresh process.

Usage

Build:

cargo build

Build a release executable:

cargo build --release

Install for the current user:

.\target\release\mycodex.exe install

This copies the running executable to:

%LOCALAPPDATA%\MyCodex\MyCodex.exe

It also creates a current-user Start Menu shortcut:

%APPDATA%\Microsoft\Windows\Start Menu\Programs\MyCodex.lnk

The shortcut launches MyCodex.exe launch and uses the Microsoft Store app\ChatGPT.exe icon. Running install again overwrites the installed executable, refreshes the shortcut, and removes the legacy Codex++.lnk shortcut if present.

Preview the direct launch command without launching ChatGPT:

cargo run -- launch --dry-run

Launch with the default local proxy:

cargo run -- launch

Launch with a custom proxy:

cargo run -- launch --proxy http://127.0.0.1:7890

Launch a specific ChatGPT executable directly:

cargo run -- launch --chatgpt-exe "C:\Program Files\WindowsApps\OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g0\app\ChatGPT.exe"

The legacy option name --codex-exe remains available as an alias.

Launch without proxy environment variables, keeping only Chromium --proxy-server:

cargo run -- launch --no-env

In direct mode this also removes inherited HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY, and their lowercase variants from the launched process.

Launch without checking whether app-server inherited proxy environment variables:

cargo run -- launch --no-env-check

Enable remote debugging for inspection:

cargo run -- launch --remote-debugging-port 9229 --remote-allow-origins http://127.0.0.1:9229

Pass extra ChatGPT/Electron arguments after --:

cargo run -- launch -- --some-electron-flag=value

If ChatGPT is already running and you intentionally want to skip the fresh-process guard:

cargo run -- launch --allow-existing-instance

After installation, the installed launcher can be run directly:

%LOCALAPPDATA%\MyCodex\MyCodex.exe launch

Current Limitations

  • Direct mode discovers the installed package with Get-AppxPackage -Name OpenAI.Codex and starts app\ChatGPT.exe, falling back to the legacy app\Codex.exe when needed. Pass --chatgpt-exe if discovery fails or the package layout changes.
  • Direct mode still depends on the Store app accepting direct execution of app\ChatGPT.exe.
  • It does not modify app.asar or files under C:\Program Files\WindowsApps.
  • It does not write registry environment values or change the global Windows proxy.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages