如果你不想安装 Codex CLI,只需要在使用CODEX APP桌面客户端 可以参考此方法
如果之前你登陆过自己的账号,请先在CODEX APP里面退出当前账号,然后再进行重新配置
警告:之前登陆过自己的GPT账号的,在更换API之后,历史的对话记录会不存在的,因为账号类型的他的历史对话都是保留在GPT账号的空间里面 本地是没有的
但是更换API登陆之后以后所有的历史对话记录都会保存在本地!都不会丢失!
{"OPENAI_API_KEY": "这里填入在我们后台的你自己生成的KEY为密钥"}
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://fast.jnm.lol/v1"wire_api = "responses"requires_openai_auth = true
注意事项:
Copyright © Yisu Cloud Ltd. All Rights Reserved. 2018 版权所有
广州亿速云计算有限公司 粤ICP备17096448号-1
粤公网安备 44010402001142号 增值电信业务经营许可证编号:B1-20181529