Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Codex CLI

Lazu 原生支持 OpenAI /v1/responses 接口(wire_api = "responses"),可完整保留 Codex CLI 的工具调用、推理强度控制与缓存能力。

1. 设置环境变量

export LAZU_API_KEY="YOUR_LAZU_API_KEY"

2. 编辑 ~/.codex/config.toml

model_provider = "lazu"
model = "gpt-6.2-astra"

[model_providers.lazu]
name = "Lazu"
base_url = "https://api.lazu.ai/v1"
env_key = "LAZU_API_KEY"
wire_api = "responses"

推荐模型与注意事项

  • 推荐模型:gpt-6.2-astra(旗舰)、gpt-6.2-sol(高速)、gpt-6.1-terra
  • 务必保留 wire_api = "responses",不要降级为 chat_completions。
  • 也可以在控制台直接点击 Key 旁的接入入口一键生成配置脚本。