Set up Codex (ChatGPT desktop app)

OpenAI's coding agent that works on the files on your computer. One config file and one key and you're set

Steps

  1. Install the desktop app

    Install one app for your computer: on Windows, ChatGPT from the Microsoft Store (Codex is inside it); on a Mac with Apple silicon, Codex. You do not need Node.js or anything else. On Windows we suggest also installing Git below: Codex uses it to show and undo its changes. Without it those features are unavailable but the rest works. A Mac offers to install Git the first time it is needed. There is no official app for Intel Macs yet.

  2. Write config.toml

    Always write the config before signing in, or your key goes to OpenAI. On Windows press Win + R, paste the Windows line and press Enter to open the file in Notepad; on a Mac run the macOS line in Terminal. Paste the config below and save. If the file already has a model = or model_provider = line, delete the old one.

    • base_url (API address): https://gpt.cherrychat.org/v1 (Stop at /v1; Codex adds /responses itself)
    • model (model name): gpt-6.1-sol

    Open the file (macOS Terminal)

    mkdir -p ~/.codex && touch ~/.codex/config.toml && open -e ~/.codex/config.toml

    Open the file (Windows: Win + R, paste, Enter)

    cmd /c "mkdir %USERPROFILE%\.codex 2>nul & notepad %USERPROFILE%\.codex\config.toml"

    config.toml content (paste all of it)

    model = "gpt-6.1-sol"
    model_provider = "cherrychat"
    web_search = "disabled"
    
    [model_providers.cherrychat]
    name = "CherryChat"
    base_url = "https://gpt.cherrychat.org/v1"
    wire_api = "responses"
    requires_openai_auth = true
  3. Sign in to the app with your CherryChat key

    Open the app. On the sign-in screen do not click "Continue to sign in" (that is an OpenAI account). Click "Sign in another way", choose API key, paste the CherryChat key below and click "Continue". Then pick a model listed on the Models page, such as gpt-6.1-sol. If you are already signed in to an OpenAI account, sign out in the app settings first. Still asked to sign in after entering the key? Check that the config from step 2 is saved, quit the app completely (on Windows, also from the system tray) and reopen it. If it still fails, contact support on the site.

    • API key (your CherryChat key): sk-your-key
    ChatGPT desktop sign-in screen with the "Sign in another way" button outlined in red
    Click "Sign in another way" (outlined), not the black button above it
  4. Everyday use

    Pick a folder when you start a chat and Codex can read and edit the files in it: tidy spreadsheets, batch-edit documents, build a web page. Skills: put the whole skill folder (with its SKILL.md) in ~/.codex/skills/ (%USERPROFILE%\.codex\skills\ on Windows) and restart the app.

Common pitfalls

Error → cause → fix

What you seeWhyWhat to do
The Microsoft Store says the app is not available in your regionThe Store decides by the country or region set on the PCOpen Settings → Time & language → Language & region, set Country or region to one where the app is offered (such as the United States), reopen the Store and install. You can switch back afterwards
The app closes right after openingThe Microsoft Visual C++ runtime is missingInstall Microsoft's https://aka.ms/vs/17/release/vc_redist.x64.exe and restart the computer
The app keeps asking to sign in, or you see 401 / Failed to refresh tokenYou are signed in with an OpenAI account, or the key is wrong or disabledSign out in the app settings, then sign in again with "Sign in another way" and the CherryChat key as in step 3; copy the key again from My Keys
Model not found (model_not_found / 404)The model is not offered by CherryChat, or base_url lacks /v1Pick a model from the Models page, such as gpt-6.1-sol, and set base_url to https://gpt.cherrychat.org/v1
Config parse error / invalid TOMLThe file is really config.toml.txt, or the quotes became curly quotes when pastedReopen it with the command in step 2 (it opens the right file) and paste the whole block again

Guide checked 2026-11-02. The tool's screens may change; the official docs win if they differ.

API · API Pricing

Operated by UK Company CHERRYCHAT LTD · Company Number 16096119 · Support WeChat: JsnonoChat · Content is AI-generated — please verify before relying on it

CherryChat

The network is slow. Still loading…