Passing custom header on the CLI

Resolved 💬 3 comments Opened Jun 21, 2025 by Tamir-Schwarz Closed Jul 25, 2025
💡 Likely answer: A maintainer (bolinfest, collaborator) responded on this thread — see the highlighted reply below.

Context
I’m using a custom provider behind the scenes that requires a custom header (specifically X-Requested-With).

is there a way to pass a custom header?

View original on GitHub ↗

3 Comments

bolinfest collaborator · 1 year ago

@Tamir-Schwarz I just merged https://github.com/openai/codex/pull/1473, but I haven't cut a release with it yet. Does that look like it will work for you?

Tamir-Schwarz · 1 year ago

@bolinfest thanks!
i will check it soon 🙏

Tamir-Schwarz · 1 year ago

@bolinfest it worked, thanks!!