Skip to content

feat: new app command to support codex app account switching#103

Merged
Loongphy merged 22 commits into
mainfrom
app-command
May 22, 2026
Merged

feat: new app command to support codex app account switching#103
Loongphy merged 22 commits into
mainfrom
app-command

Conversation

@Loongphy
Copy link
Copy Markdown
Owner

@Loongphy Loongphy commented May 14, 2026

This PR adds codex-auth app to enable automatic account switching without restarting the desktop app. It routes the app through a custom codex-cli (codext) via CODEX_CLI_PATH.

Support seamless account switching including:

  • New Chat
  • Restoring or resuming an existing conversation/session
  • Continuing an already active conversation after previous interaction completion
PixPin_2026-05-21_07-44-38

Usage

codex-auth app [--id <id>] [--codex-cli-path <path>] [--codex-home <path>] [--platform win|wsl|mac] [--std]
Parameter Description
--id <id> Selects the packaged app. Windows accepts an AppX/MSIX package name such as OpenAI.Codex, or a full AUMID. macOS accepts a bundle identifier such as com.openai.codex. Defaults to OpenAI.Codex on Windows/WSL or com.openai.codex on macOS.
--codex-cli-path <path> Sets the CODEX_CLI_PATH value for this launch. The path must exist; when omitted, the command downloads or reuses the managed latest Loongphy/codext CLI for the selected platform.
--codex-home <path> Sets the CODEX_HOME directory for this launch and for managed CLI cache lookup.
--platform <win|wsl|mac> Selects the app runtime platform. win and wsl update the Windows app agent setting; mac launches by bundle identifier.
--std Resolves the packaged app executable and attaches stdout/stderr to the current terminal for debugging.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 14, 2026

Open in StackBlitz

@loongphy/codex-auth-darwin-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-darwin-arm64@9a2ffb1

@loongphy/codex-auth-darwin-x64

npx https://pkg.pr.new/@loongphy/codex-auth-darwin-x64@9a2ffb1

@loongphy/codex-auth-linux-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-linux-arm64@9a2ffb1

@loongphy/codex-auth-linux-x64

npx https://pkg.pr.new/@loongphy/codex-auth-linux-x64@9a2ffb1

@loongphy/codex-auth-win32-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-win32-arm64@9a2ffb1

@loongphy/codex-auth-win32-x64

npx https://pkg.pr.new/@loongphy/codex-auth-win32-x64@9a2ffb1

@loongphy/codex-auth

npx https://pkg.pr.new/@loongphy/codex-auth@9a2ffb1

commit: 9a2ffb1

@Loongphy Loongphy changed the title feat: add Codex app CLI override command feat: seamless account switching without restarting the app May 14, 2026
@Loongphy Loongphy changed the title feat: seamless account switching without restarting the app feat: update app launch options and desktop config May 22, 2026
@Loongphy Loongphy changed the title feat: update app launch options and desktop config feat: new app command to support codex app account switching May 22, 2026
@Loongphy Loongphy merged commit 070e28a into main May 22, 2026
12 checks passed
@Loongphy Loongphy deleted the app-command branch May 22, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant