StarSeaStarAPI
Ready to build?Get an API key — 50% off online top-up →

Codex with StarSea — custom endpoint setup

Custom endpoint parameters

Configuration

Fill in the custom endpoint / provider settings of Codex:

本页不自动改写配置,请按下方参数手动填入。Codex CLI 自 0.147 起只接受 wire_api = "responses"(旧版 chat 协议已被官方移除),本站网关的 /v1/responses 端点已支持,可正常连通(含流式输出、工具调用与推理参数)。
模型建议选已开放该端点的站内模型(实测稳定:glm-5.3-flash、glm-5.3、k3、kimi-k2.7-code、minimax-m3);部分模型暂未开放,若提示「不支持该端点」,换用上述模型即可。
配置位置 ~/.codex/config.toml:在 [model_providers.<自定义名称>] 段内填上方 Base URL(须带 /v1)与 wire_api = "responses",Key 由该段 env_key 指向的环境变量提供,并在文件顶部用 model_provider 选中该段名称。
注意:/v1/responses/compact(上下文压缩)暂未开放,Codex 触发该请求时会失败;建议在配置中关闭自动压缩。

Get a key

Create a key and top up at the Key Desk — online top-up is 50% off.