Skip to content

JNSlayer2/codex-switch-jnslayer2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codex Switch JNSLayer2

Internal macOS menu bar app for secure multi-account switching.

v3 highlights

  • Auto-switch when the active account drops below the configured remaining quota threshold.
  • Global threshold plus per-account override support.
  • Auto-repair desktop session/cache residue before deciding whether a stale low-quota state really requires switching.
  • Transactional post-switch verification using codex login status plus a minimum codex exec smoke test.
  • Batch relogin flow for stale accounts.
  • Repair Codex desktop session/cache residue after plan upgrades so new Plus / Pro subscriptions are recognized.
  • doctor CLI entrypoint for verify / repair / stale scan / autoswitch dry-run.
  • Helper CLI as the single source of truth for app and agent automation.

Screenshots

Login flow

Login flow

Menu actions

Menu actions

Overlay overview

Overlay overview

Security model

  • Account credentials are stored using the macOS secure storage model.
  • Local account metadata and active-session compatibility data are managed inside the app runtime.
  • Legacy data from older builds is migrated during install when compatible.

Build

./Scripts/package.sh

Helper CLI

./.build/arm64-apple-macosx/release/jnslayer2-helper list --json
./.build/arm64-apple-macosx/release/jnslayer2-helper config get --json
./.build/arm64-apple-macosx/release/jnslayer2-helper verify --json
./.build/arm64-apple-macosx/release/jnslayer2-helper repair-session --json
./.build/arm64-apple-macosx/release/jnslayer2-helper autoswitch --json
./.build/arm64-apple-macosx/release/jnslayer2-helper doctor --json
./.build/arm64-apple-macosx/release/jnslayer2-helper relogin --stale --json

About

macOS menu bar app for Codex account switching, quota-aware autoswitching, and local session repair workflows.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors