1.LM Studio
codex 连接本地 LM Studio提示错误 request (11053 tokens) exceeds the available context size (8192 tokens), try increasing it
config.toml 配置文件如下:notify = [ "C:\\Users\\Administrator\\AppData\\Local\\OpenAI\\Codex\\runtimes\\cua_node\\f8d2abcb7481383b\\bin\\node_modules\\@oai\\sky\\bin\\windows\\codex-computer-use.exe", "turn-ended" ]# 设置使用模型
model = "gemma-4-26b-a4b-it"
# 设置使用自定义提供者
model_provider = "lmstudio-launch-codex-app"[marketplaces.openai-bundled]
last_updated = "2026-07-29T17:54:43Z"
source_type = "local"
source = '\\?\C:\Users\Administrator\.codex\.tmp\bundled-marketplaces\openai-bundled'[marketplaces.openai-primary-runtime]
last_updated = "2026-07-29T17:51:32Z"
source_type = "local"
source = '\\?\C:\Users\Administrator\.cache\codex-runtimes\codex-primary-runtime\plugins\openai-primary-runtime'[plugins."visualize@openai-bundled"]
enabled = true[plugins."browser@openai-bundled"]
enabled = true[plugins."documents@openai-primary-runtime"]
enabled = true[plugins."pdf@openai-primary-runtime"]
enabled = true[plugins."spreadsheets@openai-primary-runtime"]
enabled = true[plugins."presentations@openai-primary-runtime"]
enabled = true[plugins."template-creator@openai-primary-runtime"]
enabled = true[features]
js_repl = false[mcp_servers.node_repl]
args = []
command = 'C:\Users\Administrator\AppData\Local\OpenAI\Codex\runtimes\cua_node\f8d2abcb7481383b\bin\node_repl.exe'
startup_timeout_sec = 120[mcp_servers.node_repl.env]
NODE_REPL_NATIVE_PIPE_CONNECT_TIMEOUT_MS = "1000"
NODE_REPL_NODE_MODULE_DIRS = 'C:\Users\Administrator\AppData\Local\OpenAI\Codex\runtimes\cua_node\f8d2abcb7481383b\bin\node_modules'
NODE_REPL_NODE_PATH = 'C:\Users\Administrator\AppData\Local\OpenAI\Codex\runtimes\cua_node\f8d2abcb7481383b\bin\node.exe'
NODE_REPL_TRUSTED_CODE_PATHS = 'C:\Users\Administrator\.codex'
CODEX_HOME = 'C:\Users\Administrator\.codex'
NODE_REPL_TRUSTED_BROWSER_CLIENT_SHA256S = "7ed52dae165c3bc22b6d24f282e2c1fbc87f6949fbbe037767a7418d8f517f01,e13fd947e846d3d306e9249dd3c73d14931b6494803dbafb16cef85e6add9506"
BROWSER_USE_AVAILABLE_BACKENDS = "chrome,iab"
NODE_REPL_INSTRUCTIONS_USE_CASE_BROWSER = "Control the in-app browser in conjunction with the Browser Plugin."
NODE_REPL_INSTRUCTIONS_USE_CASE_CHROME = "Control the Chrome browser in conjunction with the Chrome Plugin. Prefer this method of controlling Chrome over alternatives (such as Computer Use) unless the user explicitly mentions an alternative."
BROWSER_USE_CODEX_APP_BUILD_FLAVOR = "prod"
BROWSER_USE_CODEX_APP_VERSION = "26.721.41059"
SKY_CUA_NATIVE_PIPE = "1"
SKY_CUA_NATIVE_PIPE_DIRECTORY = '\\.\pipe\codex-computer-use-3bbd9c1e-0ca7-4093-bfa2-6d9da87114ec'
CODEX_CLI_PATH = 'C:\Users\Administrator\AppData\Local\OpenAI\Codex\bin\69066b736e1e17a4\codex.exe'[shell_environment_policy.set]
BROWSER_USE_AVAILABLE_BACKENDS = "chrome,iab"
NODE_REPL_TRUSTED_BROWSER_CLIENT_SHA256S = "7ed52dae165c3bc22b6d24f282e2c1fbc87f6949fbbe037767a7418d8f517f01,e13fd947e846d3d306e9249dd3c73d14931b6494803dbafb16cef85e6add9506"
NODE_REPL_TRUSTED_CODE_PATHS = 'C:\Users\Administrator\.codex'[windows]
sandbox = "elevated"[desktop]
conversationDetailMode = "STEPS_PROSE"
sansFontSize = 14
codeFontSize = 13
ambient-suggestions-enabled = true
followUpQueueMode = "queue"# 添加一个自定义提供商
[model_providers.lmstudio-launch-codex-app]
name = "lmstudio"
base_url = "http://127.0.0.1:1234/v1/"
wire_api = "responses"[projects.'c:\users\administrator\documents\codex\2026-07-30\nih']
trust_level = "trusted"
2. Ollama
notify = [ "C:\\Users\\Administrator\\AppData\\Local\\OpenAI\\Codex\\runtimes\\cua_node\\f8d2abcb7481383b\\bin\\node_modules\\@oai\\sky\\bin\\windows\\codex-computer-use.exe", "turn-ended" ]# 设置使用模型
model = "gemma4:31b-it-q8_0"
# 设置使用自定义提供者
model_provider = "ollama-launch-codex-app"[marketplaces.openai-bundled]
last_updated = "2026-07-29T18:12:34Z"
source_type = "local"
source = '\\?\C:\Users\Administrator\.codex\.tmp\bundled-marketplaces\openai-bundled'[marketplaces.openai-primary-runtime]
last_updated = "2026-07-29T17:51:32Z"
source_type = "local"
source = '\\?\C:\Users\Administrator\.cache\codex-runtimes\codex-primary-runtime\plugins\openai-primary-runtime'[plugins."visualize@openai-bundled"]
enabled = true[plugins."browser@openai-bundled"]
enabled = true[plugins."documents@openai-primary-runtime"]
enabled = true[plugins."pdf@openai-primary-runtime"]
enabled = true[plugins."spreadsheets@openai-primary-runtime"]
enabled = true[plugins."presentations@openai-primary-runtime"]
enabled = true[plugins."template-creator@openai-primary-runtime"]
enabled = true[features]
js_repl = false[mcp_servers.node_repl]
args = []
command = 'C:\Users\Administrator\AppData\Local\OpenAI\Codex\runtimes\cua_node\f8d2abcb7481383b\bin\node_repl.exe'
startup_timeout_sec = 120[mcp_servers.node_repl.env]
NODE_REPL_NATIVE_PIPE_CONNECT_TIMEOUT_MS = "1000"
NODE_REPL_NODE_MODULE_DIRS = 'C:\Users\Administrator\AppData\Local\OpenAI\Codex\runtimes\cua_node\f8d2abcb7481383b\bin\node_modules'
NODE_REPL_NODE_PATH = 'C:\Users\Administrator\AppData\Local\OpenAI\Codex\runtimes\cua_node\f8d2abcb7481383b\bin\node.exe'
NODE_REPL_TRUSTED_CODE_PATHS = 'C:\Users\Administrator\.codex'
CODEX_HOME = 'C:\Users\Administrator\.codex'
NODE_REPL_TRUSTED_BROWSER_CLIENT_SHA256S = "7ed52dae165c3bc22b6d24f282e2c1fbc87f6949fbbe037767a7418d8f517f01,e13fd947e846d3d306e9249dd3c73d14931b6494803dbafb16cef85e6add9506"
BROWSER_USE_AVAILABLE_BACKENDS = "chrome,iab"
NODE_REPL_INSTRUCTIONS_USE_CASE_BROWSER = "Control the in-app browser in conjunction with the Browser Plugin."
NODE_REPL_INSTRUCTIONS_USE_CASE_CHROME = "Control the Chrome browser in conjunction with the Chrome Plugin. Prefer this method of controlling Chrome over alternatives (such as Computer Use) unless the user explicitly mentions an alternative."
BROWSER_USE_CODEX_APP_BUILD_FLAVOR = "prod"
BROWSER_USE_CODEX_APP_VERSION = "26.721.41059"
SKY_CUA_NATIVE_PIPE = "1"
SKY_CUA_NATIVE_PIPE_DIRECTORY = '\\.\pipe\codex-computer-use-56d4cecf-1281-4414-a895-a3abfc64f401'
CODEX_CLI_PATH = 'C:\Users\Administrator\AppData\Local\OpenAI\Codex\bin\69066b736e1e17a4\codex.exe'[shell_environment_policy.set]
BROWSER_USE_AVAILABLE_BACKENDS = "chrome,iab"
NODE_REPL_TRUSTED_BROWSER_CLIENT_SHA256S = "7ed52dae165c3bc22b6d24f282e2c1fbc87f6949fbbe037767a7418d8f517f01,e13fd947e846d3d306e9249dd3c73d14931b6494803dbafb16cef85e6add9506"
NODE_REPL_TRUSTED_CODE_PATHS = 'C:\Users\Administrator\.codex'[windows]
sandbox = "elevated"[desktop]
conversationDetailMode = "STEPS_PROSE"
sansFontSize = 14
codeFontSize = 13
ambient-suggestions-enabled = true
followUpQueueMode = "queue"# 添加一个自定义提供商
[model_providers.ollama-launch-codex-app]
name = "Ollama"
base_url = "http://127.0.0.1:11434/v1/"
wire_api = "responses"[projects.'c:\users\administrator\documents\codex\2026-07-30\nih']
trust_level = "trusted"[projects.'c:\users\administrator\documents\codex\2026-07-30\ni-h']
trust_level = "trusted"
