Codex CLI
Codex CLI is OpenAI’s coding agent for the terminal. Use it to read code, change files, and run commands in local projects.
Option 1 (Recommended): Use NUSI·ONE
- 1Download and Install
Visit the NUSI·ONE download page. Windows (x64) and macOS 14 or later on Apple silicon are supported. Download and install the package for your system.

- 2Sign In and Select a Key
Sign in to NUSI in the client. Open Settings at the lower left and select an available key you created under Account & Keys. If you have none, create one in API keys.

- 3Find Codex CLI
Open Assistant Management in Settings and find Codex CLI. Follow the installation prompts; if it is already installed, continue.

- 4Open a Project and Start a Conversation
Select a project or Independent conversation, choose New conversation and Codex CLI, then select an available model and send “Hello”. After receiving a reply, check the call in Usage.

Option 2: Install and Configure Codex CLI Yourself
Skip this section if you use NUSI·ONE. Complete these steps in your own terminal, keeping the API key in an environment variable and the connection URL in the configuration file.
- 1Install and Check Codex CLI
If Node.js is missing, download the LTS release from Node.js, install it, and open a new terminal. Then run these commands one at a time:
PowerShell / Terminalnpm install -g @openai/codex codex --versionContinue once the Codex version appears. If the command is not found, close and reopen the terminal, then check again.
- 2Configure the Connection
Open the configuration file below. If it does not exist, create the
.codexfolder andconfig.tomlfile; do not save it asconfig.toml.txt. Preserve existing settings and merge the fields below.WINDOWS%USERPROFILE%\.codex\config.tomlMACOS / LINUX~/.codex/config.tomlconfig.tomlmodel = "YOUR_MODEL_ID" model_provider = "nusi" [model_providers.nusi] name = "NUSI" base_url = "https://nusi.si/v1" wire_api = "responses" env_key = "OPENAI_API_KEY"Replace
YOUR_MODEL_IDwith an available model ID that supports Responses from Models. Use the Base URL supplied by the console, including/v1.OPENAI_API_KEYis the variable name; do not replace it with the full key. - 3Set the API Key in Your Terminal
Copy an available key you created from API keys. Replace
YOUR_NUSI_API_KEYbelow with the full value and use the command for your system. Keep the key out ofconfig.tomland source control.macOS / Linux
Terminalexport OPENAI_API_KEY="YOUR_NUSI_API_KEY"Windows PowerShell
PowerShell$env:OPENAI_API_KEY = "YOUR_NUSI_API_KEY"These commands apply only to the current terminal and programs it starts. Run Codex in that same terminal. After closing it, set the variable again in the new window.
- 4Open Your Project and Verify
Replace the example path with your project’s path and start Codex. Review any file-access or command-permission prompt before allowing it.
macOS / Linux
Terminalcd "/path/to/your/project" codexWindows PowerShell
PowerShellSet-Location "C:\path\to\your\project" codexIn the interactive prompt, send this simple request first:
Plain TextReply only: connection successful.After receiving a reply, check the time, model, and status in Usage. Confirm the matching record before continuing with your project.
If the key is missing, check that Codex started in the same terminal where you set it. If the model is unavailable, check its ID and Responses support. For authentication, balance, permission, or rate-limit issues, follow FAQ & Troubleshooting.