Codex CLI
用你的 cheapaimodel 餘額執行 OpenAI Codex CLI。
Codex CLI 支援在設定檔中加入自訂的模型供應商。
設定
匯出你的 Key:
export CHEAPAIMODEL_API_KEY="sk-..."接著在 ~/.codex/config.toml 加入一個供應商:
model = "glm-5.3"
model_provider = "cheapaimodel"
[model_providers.cheapaimodel]
name = "cheapaimodel"
base_url = "https://api.cheapaimodel.ai/v1"
env_key = "CHEAPAIMODEL_API_KEY"
wire_api = "responses"照常執行 codex。Codex 只支援 Responses API;目錄中列有 /v1/responses 的模型都能取代 glm-5.3。