- Windos 里面使用Codex cli 建议使用 Windows Terminal 进行替代终端cmd 启动Codex cli- Windows Terminal 在使用和多开窗口上更加舒适和方便。- Windows Terminal 下载地址为:https://github.com/microsoft/terminal/releases/tag/v1.23.20211.0 需要魔法才能打开。- Windows Terminal 国内免魔法网盘下载地址:https://www.ilanzou.com/s/MzWnpE05

(如果已安装过可以跳过) 检查是否安装命令:node -v
1、安装Node.js 需要node20+以上版本 下载软件包进行安装:https://nodejs.org/en/download 一路点下一步到图片的位置注意勾选一下就行啦。



特殊情况说明:
需要重新下载再安装一次!重新打开终端就行。
如果在输入终端启动codex的时候发现里面出现脚本禁止运行脚本报错?

先编辑下配置文件(如果没有就新建,存在的话就覆盖)
model = "gpt-5.4"model_reasoning_effort = "xhigh"disable_response_storage = truesandbox_mode = "danger-full-access"windows_wsl_setup_acknowledged = trueapproval_policy = "never"profile = "auto-max"file_opener = "vscode"model_provider = "codex"web_search = "cached"suppress_unstable_features_warning = true[history]persistence = "save-all"[tui]notifications = true[shell_environment_policy]inherit = "all"ignore_default_excludes = false[sandbox_workspace_write]network_access = true[features]plan_tool = trueapply_patch_freeform = trueview_image_tool = trueunified_exec = falsestreamable_shell = falsermcp_client = trueelevated_windows_sandbox = true[profiles.auto-max]approval_policy = "never"sandbox_mode = "workspace-write"[profiles.review]approval_policy = "on-request"sandbox_mode = "workspace-write"[notice]hide_gpt5_1_migration_prompt = true[model_providers.codex]name = "codex"base_url = "http://domainxxx.com/v1"wire_api = "responses"requires_openai_auth = true
auth.json 直接粘贴或者覆盖为以下配置
{"OPENAI_API_KEY": "这里填入在我们后台的你自己生成的KEY为pk_live_mm开头的密钥"}
然后打开就能自动登录Codex cli了

Copyright © Yisu Cloud Ltd. All Rights Reserved. 2018 版权所有
广州亿速云计算有限公司 粤ICP备17096448号-1
粤公网安备 44010402001142号 增值电信业务经营许可证编号:B1-20181529