Skip to content

feat: allow overriding CODEX_BASE_URL via env var - #128

Open
Samyak2406 wants to merge 1 commit into
numman-ali:mainfrom
Samyak2406:feat/codex-base-url-override
Open

feat: allow overriding CODEX_BASE_URL via env var#128
Samyak2406 wants to merge 1 commit into
numman-ali:mainfrom
Samyak2406:feat/codex-base-url-override

Conversation

@Samyak2406

@Samyak2406 Samyak2406 commented Jul 27, 2026

Copy link
Copy Markdown

Summary

  • Lets the plugin route through a local optimization/logging proxy like Headroom instead of always hitting chatgpt.com/backend-api directly
  • OAuth headers/account info still attached as before
  • Defaults to the same hardcoded URL when unset

Test plan

  • npx vitest run test/constants.test.ts — 2/2 pass
  • Full vitest suite — 231/231 pass
  • npm run typecheck — clean

Lets the plugin route through a local optimization/logging proxy
(e.g. Headroom) instead of always hitting chatgpt.com/backend-api
directly. OAuth headers/account info are still attached by the plugin
as before; only the destination host changes. Defaults to the same
hardcoded URL when unset, so existing behavior is unaffected.
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