Quick setup
Quick setup
Add this line at the very beginning of config.toml.
openai_base_url = "https://keydex.shop/codex"- Configure the OpenAI-compatible provider
- Save config.toml
- Fully restart Codex
Clients
Connect your key to Codex, Claude Desktop, or any other OpenAI-compatible app.
Quick setup
Add this line at the very beginning of config.toml.
openai_base_url = "https://keydex.shop/codex"Auto setup
Your account has ready-made scripts for Windows, Linux, and macOS — they write the endpoint and your key into config.toml and auth.json. Run the script and restart Codex.
Open my accountConnection steps
The setup is identical across official Codex clients.
Open Windows File Explorer, paste the path below into the address bar, and press Enter.
%USERPROFILE%\.codex\config.tomlPaste this line at the very beginning of config.toml. If openai_base_url already exists, replace its value.
openai_base_url = "https://keydex.shop/codex"Save your config.toml changes before restarting Codex.
The settings take effect only after the application starts again.
Close the application completely.
If Codex is still running, end the process.
The endpoint configuration takes effect on startup.
When Codex starts, choose API key sign-in: “Use another sign-in method” → enter your API key → “Continue”. Done: Codex will use the configured API.
Alternative connection
If the primary endpoint is unavailable, replace the address with the alternative one.
openai_base_url = "https://keydex.shop/v1"Restore defaults
Remove openai_base_url from config.toml or clear the environment variable, then restart Codex.
openai_base_url = ""Claude Desktop
Claude Desktop takes the address and key from Developer mode — no config files needed.
Gateway base URL: https://keydex.shop/codex/The setting is applied locally; no Claude account is required for it.
Key and balance
Your key, remaining balance, request statistics and top-up all live in the account area.
Open accountConnection steps
Five steps for Claude for Windows.
The third-party gateway is set up from the sign-in screen. If you are already signed in, sign out (Help → Sign out) and stay on the welcome screen — do not press “Sign in”.
In the Help menu choose Troubleshooting and press Enable Developer mode.
A new Developer item appears in the menu bar. Choose Developer → Configure third-party inference.
The dialog has two fields — fill both and press Apply locally. The setting applies to this computer only.
Gateway base URL: https://keydex.shop/codex/Copy the address from the block above and paste it whole, including /codex/.
Your sk-... key — view and copy it in the account area.
The button at the bottom of the dialog. After that Claude Desktop starts sending requests through our gateway.
Open a new chat and ask anything: the answer comes through our gateway. Usage and balance show up in the account area.
Turn off
Developer → Configure third-party inference → turn the toggle off (or clear both fields) and press Apply locally. Claude goes back to account sign-in.
Not connecting
Developer mode is on; the address is pasted whole, including /codex/; the key has no stray spaces and is active in the account area.
Other IDEs and AI agents
Set the Base URL and your API key in the application's provider settings.
Base URL: https://keydex.shop/codex/v1
API Key: YOUR_API_KEYQuick setup
The provider is added by hand: address, key and three GLM models.
https://keydex.shop/codex/v1Account
The sk-… key is created and copied in the account area, where balance, per-model usage and request stats also live.
Open my accountConnection steps
Five steps; only ZCode settings change.
Settings → Models → Custom Provider. This section is for manually added providers; official ones never show up here.
ZCode creates an empty provider card — we fill it in on the next steps.
Our gateway address. It is OpenAI-compatible: no extra ports, proxies or VPN required.
https://keydex.shop/codex/v1Copy the sk-… key from the account area — the same key works for Codex, Claude Desktop and the rest.
API Key: sk-…List the models one per line — copy the whole list if you like.
glm-5.3 glm-5.2 glm-5.3-flash
Save the provider and pick the model you need from the model list.
If the model does not answer
The address is pasted whole, including /codex/v1; the key has no stray spaces and is active in the account area; the model is in Model list.
One key
The key works with any OpenAI-compatible client: Codex, Cursor, VS Code, OpenCode, ZCode and DeepSeek Harness — only the endpoint differs.
Quick setup
The provider is added by hand: address, key and three DeepSeek models.
https://keydex.shop/codex/v1Account
The sk-… key is created and copied in the account area, where balance, per-model usage and request stats also live.
Open my accountConnection steps
Six steps: the client settings plus the effort block in the configuration file.
Add provider lives in the Models section, next to the list of providers you already have.
Give the provider a clear name (for example keydex) — that is how it appears in the model list.
Our gateway address: OpenAI-compatible (api: openai-completions), no VPN or proxy needed.
https://keydex.shop/codex/v1The sk-… key is in the account area; an active key is ready to use right away.
API Key: sk-…Copy the whole list or type the models in one by one.
deepseek-v4-pro deepseek-v4-flash deepseek-v4.1-flash
To get the high and max reasoning levels, open the configuration file (cordis.patch) and add reasoningEfforts to the custom provider — you can simply replace the whole block with this one:
- id: llm-pi-ai
name: "@deepseek-ai/dsh-llm-pi-ai"
config:
providers:
keydex:
displayName: v4pro
apiKeyEnv: KEYDEX_API_KEY
api: openai-completions
baseURL: https://keydex.shop/codex/v1
models:
- id: deepseek-v4-pro
name: v4pro
reasoningEfforts:
high: high
max: max
- id: deepseek-v4-flash
name: flash4
reasoningEfforts:
high: high
max: max
- id: deepseek-v4.1-flash
name: flash4.1
reasoningEfforts:
high: high
max: maxSave the file and restart the client — the effort levels then appear in the model picker.
Check the connection
Save the settings and ask the chosen model anything: if the answer arrives, the provider is set up correctly.
Choosing effort
high is the balanced mode for everyday work; max gives the most detailed reasoning for hard tasks and spends more tokens.