N·01Integration guides

Codex

OpenAI's coding agent, used from the command line, the ChatGPT desktop app or an editor extension. All three share one config, so connecting XylemNode once covers them all.

If you'd rather not use a command line, use Codex in the ChatGPT desktop app (the former Codex desktop app now lives there) or the Codex extension for VS Code, Cursor and similar editors. It's all clicking and editing a text file, and once it's set up, the app, the extension and the CLI all use it.

  1. 01

    Install the desktop app or an editor extension

    Either one works. Desktop app: download the ChatGPT desktop app with the button above (macOS and Windows); Codex is built in. Editor extension: in the Extensions panel of VS Code, Cursor or Windsurf, search for Codex and install the one published by OpenAI.

  2. 02

    Open the config file

    No need to hunt for the folder: in the desktop app, open Settings → Configuration → Open config.toml; in the extension, click the gear at the top right of the Codex panel → Codex Settings → Open config.toml. The file lives here; if you're told it doesn't exist, create a plain-text file with that name in that place.

    Windows
    %USERPROFILE%\.codex\config.toml
    macOS / Linux
    ~/.codex/config.toml
  3. 03

    Paste the provider config

    Paste the whole block into config.toml and save. If the file already has content, the first two lines must go at the very top, before any [bracketed] section; if it already has a model = or model_provider = line, change that line instead of adding a second one, and keep a single [model_providers.xylemnode] section. base_url must include /v1, wire_api stays responses, and the key doesn't go here: it gets its own file in the next step.

    toml
    model = "gpt-6.1-sol"
    model_provider = "xylemnode"
    
    [model_providers.xylemnode]
    name = "XylemNode"
    base_url = "https://api.xylemnode.com/v1"
    wire_api = "responses"
    env_key = "XYLEMNODE_API_KEY"
  4. 04

    Add the key

    In the same .codex folder as config.toml, create a file named .env containing the line below, and save it. The name before the equals sign must match env_key from the previous step and must not start with CODEX_, since names like that are ignored. In Windows Notepad, set "Save as type" to "All files" or it saves as .env.txt; in TextEdit on a Mac, choose Format → Make Plain Text first, and press Cmd + Shift + . in Finder to show hidden folders such as .codex.

    .env
    XYLEMNODE_API_KEY=sk-your-key
  5. 05

    Restart and test

    Quit the desktop app completely and reopen it; in an editor, press Ctrl / Cmd + Shift + P and run Developer: Reload Window. When you start a task, run it on your computer rather than in Cloud, then send a short message to confirm the connection. If gpt-6.1-sol doesn't appear in the model menu yet, that's fine: the model in config.toml is the one used.

Common questions

Every Codex command fails after an upgrade

Check wire_api in config.toml first. Codex has dropped chat/completions and speaks only the Responses protocol — the migration notice is explicit that any custom provider set to wire_api = "chat" has to be updated. Setting wire_api = "responses" explicitly on every model_providers entry is the safe choice. While you are there, confirm base_url carries /v1 by hand; Codex does not append it for you.