在.codex/config.toml里修改toml配置,让coding效率提升好几倍。
官方参考:Codex Config Sample
配置文件位置:~/.codex/config.toml
项目级配置也可使用:.codex/config.toml
此配置由于开启 1M 上下文的能力,Token消耗速度显著高于官方默认
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| project_doc_fallback_filenames = ["CLAUDE.md"]
model = "gpt-5.4" review_model = "gpt-5.4"
personality = "pragmatic"
model_provider = "apigateway"
model_reasoning_effort = "xhigh"
model_context_window = 1000000
model_auto_compact_token_limit = 500000
[model_providers.apigateway] name = "OpenAI" base_url = "api.apitest.com/v1" wire_api = "responses" requires_openai_auth = true
[features] shell_tool = true apply_patch_freeform = true shell_snapshot = true undo = true unified_exec = true multi_agent = true steer = true prevent_idle_sleep = true child_agents_md = true
memories = true sqlite = true fast_mode = false
[memories] consolidation_model = "gpt-5.4" extract_model = "gpt-5.4" max_raw_memories_for_consolidation = 512 max_unused_days = 30 max_rollout_age_days = 45
|