﻿---
title: "Profile 是独立文件，不是 [profiles] 表"
summary: "旧博客里的 [profiles.fast] 已经过时。现在是 ~/.codex/fast.config.toml，用 --profile fast 加载。"
category: config
level: intermediate
surfaces: [cli]
tags: ["profile", "--profile", "过时博客"]
canonical: /tips/profile-files-not-tables/
---

# Profile 是独立文件，不是 [profiles] 表

旧博客里的 [profiles.fast] 已经过时。现在是 ~/.codex/fast.config.toml，用 --profile fast 加载。

正确写法：

```toml
# ~/.codex/fast.config.toml
model = "gpt-5.6-luna"
model_reasoning_effort = "low"
approval_policy = "on-request"
sandbox_mode = "workspace-write"
```

```toml
# ~/.codex/deep.config.toml
model = "gpt-5.6-sol"
model_reasoning_effort = "high"
plan_mode_reasoning_effort = "xhigh"
approval_policy = "on-request"
```

启动：

```bash
codex --profile fast
codex --profile deep-review
```

Profile 文件只写与个人默认的差异。不要再把配置嵌进 `[profiles.NAME]`——新版本会拒绝并提示迁移。

## 来源

- [OpenAI · Advanced configuration](https://developers.openai.com/codex/config-advanced)
