Skip to main content
Codex keeps its own sign-in for OpenAI model turns. Codex cloud tasks aren’t supported. Codex and the ChatGPT desktop app share ~/.codex/config.toml, so connecting one connects the other.

Quick start

Install and sign in

You need Node.js 22 or later and bash. You don’t need git or a GitHub account. On Windows, run the installer from Git Bash. PowerShell breaks the script’s line endings.
Choose your Nexus or Fireworks Platform account, then sign in with your browser.If the Nexus CLI is already installed and signed in, skip to step 2.

Connect Codex

Close open Codex sessions and quit the ChatGPT desktop app, then run:

Restart and pick Auto

Start a new Codex session. Codex opens on Nexus Auto in /model.
To restore your original settings, run nexus codex off.

Use Nexus Auto

  • Fireworks model turns use your Fireworks key.
  • OpenAI model turns use your Codex sign-in. When Codex asks, pick ChatGPT, a device code, or an API key, or run codex login.
  • Anthropic model turns need an Anthropic Provider Key from your admin.

Who pays for OpenAI model turns

MCP and tools

  • MCP servers and ChatGPT connectors are unchanged.
  • Native web search is supported. Fireworks runs the search server-side, so no search MCP server is required.
  • Image generation is off by default because Fireworks doesn’t serve it. Nexus CLI preserves an explicit image-generation setting.

Track session usage

Run nexus codex usage to select a local Codex session and open its live token and estimated-cost meter. For Nexus Auto calls, the meter estimates cost using the rates of the model that served each call. To inspect one session as JSON, set SESSION_ID to the Codex session ID you want to inspect.
The meter reads sessions on this computer, not cloud tasks. See Usage and Cost.

Troubleshooting

  • Nothing changed after --model: start a new or resumed session, because Codex loads a new model only at session start.
  • Resuming an old session: select the provider explicitly with codex resume <id> -c model_provider="fireworks-ai".
  • MiniMax models don’t work on Codex. Use a Chat Completions harness such as OpenCode for MiniMax.

Manual setup (advanced)

Add a Fireworks provider to ~/.codex/config.toml, then run codex:
~/.codex/config.toml
Without the Nexus CLI, you take over the tasks it otherwise performs, such as undo and updates.

What the Nexus CLI writes

Nexus CLI writes ~/.codex/config.toml and ~/.codex/fireworks-model-catalog.json.