获得徽章 18
Codex 如何自定义 Base URL(比如:通过第三方代理购买的 API key):
- 配置 base_url:`vi ~/.codex/config.toml`
写入以下内容:
```
model = "gpt-5.3-codex"
model_provider = "custom"
preferred_auth_method = "apikey"
[model_providers.custom]
name = "custom"
base_url = "
api-vip.codex-for.me"
wire_api = "responses"
requires_openai_auth = true
```
- 配置 API key:`vi ~/.codex/auth.json`
```json
{
"auth_mode": "apikey",
"OPENAI_API_KEY": "your_api_key"
}
```
- 配置 base_url:`vi ~/.codex/config.toml`
写入以下内容:
```
model = "gpt-5.3-codex"
model_provider = "custom"
preferred_auth_method = "apikey"
[model_providers.custom]
name = "custom"
base_url = "
wire_api = "responses"
requires_openai_auth = true
```
- 配置 API key:`vi ~/.codex/auth.json`
```json
{
"auth_mode": "apikey",
"OPENAI_API_KEY": "your_api_key"
}
```
展开
评论
3
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
Kiro 的 Spec 模式,花了10多个小时,写了13W行代码,结果做了个垃圾出来,全是语法错误,跑不起来。调教了N次都改不好,而且中间多次搞不清楚项目目录层级,浪费我的时间。![[发怒]](//lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_12.0f24f23.png)
![[发怒]](//lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_12.0f24f23.png)
![[发怒]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_12.0f24f23.png)
![[发怒]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_12.0f24f23.png)
1
1
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇沸点
![[调皮]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_13.aaa8265.png)