Codex: install and connect to Flash API
Codex is OpenAI's official terminal coding agent. Use it in a local repo to ask questions, edit code, run commands and iterate alongside you.
What you need
- Node.js installed (22+ recommended): Node.js
- A Flash API key
- The matching pricing group set up, such as Codex-Enterprise (
Codex-Enterprise) or Codex-GPT (Codex-GPT)
Start here: one-line setup
If you'd rather skip the manual install and hand-written config, read this first:
The script:
- Checks
npmand your Node.js version - Installs the Codex CLI
- Lets you choose
ai.flashapi.toporcdn.flashapi.top - Validates your API key
- Writes
gpt-6.1-sol, the 272K context window, your API key and the endpoint - Supports both the Codex CLI and the desktop app
Setup command:
bash
curl -fsSL https://sh.flashapi.top/codex.sh | bashpowershell
irm https://sh.flashapi.top/codex.ps1 | iexManual install guides
Prefer to set it up step by step for your OS? Read these:
What success looks like
In any project directory, run:
bash
codex --version
codexand Codex is talking to the Flash API endpoint you configured, for example https://ai.flashapi.top/v1.