Skip to content

Support launch-only custom request headers for Codex - #610

Open
andy-xu-db wants to merge 1 commit into
mainfrom
andy/custom-request-headers
Open

andy-xu-db wants to merge 1 commit into
mainfrom
andy/custom-request-headers

Conversation

@andy-xu-db

@andy-xu-db andy-xu-db commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

🥞 Stacked PR

Use this link to review incremental changes.


Summary

  • add repeatable ug codex --header "Name: value" support
  • validate header syntax and protect authentication, routing, and transport headers
  • pass values to Codex through launch-only environment variables without persisting them
  • preserve headers through smart routing and reject collisions with OS-managed Codex headers

Usage

ug codex --header "X-Development-Route: test-target"

Split

Claude Code support is separated into #687.

Testing

  • uv run pytest -q tests/test_cli.py tests/test_agent_codex.py tests/test_codex_smart_routing_v2.py (526 passed)
  • uv run ruff check src tests
  • uv run ruff format --check src tests
  • git diff --check

@andy-xu-db
andy-xu-db force-pushed the andy/custom-request-headers branch from 18cde60 to 3516bf0 Compare September 16, 2026 20:06
@andy-xu-db andy-xu-db changed the title Support custom request headers for Codex and Claude Support launch-only custom request headers for Codex Sep 16, 2026
@andy-xu-db
andy-xu-db force-pushed the andy/custom-request-headers branch from 3516bf0 to 3b30cab Compare September 16, 2026 20:42
@andy-xu-db
andy-xu-db force-pushed the andy/custom-request-headers branch from 3b30cab to 8f296e0 Compare September 16, 2026 20:43
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