如题,今天看着 grok 发布了,搞了一个账号在 cpa 上反代,然后想在 codex 里使用,然后使用 ccs 配置, 并且也有model_catalog_json ,在 codex cli 上,使用/model 可以正常显示,但是在 codex app 上,却只能显示和选择gpt 的模型,如图:


然后下面是config.toml的配置,
model_provider = "custom"
model = "grok-4.5"
model_reasoning_effort = "high"
disable_response_storage = true
notify = ["/Users/mac/.codex/computer-use/Codex Computer Use.app/Contents/SharedSupport/SkyComputerUseClient.app/Contents/MacOS/SkyComputerUseClient", "turn-ended"]
model_catalog_json = "cc-switch-model-catalog.json"
[model_providers.custom]
name = "custom"
base_url = "https://xxxxx"
wire_api = "responses"
requires_openai_auth = true
然后是 model_catalog_json的配置:
{
"models": [
{
"additional_speed_tiers": [],
"availability_nux": null,
"base_instructions": "You are Codex, a coding agent. You and the user share the same workspace and collaborate to achieve the user's goals.",
"context_window": 128000,
"default_reasoning_level": "high",
"default_reasoning_summary": "none",
"description": "gpt-5.5",
"display_name": "gpt-5.5",
"effective_context_window_percent": 95,
"experimental_supported_tools": [],
"input_modalities": [
"text"
],
"max_context_window": 128000,
"priority": 1000,
"service_tiers": [],
"shell_type": "shell_command",
"slug": "gpt-5.5",
"support_verbosity": false,
"supported_in_api": true,
"supported_reasoning_levels": [
{
"description": "Disable Thinking",
"effort": "none"
},
{
"description": "Enabled Thinking",
"effort": "high"
}
],
"supports_image_detail_original": false,
"supports_parallel_tool_calls": false,
"supports_reasoning_summaries": true,
"supports_search_tool": false,
"truncation_policy": {
"limit": 10000,
"mode": "bytes"
},
"upgrade": null,
"visibility": "list"
},
{
"additional_speed_tiers": [],
"availability_nux": null,
"base_instructions": "You are Codex, a coding agent. You and the user share the same workspace and collaborate to achieve the user's goals.",
"context_window": 128000,
"default_reasoning_level": "high",
"default_reasoning_summary": "none",
"description": "grok-4.5",
"display_name": "grok-4.5",
"effective_context_window_percent": 95,
"experimental_supported_tools": [],
"input_modalities": [
"text"
],
"max_context_window": 128000,
"priority": 1001,
"service_tiers": [],
"shell_type": "shell_command",
"slug": "grok-4.5",
"support_verbosity": false,
"supported_in_api": true,
"supported_reasoning_levels": [
{
"description": "Disable Thinking",
"effort": "none"
},
{
"description": "Enabled Thinking",
"effort": "high"
}
],
"supports_image_detail_original": false,
"supports_parallel_tool_calls": false,
"supports_reasoning_summaries": true,
"supports_search_tool": false,
"truncation_policy": {
"limit": 10000,
"mode": "bytes"
},
"upgrade": null,
"visibility": "list"
},
{
"additional_speed_tiers": [],
"availability_nux": null,
"base_instructions": "You are Codex, a coding agent. You and the user share the same workspace and collaborate to achieve the user's goals.",
"context_window": 128000,
"default_reasoning_level": "high",
"default_reasoning_summary": "none",
"description": "gpt-5.4",
"display_name": "gpt-5.4",
"effective_context_window_percent": 95,
"experimental_supported_tools": [],
"input_modalities": [
"text"
],
"max_context_window": 128000,
"priority": 1002,
"service_tiers": [],
"shell_type": "shell_command",
"slug": "gpt-5.4",
"support_verbosity": false,
"supported_in_api": true,
"supported_reasoning_levels": [
{
"description": "Disable Thinking",
"effort": "none"
},
{
"description": "Enabled Thinking",
"effort": "high"
}
],
"supports_image_detail_original": false,
"supports_parallel_tool_calls": false,
"supports_reasoning_summaries": true,
"supports_search_tool": false,
"truncation_policy": {
"limit": 10000,
"mode": "bytes"
},
"upgrade": null,
"visibility": "list"
},
{
"additional_speed_tiers": [],
"availability_nux": null,
"base_instructions": "You are Codex, a coding agent. You and the user share the same workspace and collaborate to achieve the user's goals.",
"context_window": 128000,
"default_reasoning_level": "high",
"default_reasoning_summary": "none",
"description": "gpt-5.4-mini",
"display_name": "gpt-5.4-mini",
"effective_context_window_percent": 95,
"experimental_supported_tools": [],
"input_modalities": [
"text"
],
"max_context_window": 128000,
"priority": 1003,
"service_tiers": [],
"shell_type": "shell_command",
"slug": "gpt-5.4-mini",
"support_verbosity": false,
"supported_in_api": true,
"supported_reasoning_levels": [
{
"description": "Disable Thinking",
"effort": "none"
},
{
"description": "Enabled Thinking",
"effort": "high"
}
],
"supports_image_detail_original": false,
"supports_parallel_tool_calls": false,
"supports_reasoning_summaries": true,
"supports_search_tool": false,
"truncation_policy": {
"limit": 10000,
"mode": "bytes"
},
"upgrade": null,
"visibility": "list"
}
]
}
目的就是想在 codex app 上使用 grok 模型,在 opencode 之类的模型倒是可以使用,但是使用 codex 习惯了,有路过的佬可以帮忙看看吗? ^-^