惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
Martin Fowler
Martin Fowler
Vercel News
Vercel News
U
Unit 42
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
爱范儿
爱范儿
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog RSS Feed
N
Netflix TechBlog - Medium
GbyAI
GbyAI
F
Fortinet All Blogs
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
M
MIT News - Artificial intelligence
D
Docker
IT之家
IT之家
Stack Overflow Blog
Stack Overflow Blog

博客园 - KLAPT

Spring Web MVC 中,过滤器(Filter) 和 拦截器(Interceptor) SpringBoot API 接口防刷 ROW_NUMBER() 一台服务器最大能支持多少条 TCP 连接 Gateway 网关 CodeX =>Skills Redis 内存满了怎么处理 SpringBoot 默认配置修改 JWT 续签 Access Token + Refresh Token 双 Token claudeCode 命令 MyBatis 的 Mapper 接口 AI | CC GUI 集成 IDEA 完整教程 在IDEA中使用Claude Code MyBatisPlus解决大数据量查询慢问题 idea 中的 claude code Token Dubbo 和 Spring Cloud Gateway的区别 Transactional 注解中propagation 掌握 Spring 框架这 10 个扩展点 SpringBoot 快速实现 api 加密 Spring Boot/Cloud 中 bootstrap.yml 与 application.yml SpringBoot 实现 DOCX 转 PDF 微服务Token鉴权设计的几种方案 进程、线程、协程 RSA 加密 Java二维码 ntp服务端和客户端 Chronyd与NTP chronyd 作为服务器时钟 chrony
IDEA中使用CodeX
KLAPT · 2026-06-24 · via 博客园 - KLAPT

1.根据官方文档,Codex CLI 需要 Node.js 22+ 环境。在终端(CMD 或 PowerShell )中执行

npm install -g @openai/codex

2.安装完成后,验证是否成功:

codex --version

3.配置文件

~/.codex/config.toml 和 auth.json 正是 Codex CLI 的配置文件:

文件 作用 路径
auth.json 存放 API Key C:\Users\Administrator\.codex\auth.json
config.toml 配置模型、API 地址等 C:\Users\Administrator\.codex\config.toml

如果没有这两个文件,可以手动创建 C:\Users\Administrator\.codex 文件夹,然后新建这两个文件
auth.json:

​​​​​​​{
"OPENAI_API_KEY": "sk-你的真实codex密钥"
}

 
 
config.toml:

model_provider = "codex"
model = "gpt-5.4"
model_reasoning_effort = "high"
disable_response_storage = true
preferred_auth_method = "apikey"
personality = "pragmatic"

[model_providers.codex]
name = "codex"
base_url = "你请求的URL"
wire_api = "responses"

4.回到IDEA 中打开CC GUI插件设置、

image

切换为CodeX

image

选择你配置的模型

image

测试模型

image