Primary navigation

Team Config

Share Codex defaults, rules, and skills across a team

Team Config groups the files teams use to standardize Codex for their organization. Use it to share defaults, rules, and skills without duplicating setup in every local configuration.

What Team Config includes

TypePathUse it to
Config basicsconfig.tomlSet defaults for sandbox mode, approvals, model, reasoning effort, and more.
Rulesrules/Control which commands Codex can run outside the sandbox.
Skillsskills/Make shared skills available to your team.

Where Team Config lives

Codex loads Team Config from these locations in order of precedence (highest to lowest):

  1. $CWD/.codex/ (current working directory)
  2. $CWD/../.codex/ (parent folders above CWD when inside a repo)
  3. $REPO_ROOT/.codex/ (repo root when inside a repo)
  4. $CODEX_HOME (defaults to ~/.codex/)
  5. /etc/codex/

Each location can include config.toml, rules/, and skills/.

Requirements enforce constraints

Use requirements.toml to constrain defaults like sandbox_mode and approval_policy. Requirements override all defaults, regardless of location, and the UI prevents selecting conflicting values.

For platform-specific setup and examples, see Security.

Supported clients

Team Config works in:

  • CLI
  • IDE extensions (VS Code, Cursor, and the Codex app)

FAQ

Difference between requirements and admin defaults

Admin defaults are a baseline for new machines or automation. Higher-precedence layers or in-session UI changes can override them.

Requirements are constraints that enforce allowed values for a limited set of properties like sandbox mode and approval policy. Users can’t run Codex with conflicting values.