-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat: add OpenAI Codex CLI provider #6263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4624f3c to
a0bd834
Compare
Signed-off-by: RamXX <[email protected]>
a0bd834 to
7bb96e5
Compare
…RamXX-feature/codex-provider * 'feature/codex-provider' of github.com:RamXX/goose: feat: add OpenAI Codex CLI provider
michaelneale
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok I like this. Thanks for this, was timely as I was playing around with codex separately.
|
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. |
|
cc @blackgirlbytes FYI - looks good |
|
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. |
|
nice one @RamXX - very handy. |
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