ChatGPT App
The official OpenAI Windows installer.
Download installer OpenAI downloadsConnect ChatGPT App to the Ritel SI API with CC Switch.
Install ChatGPT App and CC Switch. The steps below use Windows.
The official OpenAI Windows installer.
Download installer OpenAI downloadsAn open-source configuration manager for Codex.
Download installer CC Switch releasesIn CC Switch, open Settings → App settings → Codex. This is the location in version 4.0.15.
Enable these three options:
Compress Codex session history and the provider’s Enable remote compaction are separate settings. Enable both.
Disable official login retention and keep session history unified:
This screenshot uses an older version. In 4.0.15, find the same switches under Settings → App settings → Codex.
If you already use Codex, extract your existing configuration before changing providers. First-time users can skip this step.
Use the screenshot to locate the two common-configuration controls. Keep your own configuration values.
If your account avatar already appears in the lower-left corner, skip to importing the API provider.
This step uses your ChatGPT account. The next step uses your separate Ritel SI API account. After signing in, switch the provider to Ritel SI.
Sign in at dash.ritel.si, then open API Keys.
Choose Import to CCS beside your API key. Allow the browser to open CC Switch, then confirm the import in CC Switch.
Sign in with your Ritel SI API account. Console: https://dash.ritel.si. Model API: https://api.ritel.si.
The import fills in the endpoint, API key and models. For manual setup, the OpenAI-compatible Base URL is https://api.ritel.si/v1. You can re-import an existing provider to update it.
Open Codex → Direct in CC Switch. Find Ritel SI, choose Enable (the triangle button in newer versions) and confirm it is active. Older imports may be named Sub2API.
Switch from OpenAI Official to Ritel SI. The login-retention setting keeps your ChatGPT account signed in.
Existing Codex users: edit the new provider, enable Apply common configuration and save. Extract your existing settings first using the migration steps. First-time users can skip this.
Edit the imported provider. In the config.toml area, check Enable remote compaction and Save. If it is already checked, leave it enabled.
Enable the option outlined in red. Keep your imported model, code and endpoint values. The 1M context-window option in blue is not required.
In the Windows system tray, right-click the ChatGPT icon and choose Exit, then reopen the app. Closing the window leaves the app running. Choose Codex from the mode menu in the upper-left corner.
Connect your proxy before reopening. Confirm your avatar appears in the lower-left corner and API models are available beside the message box. The recording shows 6.1 Sol.
Open Codex and check that the model list has updated. Send a message to confirm the connection.
Choose an available model and send a short message. A reply confirms the basic setup is complete.
Describe the image in your current conversation, for example, “Create a photograph of a city street after rain.” No separate image model is needed.
For image generation with the API-only route, add the three settings below. Skip this section if you only need text conversations.
[model_providers.custom] and apply the settings below. Edit existing fields rather than adding duplicates.requires_openai_auth = false
http_headers = { "x-openai-actor-authorization" = "local-image-extension" }
experimental_bearer_token = "YOUR_API_KEY"
Replace YOUR_API_KEY with the imported key from API Keys. Set requires_openai_auth to false. If experimental_bearer_token already exists, update its value.
If http_headers already exists, add this header alongside the existing headers. Save, choose Exit in the tray menu and reopen the app.
Then describe the image in your conversation. No separate image model is needed.
Connect your proxy before each launch. Once the app opens, you can disconnect it and continue using the Ritel SI API.
Enable Keep official login when switching without takeover, complete account sign-in, switch back to Ritel SI, then choose Exit and reopen.
Install and open CC Switch, then retry from API Keys. Allow the browser to open CC Switch.
Confirm Ritel SI is active under the Codex providers in CC Switch. Choose Exit in the ChatGPT tray menu, then reopen the app.
Check that the API key is valid and the selected model is available. Confirm the provider is active and the app has been fully restarted. Re-import the provider if the endpoint was edited incorrectly.
These features require signing in to a ChatGPT account.