Skip to content

About

Temporary Windows workaround for Cockpit Tools 1.3.25 Codex account-switch errors

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Cockpit Tools Windows workaround

A temporary workaround for the Codex account-switch error in Cockpit Tools 1.3.25 on Windows.

Cockpit calls codex app-server daemon stop before switching accounts. That daemon command is not supported on Windows, so the switch fails with Access denied (os error 5) or exit code 1.

This small wrapper skips only that exact command and passes every other Codex command through unchanged.

The full account-switch flow was tested successfully.

Download

Download the ZIP or standalone EXE from the latest release.

The prebuilt EXE is unsigned. Source code and SHA-256 checksums are included so you can inspect or build it yourself.

How to use it

  1. Fully close Cockpit Tools, including its tray icon.
  2. Download and extract the release ZIP.
  3. Run Launch-CockpitToolsWithWorkaround.cmd.
  4. Switch the account normally in Cockpit Tools.

The launcher sets CODEX_APP_SERVER_EXECUTABLE only for that Cockpit process. It does not create a permanent environment variable and does not switch the account by itself.

What the wrapper does

It returns exit code 0 only for:

app-server daemon stop

Everything else is passed to:

%USERPROFILE%\.codex\plugins\.plugin-appserver\codex.exe

The wrapper does not read or modify auth.json.

Tested with

  • Cockpit Tools 1.3.25
  • Codex Appx 26.818.5229.0
  • codex-cli 0.149.0-alpha.4.1

Build from source

The project builds with the C# compiler included in 64-bit .NET Framework:

$compiler = "$env:WINDIR\Microsoft.NET\Framework64\v4.0.30319\csc.exe"

& $compiler /nologo /optimize+ /target:exe /platform:anycpu `
  /out:codex-app-server-windows-shim.exe `
  .\CodexAppServerWindowsShim.cs

Remove the workaround

Fully close Cockpit Tools, delete the extracted folder, and start Cockpit using its normal shortcut.

Related issue and fix

This is only a temporary workaround. Use an official Cockpit Tools release containing the Windows fix when one becomes available.

This project is not affiliated with Cockpit Tools or OpenAI.

License

MIT

About

Temporary Windows workaround for Cockpit Tools 1.3.25 Codex account-switch errors

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages