feat(codex): install Codex CLI via mise + cdx tmux launcher#8
Merged
Conversation
Add the OpenAI Codex CLI as a dotfiles-managed agent, mirroring claude-code: - install via mise (npm:@openai/codex); ensure node for the npm backend - pre-create shared-home ~/.codex so setup-shared-symlinks persists `codex login` - cdx launcher (bash + fish): persistent attachable tmux session, root→UID1000 drop - claude alias: add DISABLE_AUTOUPDATER=1 (mise owns the version)
There was a problem hiding this comment.
Pull request overview
This PR adds support for managing the OpenAI Codex CLI through these dotfiles, aligning it with existing agent CLI tooling (notably Claude Code) and providing a persistent, attachable tmux launcher (cdx) for interactive use.
Changes:
- Add a chezmoi
run_onchangeinstaller to provision Codex CLI viamise(npm backend) and prepare shared-home state for persisted auth/config. - Add a
cdxtmux launcher in both Bash and fish, mirroring the existingcccworkflow (persistent, reattachable session). - Update the
claudealias to disable the built-in autoupdater somiseowns versioning.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
dot_config/fish/config.fish.tmpl |
Adds DISABLE_AUTOUPDATER=1 to claude alias and introduces cdx tmux launcher for fish. |
dot_bash_aliases |
Adds DISABLE_AUTOUPDATER=1 to claude alias and introduces cdx tmux launcher for Bash. |
.chezmoiscripts/run_onchange_after_install-codex.sh.tmpl |
Installs codex via mise and prepares shared-home .codex directory for persisted login state. |
…drop ANTHROPIC_MODEL - install-codex creates the ~/.codex → shared symlink itself (migrating any real dir) instead of relying on setup-shared-symlinks, which is run_onchange and won't re-run on an unchanged workspace upgrade (per Copilot review). - drop ANTHROPIC_MODEL=claude-opus-4-7 from the fish claude alias (let Claude pick its current default).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the OpenAI Codex CLI as a dotfiles-managed agent, mirroring how claude-code is handled — part of moving agent CLIs off the Coder Terraform modules (which post-v5 just install the binary).
Changes
run_onchange_after_install-codex.sh.tmpl(new): installcodexvia mise (npm:@openai/codex); ensuresnode@ltsfor the npm backend; pre-creates the shared-home.codexdir (whenCODER=true) sosetup-shared-symlinkssymlinks~/.codex→ shared andcodex loginpersists across rebuilds.dot_bash_aliases/ fish config: addcdx— persistent, attachable tmux session running Codex (sibling ofccc, same root→UID-1000 drop). AddDISABLE_AUTOUPDATER=1to theclaudealias so mise owns the version.Auth
No API key — interactive
codex login(ChatGPT account), persisted via shared-home~/.codex.Pairs with an infra-repo change that drops the claude-code Coder module from the default template, adds a Codex tile, and moves the root-chown to the agent startup script.