---
source_url: https://developers.openai.com/codex/app/config
title: Codex - Config (Basics)
fetched_at: 2026-02-05T23:26:33+08:00
version_or_last_updated: unknown
---

## 配置文件位置（原文摘录）

> User configuration: `~/.codex/config.toml`
>
> Project configuration: `codex.toml`

## 配置解析/覆盖顺序（原文摘录）

> If a setting is provided in multiple places, the precedence order is:
>
> 1. Command-line arguments
> 2. Project `codex.toml`
> 3. User `~/.codex/config.toml`
>
> You can also use `--config` to specify a custom config file path.
