配置方式
通过环境变量接入:配置文件方式
在~/.codex/config.json 中:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 gpt-image-2 图像生成已上线!支持 4K 超清输出。了解详情
在 OpenAI Codex CLI 中接入 SeeOneAPI
export OPENAI_API_KEY="sk-你的API密钥"
export OPENAI_BASE_URL="https://api.seeoneapi.com/v1"
codex
~/.codex/config.json 中:
{
"apiKey": "sk-你的API密钥",
"baseURL": "https://api.seeoneapi.com/v1",
"model": "gpt-4.1"
}
# 交互模式
codex
# 直接给任务
codex "创建一个 Express.js REST API 项目骨架"
# 在当前项目上下文中工作
codex "给所有函数添加 TypeScript 类型注解"