Configuring a Third-Party API Key in the VS Code Codex Plugin

Note: In fact, even if you do not follow the steps below, if you successfully configure it by following the Codex App configuration method, it will also take effect in the VS Code Codex plugin.)

model_provider = "OpenAI"

model = "gpt-5.4-mini"

review_model = "gpt-5.4-mini"

model_reasoning_effort = "medium"

disable_response_storage = true

network_access = "enabled"

windows_wsl_setup_acknowledged = true


[model_providers.OpenAI]

name = "OpenAI"

base_url = "https://rehdasu.cn"

wire_api = "responses"

requires_openai_auth = true

Configuration notes:

  • Change model and review_model to the names of the models you want to use.

  • Change model_reasoning_effort to the reasoning strength you want to use.

  • The available levels are: minimal, low, medium, high, and xhigh.

  • Not all models support every level. For example, gpt-5.1-codex does not support xhigh.

If you are not sure what to choose, you can keep these values first:

  • model = "gpt-5.4-mini"

  • review_model = "gpt-5.4-mini"

  • model_reasoning_effort = "medium"