Make local config path configurable instead of fixed to ~/.codex/config.toml
Resolved 💬 5 comments Opened Dec 13, 2025 by imjb87 Closed Dec 13, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
The VS Code Codex extension currently hard-codes the local config path to ~/.codex/config.toml, which causes issues in environments where the user’s home directory isn’t writable or is locked down (e.g., remote SSH containers, shared hosting, Cloudways-style environments, corporate setups, restricted $HOME permissions, etc.).
It would be helpful if the extension allowed the config path to be overridden, similar to how you can set a home path for remote SSH containers to get around permissions issues.
This would make the extension far more flexible and usable in real-world environments where $HOME can’t be modified.
Additional information
_No response_
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Hi! I would like to work on this.
I have analyzed the codebase and confirmed that the Rust CLI already uses the
CODEX_HOMEenvironment variable (inmod.rs) to determine the config path. To resolve this issue, we just need to expose this capability through the TypeScript SDK so the extension can utilize it.My Implementation Plan:
sdk/typescript/src/codexOptions.ts: Add a codexHome property to the CodexOptions interface.sdk/typescript/src/codex.ts: Pass this option through the constructor to the executor.sdk/typescript/src/exec.ts: Modify the env injection logic to setenv.CODEX_HOME = args.codexHomeif provided (following the existing pattern used forOPENAI_BASE_URLandCODEX_API_KEY).Please assign this to me!
This can be specified with the environment variable
CODEX_HOME. Make sure to relaunch your editor once you set the environment variable.This won't work if the login shell profile and .bashrc live in the home directory and are not writable.
@etraut-openai just highlighting this reply in case you've missed it?