Skip to main content
Connecting Codex to LLMEasy requires a custom model provider and API Key. The base_url must be https://www.llmeasy.ru/v1, and the protocol is OpenAI Responses.
If you want to keep the official Codex App login state, plugins, or Remote Control while using a third-party API, use the login-preserving Codex setup.

Prerequisites

Clear OpenAI-related environment variables before setup so they do not override the settings in config.toml.Clear these variables:
  • OPENAI_API_KEY
  • OPENAI_BASE_URL
Run on macOS / Linux:
unset OPENAI_API_KEY
unset OPENAI_BASE_URL
Run in Windows PowerShell:
Remove-Item Env:OPENAI_API_KEY -ErrorAction SilentlyContinue
Remove-Item Env:OPENAI_BASE_URL -ErrorAction SilentlyContinue
[Environment]::SetEnvironmentVariable("OPENAI_API_KEY", $null, "User")
[Environment]::SetEnvironmentVariable("OPENAI_BASE_URL", $null, "User")

Install Codex

npm install -g @openai/codex

Setup

You can run the LLMEasy automatic setup script directly. It only writes the LLMEasy provider configuration and does not replace the installation prerequisites above. The script requires Node.js. If you do not pass an API Key or model explicitly, the script prompts for them when the tool supports interactive input.Follow the step for your operating system. You only need one of them.
1

If you use macOS / Linux

curl -fsSL https://www.llmeasy.ru/install-codex-provider.sh | bash
2

If you use Windows

iwr https://www.llmeasy.ru/install-codex-provider.ps1 -OutFile "$env:TEMP\install-codex-provider.ps1"; powershell -ExecutionPolicy Bypass -File "$env:TEMP\install-codex-provider.ps1"

Verify the setup

After startup, send a test message. A normal reply means the connection is working. If something fails, check:
  1. base_url is https://www.llmeasy.ru/v1
  2. wire_api is still responses
  3. model is a model ID copied from the GPT Key group
  4. model_provider matches the provider id in [model_providers.custom]
  5. No old OPENAI_API_KEY or OPENAI_BASE_URL variables are interfering