Skip to main content
The VS Code Codex extension does not require a separate Base URL and API Key field inside VS Code. It reads your local Codex configuration, so configure the LLMEasy provider in Codex config.toml.
If you do not see Base URL or API Key fields in VS Code settings, that is expected. Configure model requests for the VS Code Codex extension through the local Codex configuration.

Prerequisites

  • VS Code is installed
  • The Codex - OpenAI’s coding agent extension is installed
  • You have a LLMEasy API Key (sign up and get one)
  • You have copied an available model ID from the GPT Key group in the model plaza
Do not put your API Key in project files, AGENTS.md, sample .env files, or public repositories. The configuration below should stay in your local Codex configuration directory.

Setup methods

After you create an API Key, the console opens a Setup dialog. From that dialog, copy API Key and Base URL, then choose a Codex setup method.
1

Select Codex

Select Codex under Available tools.
2

Choose a setup method

You can choose:
  • One-click Bash Configuration: copy the command and run it in your local terminal. Use this for quick setup.
  • CC Switch Integration: import the provider into CC Switch. Use this when you manage multiple tools.
  • Manual Configuration: copy API Key and Base URL, then write them into config.toml.
3

Restart VS Code

After the configuration is written, restart VS Code or run Developer: Reload Window so the Codex extension reads the local configuration again.

Why keep the official login state?

The VS Code Codex extension depends on Codex app-side capabilities such as the extension UI, session management, and VS Code integration. Keep the official login state while routing model requests through LLMEasy. In this configuration:
SettingWhat it does
requires_openai_auth = trueKeeps the official Codex login state
experimental_bearer_token = "YOUR_API_KEY"Uses your LLMEasy API Key for model requests
base_url = "https://www.llmeasy.ru/v1"Sends model requests to LLMEasy’s OpenAI-compatible / Responses API endpoint

Verify the setup

After setup, open the Codex extension in VS Code and send a short test message. If you get a normal response, the configuration is active. If the request fails, check:
  1. base_url is https://www.llmeasy.ru/v1
  2. wire_api is responses
  3. experimental_bearer_token has been replaced with your real API Key
  4. model comes from the GPT Key group in the model plaza
  5. Old OPENAI_API_KEY or OPENAI_BASE_URL environment variables are not overriding the configuration
  6. VS Code has been restarted or reloaded