Prerequisites
Before you begin, prepare the following values:- API key: Create or copy an API key from Key Management.
- Base URL:
https://api.novita.ai/openai/v1 - Model ID: Copy the model ID you want to use from the Model Hub, such as
deepseek/deepseek-v4.1-flash.
Install Codex
Before installing Codex, make sure Node.js 18 or higher is installed on your machine. On macOS, if you use Homebrew, you can install Node.js with:Configure your API key
Open your shell configuration file, for example~/.zshrc:
Configure Codex
Open the Codex configuration file:model with the Novita model ID you want to use:
Start Codex
Go to your project directory and start Codex:NOVITA_API_KEYis available in the current terminal session.modelexactly matches the Model ID in Novita’s Model Hub.base_urlis set tohttps://api.novita.ai/openai/v1.