~/.codex/config.toml
:model_provider = "omg"
model = "gpt-5"
model_reasoning_effort = "high"
disable_response_storage = true
preferred_auth_method = "apikey"
[model_providers.omg]
name = "omg"
base_url = "https://apic1.ohmycdn.com/api/v1/ai/openai/codex-omg/v1"
wire_api = "responses"
~/.codex/auth.json
:{
"OPENAI_API_KEY": "你的OhMyGPT-APIKey"
}
/model
选择模型和模式,推荐选择gpt-5 (high)