You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to specify not just a global config.toml but also one specific to my workspace.
For example, I can have the linear MCP installed globally but other MCP servers that only make sense in a specific workspace should only be specified there.
Right now it's possible to change the config.toml that codex uses via an env var or cli arg but I think it's important to be able to specify it at the workspace level. This will allow the configs to be merged together (or overwritten) instead of having to duplicate everything at both levels (workspace and global).
This is a core use-case that all the other major agents / agent CLI tools support except for codex.
Thanks!
Are you interested in implementing this feature?
No response
Additional information
No response
Reacted by Colum Ferry, Juri Strumpflohner, santiago-afonso, Caleb Ukle, MaxKless, James Henry, Leosvel Pérez Espinosa, chenwanz, Gavin Terrance, Steven Nance and 73 more
I submitted PR #3864 implementing workspace-level config.toml! It added --project flag support and config merging. Unfortunately closed due to new feature policy. You're absolutely right - config merging (workspace + global) would be much cleaner than duplicating everything. Hope this gets prioritized someday! 💪
Reacted by enprop, Mark Fomin, Corey Coto, Gonzalo, Davi Busanello and Rafael Vilaça
This should now work if you're using the Codex CLI. You can define a project-local .codex/config.toml file and specify project-specific settings like MCP servers. One caveat: project-local config.toml files are ignored if the project is not trusted.
We're still working on plumbing this feature through for the Codex IDE Extension. I'll keep this thread open until that's complete.
Reacted by Goto Hayato and Ray Jasson
Reacted by Zeno Wu, enprop, Goto Hayato and Ray Jasson
Activity
Ronmi commentedon Aug 23, 2025
I've found a workaround that might be useful if you have
jqinstalled and a valid (and simple).mcp.jsonWARNING: This command might fail as the
sedexpression does not cover all possible cases for themcp_serversformat.MaxKless commentedon Sep 16, 2025
Any feedback on this request? I'd also be happy to help contribute here if that will help move this forward
alanwilhelm commentedon Sep 16, 2025
How is this not already working?
I can't keep a unique config for a project?
MaxKless commentedon Sep 17, 2025
Nope, you can only override the config location with an env var whenever you start codex but you can't keep separate configs and merge them.
jpcaparas commentedon Sep 17, 2025
#2628 (comment)
Hopefully this helps.
etraut-openai commentedon Oct 31, 2025
Here is a PR by @ChrisLinn that provides a good proof of concept for this feature.
MaxKless commentedon Nov 3, 2025
glad to see this gaining traction!! Looking forward to the official implementation :)
LaelLuo commentedon Nov 6, 2025
I submitted PR #3864 implementing workspace-level config.toml! It added --project flag support and config merging. Unfortunately closed due to new feature policy. You're absolutely right - config merging (workspace + global) would be much cleaner than duplicating everything. Hope this gets prioritized someday! 💪
[-]Support workspace-level config.toml[/-][+]Workspace-level config.toml[/+]etraut-openai commentedon Jan 24, 2026
This should now work if you're using the Codex CLI. You can define a project-local
.codex/config.toml file and specify project-specific settings like MCP servers. One caveat: project-local config.toml files are ignored if the project is not trusted.We're still working on plumbing this feature through for the Codex IDE Extension. I'll keep this thread open until that's complete.
etraut-openai commentedon Jan 26, 2026
This will be included in the next release of the IDE Extension! As I mentioned above, it has been implemented in the CLI for the past few releases.
MaxKless commentedon Jan 26, 2026
I love to see it, thanks @etraut-openai !
dyanakiev commentedon Mar 21, 2026
Is this implemented for codex vs code extension?