VsCode中使用Codex

VsCode 插件安装

1、插件中安装 codex
2、配置插件

直接 _Use API Key _,输入你的 _API_KEY _确认即可,然后点击 设置=> Open config.toml

输入配置,不知道下面怎么配干嘛的直接问豆包

javascript 复制代码
model_provider = "aicodemirror"
model = "gpt-5.2-codex"
model_reasoning_effort = "xhigh"
disable_response_storage = true
preferred_auth_method = "apikey"

[model_providers.aicodemirror]
name = "aicodemirror"
base_url = "https://api.claudecode.net.cn/api/codex/backend-api/codex"
wire_api = "responses"
3、 开始使用

Node 安装

1、全局安装 codex

使用 node环境安装,打开命令行输入

javascript 复制代码
npm install -g @openai/codex
2、全局配置

安装后可以看到系统路径下多了一个 .codex文件夹,我们可以在其中配置自己的 key,代理的地址等等

  1. 找到文件夹 C:\Users[ 当前 win 用户 ].codex
  2. 配置 key: 文本打开 auth.json , 输入你的 API_KEY
javascript 复制代码
{
  "OPENAI_API_KEY": "你的API_KEY"
}
  1. 配置项:文本打开 config.toml ,输入以下配置,不知道下面怎么配干嘛的直接问豆包
javascript 复制代码
model_provider = "aicodemirror"
model = "gpt-5.2-codex"
model_reasoning_effort = "xhigh"
disable_response_storage = true
preferred_auth_method = "apikey"

[model_providers.aicodemirror]
name = "aicodemirror"
base_url = "https://api.aicodemirror.com/api/codex/backend-api/codex"
wire_api = "responses"
  1. 命令行验证安装结果,直接命令行输入 codex -V出现版本号则成功
3、 直接开始使用
相关推荐
小碗细面37 分钟前
13种Agent、129套设计系统:Open Design 开源项目完全指南
aigc·ai编程
小码哥_常1 小时前
安卓黑科技:实现多平台商品详情页一键跳转APP
前端
killerbasd1 小时前
还是迷茫 5.3
前端·react.js·前端框架
不会敲代码12 小时前
TCP/IP 与前端性能:从数据包到首次渲染的底层逻辑
前端·tcp/ip
挖AI金矿2 小时前
(十五)MCP协议与插件生态 — 扩展无限可能
开源·个人开发·ai编程·hermes agent·爱马仕agent
kyriewen2 小时前
奥特曼借GPT-5.5干杯,而你的Copilot正按Token收钱
前端·github·openai
AC赳赳老秦2 小时前
投标合规提效:用 OpenClaw 实现标书 / 合同自动审核、关键词校验、格式优化,降低废标风险
开发语言·前端·python·eclipse·emacs·deepseek·openclaw
kyriewen2 小时前
代码写成一锅粥?3个设计模式让你的项目“起死回生”
前端·javascript·设计模式
千寻girling3 小时前
《 Git 详细教程 》
前端·后端·面试
挖AI金矿4 小时前
(十三)多Agent协同
自动化·个人开发·ai编程·hermes agent·爱马仕agent