Skip to content

Add CODEX_BIN override for custom Codex CLI path#6

Open
gugglegum wants to merge 1 commit into
benedict2310:mainfrom
gugglegum:codex-bin-override
Open

Add CODEX_BIN override for custom Codex CLI path#6
gugglegum wants to merge 1 commit into
benedict2310:mainfrom
gugglegum:codex-bin-override

Conversation

@gugglegum

Copy link
Copy Markdown

This PR adds an optional CODEX_BIN environment variable that lets TeleCodex use a custom Codex CLI executable instead of the SDK default.

This is useful for local or patched Codex CLI builds, while preserving the existing behavior when CODEX_BIN is unset.

Changes included:

  • Parse CODEX_BIN through TeleCodex config
  • Pass the configured path to @openai/codex-sdk via codexPathOverride
  • Document the new option in README.md
  • Add CODEX_BIN to .env.example
  • Add tests for config parsing and SDK option forwarding

Validation:

  • npm run build
  • npm test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant