Support config.local.toml to override project-shared config.toml

Resolved 💬 7 comments Opened Mar 27, 2026 by skoch13 Closed Mar 27, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

cli

What feature would you like to see?

It will be convenient to have an ability to override project codex settings, e.g. the project has shared MCP settings, but a team member wants to have it disabled or altered the tools available for the MCP server

Additional information

_No response_

View original on GitHub ↗

7 Comments

github-actions[bot] contributor · 3 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #15433
  • #14601

Powered by Codex Action

etraut-openai contributor · 3 months ago

Project-local config overrides are already supported. Refer to this section of the documentation.

skoch13 · 3 months ago

@etraut-openai do you mean by -c cli flags? My request was mostly about the static config file override.

etraut-openai contributor · 3 months ago

No, I'm talking about .codex/config.toml config overrides.

skoch13 · 3 months ago

@etraut-openai sorry I don't get it: I have project .codex/config.toml that I'd like to be able to overwrite. is there a way to achieve that?

etraut-openai contributor · 3 months ago

You have a user-level ~/.codex/config.toml file. You want to override that with a project-level config file. To do so, add a .codex/config.toml file in your project. Refer to documentation for details.

skoch13 · 3 months ago

@etraut-openai I need to clarify my question. Here it is: I have a user-level configuration and a project-level configuration that sets an MCP server. I want to overwrite the project-level MCP configuration. How can I achieve that without using the -c flag?