Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.momoapi.top/llms.txt Use this file to discover all available pages before exploring further.

Codex CLI配置使用教程

Codex CLI 使用 OpenAI 兼容接口,因此 Momoapi 地址需要追加 /v1 配置目录: 如果 .codex 目录不存在,请先创建目录。 创建或编辑 config.toml
创建或编辑 auth.json
配置说明: 保存后重启终端,在项目目录运行:
如果 Codex 无法正常启动或请求失败,请按顺序检查:
  1. config.toml 是否位于 .codex 目录。
  2. auth.json 是否位于同一个 .codex 目录。
  3. base_url 是否为 https://momoapi.top/v1
  4. OPENAI_API_KEY 是否属于 Codex 分组。
  5. model 是否为 Momoapi 控制台实际可用模型。