Set up Codex the easy way.
Your API key is prepared automatically — nothing to find or type. Sign in, copy one command, and follow the result shown on screen.
1 Create or sign in · 2 Return here automatically · 3 Copy one command
Create your free account
Create your account once. You will be signed in and returned here automatically with your setup command ready.
Create free account ->Already have an account? Log in
Set up Moflux — do this first
Click Download Windows setup, open the downloaded file, and answer three short questions. It is a readable batch script that configures Codex directly.
On macOS or Linux, open Terminal. Click Copy, paste the command, then press Enter.
Your key is already inside. The script validates it, asks about command confirmations and file access, backs up your current Codex config, writes the provider settings, and tests the connection.
Install Codex
Windows and macOS use the desktop app. On Linux, the setup command offers to install the Codex CLI.
Linux: no desktop download is needed. The command in step 1 can install @openai/codex for you.
Open Codex — you're done!
Open Codex and start a new chat. If Codex was already running, fully quit and reopen it first. If a sign-in screen appears, choose ChatGPT sign-in — never paste your Moflux key into the app.
Something not working? See the FAQ or the step-by-step guide.
Use the fastest entrance for your region.
Both entrances use the same account, API key and models. You do not need to choose now—the installer asks your region.
Alibaba Cloud entry for users in mainland China.
https://api-cn.mofluxapi.com/v1
Existing global entry for overseas users and compatibility.
https://mofluxapi.com/v1
Running low? Add credits in a minute.
Your new account includes free starter credit. When it runs low, topping up takes three quick steps — Codex keeps working, nothing to set up again.
Open your Wallet
Go to the Wallet page in the console (log in if asked). Your current balance is shown right at the top.
Open Wallet ->Choose an amount and how to pay
Pick a top-up amount, then pay with Alipay or by credit / debit card (Apple Pay and Google Pay supported).
Done — credits arrive instantly
Your balance updates as soon as the payment completes. Just keep using Codex — nothing to restart, nothing to reconfigure.
Paid but the balance didn't update? See the FAQ or contact support — we're quick to respond.