feat: add OpenAI Codex CLI provider#6263
Merged
michaelneale merged 3 commits intoblock:mainfrom Dec 29, 2025
Merged
Conversation
4624f3c to
a0bd834
Compare
Signed-off-by: RamXX <ramxx@ramirosalas.com>
a0bd834 to
7bb96e5
Compare
1 task
…RamXX-feature/codex-provider * 'feature/codex-provider' of github.com:RamXX/goose: feat: add OpenAI Codex CLI provider
Collaborator
michaelneale
left a comment
There was a problem hiding this comment.
ok I like this. Thanks for this, was timely as I was playing around with codex separately.
michaelneale
approved these changes
Dec 29, 2025
Collaborator
|
I had some issues with my codex install and the desktop - might have to have a follow on, but ran out of time for it. Something to do with path maybe. |
Collaborator
|
cc @blackgirlbytes FYI - looks good |
Contributor
Author
|
Thanks. I've been using it for a few days with no issues. Let me know if there is anything I can do to help you replicate the behavior. |
blackgirlbytes
approved these changes
Dec 29, 2025
Collaborator
|
nice one @RamXX - very handy. |
michaelneale
added a commit
that referenced
this pull request
Dec 30, 2025
* main: fix: adding more open models (#6300) docs: add goose for vs code extension (#6262) feat(code-mode): use server names for MCP extensions (#6284) docs: agent skills compatibility note (#6299) docs: clarify GOOSE_TERMINAL requires ~/.zshenv for zsh users (#6297) feat: add OpenAI Codex CLI provider (#6263) docs: fix Resources menu (#6292) Remove Advent of AI announcement banner (#6291) Add blog post: How We Use goose to Maintain goose (#6289)
cronus42
pushed a commit
to cronus42/goose
that referenced
this pull request
Jan 7, 2026
Signed-off-by: RamXX <ramxx@ramirosalas.com> Co-authored-by: Michael Neale <michael.neale@gmail.com> Signed-off-by: James Loope <cronus@stolenshoe.com>
|
I can't currently get my Codex to work with goose :\ |
2 tasks
RamXX
added a commit
to RamXX/goose
that referenced
this pull request
Feb 1, 2026
When the Codex provider spawns `codex exec`, the subprocess inherits the parent process PATH, which is limited when launched from the desktop app. This causes failures finding Node.js and other dependencies needed by the codex CLI. Add PATH propagation using SearchPaths (matching the existing pattern in gemini_cli.rs) so the subprocess gets access to common binary locations like ~/.local/bin, /opt/homebrew/bin, and ~/.npm-global/bin. Fixes issue reported in block#6263 (comment by @Aerasyn).
Contributor
Author
RamXX
added a commit
to RamXX/goose
that referenced
this pull request
Feb 1, 2026
When the Codex provider spawns `codex exec`, the subprocess inherits the parent process PATH, which is limited when launched from the desktop app. This causes failures finding Node.js and other dependencies needed by the codex CLI. Add PATH propagation using SearchPaths (matching the existing pattern in gemini_cli.rs) so the subprocess gets access to common binary locations like ~/.local/bin, /opt/homebrew/bin, and ~/.npm-global/bin. Fixes issue reported in block#6263 (comment by @Aerasyn). Signed-off-by: RamXX <ramxx@ramirosalas.com>
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.
Summary
Add a new CLI provider that integrates with OpenAI's Codex CLI tool, allowing users to use their ChatGPT Plus/Pro subscription through goose's interface. This follows the same pattern as the existing Claude Code provider.
Features:
codex execcommand for non-interactive modeCODEX_REASONING_EFFORTCODEX_ENABLE_SKILLS--skip-git-repo-checkviaCODEX_SKIP_GIT_CHECKSupported models (Codex CLI v0.77.0):
Configuration:
GOOSE_PROVIDER=codexto enableCODEX_COMMANDfor custom CLI path (default: codex)CODEX_REASONING_EFFORT: low, medium, high (default: high)CODEX_ENABLE_SKILLS: true/false (default: true)CODEX_SKIP_GIT_CHECK: true/false (default: false)Type of Change
AI Assistance
This PR was developed with Claude Code assistance. All code was reviewed, tested manually with real Codex CLI integration, and validated against existing patterns in the codebase (particularly claude_code.rs). Unit tests achieve comprehensive coverage of the provider functionality.
Test plan
cargo test --package goose --lib providers::codex::testsCODEX_SKIP_GIT_CHECK=truefor non-git directoriesManual test:
Requirements
npm i -g @openai/codexorbrew install --cask codex)CODEX_SKIP_GIT_CHECK=true)🤖 Generated with Claude Code