feat: add CODEX_PATH env var for custom binary path (macOS Gatekeeper fix)#5
Open
glenhsu wants to merge 2 commits into
Open
feat: add CODEX_PATH env var for custom binary path (macOS Gatekeeper fix)#5glenhsu wants to merge 2 commits into
glenhsu wants to merge 2 commits into
Conversation
|
Dude, you beat me to it by 48 minutes. :) I think you forgot to commit the changes to |
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
Adds
CODEX_PATHenvironment variable support so users can override the codex binary path — a fix for macOS Gatekeeper silently deleting the SDK-bundled binary.Changes
.env.exampleCODEX_PATHenv var with documentation (optional override for codex binary path)OMLX_API_KEYas commented example for custom provider setupsrc/codex-session.ts(resetCodexClient)process.env["CODEX_PATH"]and passes it ascodexPathOverrideto the Codex constructorREADME.mdWhy
macOS Gatekeeper on Sequoia silently quarantines and deletes the SDK-bundled codex binary at
node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex/— no UI prompt, no entry in System Settings. The SDK then fails with EACCES.With
CODEX_PATH, users point to their homebrew-installed binary (/opt/homebrew/bin/codex) and bypass Gatekeeper entirely.Also includes a complementary setup guide with full step-by-step instructions: https://github.com/glenhsu/telecodex-codex-cli-setup