chatgpt-desktop-setup
Automated one-command setup for ChatGPT Desktop & Codex CLI with custom 3P inference gateway, model selection (gpt-6-astra), and OpenAI emerald mascot theme.
Easily configure ChatGPT Desktop and Codex CLI to route requests through custom third-party inference gateways (such as https://api.vokes.in/v1, LiteLLM, or custom proxies) without manual TOML editing.
⚡ Quick Start
Users can simply open PowerShell (Windows) or Terminal (macOS/Linux) and run:
npx chatgpt-desktop-setup
(or npx codex-setup)
It will display the OpenAI pixel mascot and prompt for your API key:
▟███▙ ▟█▙ ChatGPT & Codex Setup v1.0.0
▐█▛ ▜█▛ ▀█▌ ChatGPT Pro 5x · API Usage Billing
▐█▄ ▟█▛ ▄█▌ https://api.vokes.in/v1
▜█▛ ▜███▛
──────────────────────────────────────────────────────────
✳ Enter your API Key:
API Key (e.g. sk-...): sk-ant-api03-...
Or pass your API key directly on the command line:
npx chatgpt-desktop-setup sk-your-api-key
To launch the Codex CLI after setup instead of Desktop:
npx codex-setup sk-your-api-key --cli
🚀 Features
- OpenAI Pixel Rosette Mascot: Features the iconic knot rosette in emerald green (
#10a37f).
- Terminal Connection Animation: Live terminal bridge animating the connection from your API Key to the OpenAI Gateway.
- Auto-Configures Both Desktop & CLI: Writes the exact provider, auth command, and desktop tuning to
~/.codex/config.toml.
- Pre-Configured Models & Settings:
- Provider:
chatgpt_pro_5x (ChatGPT Pro 5x)
- Model:
gpt-6-astra
- Reasoning Effort:
ultra
- Wire API:
responses
- Desktop Tuning: Pre-configures smooth font sizes, prose conversation mode, and steer follow-ups.
- Cross-Platform Dynamic Auth:
- Windows: Auto-configures
powershell with -NoProfile -Command Write-Output '<KEY>'
- macOS / Linux: Auto-configures standard POSIX
echo
- Config Preserving: Updates
~/.codex/config.toml while keeping all your existing plugins, marketplaces, and MCP servers intact.
- Process Management: Gracefully terminates running
ChatGPT.exe or codex.exe so the new configuration applies cleanly without locking issues.
- Auto Launcher: Automatically detects and restarts ChatGPT Desktop (via Windows MSIX / macOS Application bundles) or launches Codex CLI.
- Zero Dependencies: Pure Node.js standard library with no external dependencies. Runs in milliseconds.
📖 CLI Usage
Usage:
npx chatgpt-desktop-setup [apiKey] [options]
npx codex-setup [apiKey] [options]
Arguments:
apiKey Your gateway API key (prompted interactively if omitted)
Options:
-k, --key <key> Specify API key
-u, --url <url> Gateway base URL (default: https://api.vokes.in/v1)
-m, --model <model> Active model ID (default: gpt-6-astra)
-p, --provider <id> Model provider ID (default: chatgpt_pro_5x)
--provider-name <name> Model provider display name (default: ChatGPT Pro 5x)
--reasoning <effort> Model reasoning effort: low, medium, high, ultra (default: ultra)
--cli Launch Codex CLI instead of ChatGPT Desktop app after setup
--no-launch Configure settings only; do not auto-launch ChatGPT or Codex
-s, --status Display current ~/.codex/config.toml configuration
-r, --revert Remove custom gateway configuration and restore OpenAI defaults
-h, --help Show this help message
📄 License
MIT