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
- Node.js installed
- LLMEasy API Key (register here)
Install Codex
Setup
- Automatic setup
- Configure via CC Switch
- Manual 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.Related FAQ
- What is Codex CLI?
- Codex CLI vs Codex App vs Codex Web
- How to configure Codex CLI config.toml
- What are model_provider, base_url, and wire_api?
- What do review_model and reasoning_effort mean?
- What is AGENTS.md and how should you write it?
- What are Codex CLI sandbox and approval modes?
- OpenAI-compatible API vs Anthropic-compatible API
- Claude Code vs Codex CLI
Verify the setup
After startup, send a test message. A normal reply means the connection is working. If something fails, check:base_urlishttps://www.llmeasy.ru/v1wire_apiis stillresponsesmodelis a model ID copied from the GPT Key groupmodel_providermatches the provider id in[model_providers.custom]- No old
OPENAI_API_KEYorOPENAI_BASE_URLvariables are interfering

