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
- API format: OpenAI Responses
- Base URL format: Up to /v1 (https://gpt.cherrychat.org/v1)
- Recommended model: gpt-6.1-sol, gpt-5.5
- Platforms: macOS, Windows
Steps
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.
- ChatGPT desktop app (Microsoft Store) (Official)
- Codex app (Mac, Apple silicon) (890 MB, Official)
- Git 2.56.0.4 (Windows, recommended) (64 MB, Official Git for Windows build; keep clicking Next. Source: https://github.com/git-for-windows/git/releases/tag/v2.56.0.windows.4)
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.tomlOpen 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 = trueSign 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

Click "Sign in another way" (outlined), not the black button above it 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
- Order matters: write config.toml first, then sign in with the key. Without the config, requests go to OpenAI instead of CherryChat.
- API calls are paid only in credits; plans do not cover them. One Codex task sends many requests, so set a spending limit on the key in My Keys.
- Set base_url to /v1 (https://gpt.cherrychat.org/v1), not https://gpt.cherrychat.org/v1/responses or the bare domain; wire_api must be "responses".
- The model, model_provider and web_search lines must sit above [model_providers.cherrychat], and the file must be in the .codex folder in your home folder; a project .codex/config.toml ignores model_provider.
- Keep web_search = "disabled": Codex sends its built-in web search by default, and CherryChat API does not support built-in tools yet.
- .codex is a hidden folder: in File Explorer turn on View → Show → Hidden items; in Finder press Cmd + Shift + period.
Error → cause → fix
| What you see | Why | What to do |
|---|---|---|
| The Microsoft Store says the app is not available in your region | The Store decides by the country or region set on the PC | Open 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 opening | The Microsoft Visual C++ runtime is missing | Install 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 token | You are signed in with an OpenAI account, or the key is wrong or disabled | Sign 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 /v1 | Pick 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 TOML | The file is really config.toml.txt, or the quotes became curly quotes when pasted | Reopen 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.
Operated by UK Company CHERRYCHAT LTD · Company Number 16096119 · Support WeChat: JsnonoChat · Content is AI-generated — please verify before relying on it
