OAuth Route Repair Doctor
Use when a repair tool may have rewritten valid Codex OAuth routes or when GPT-5.5/OpenAI routing has stopped working.
Workflow
1. Ask the user for a sanitized JSON config or route export; do not default to reading global config.
2. Run python scripts/oauth_route_repair_doctor.py .
3. If a before/after pair exists, run with --before and --after.
4. Recommend exact route fields to inspect; do not modify config automatically.
Parameters
configor--after: JSON file containing model/provider route data.--before: optional pre-repair JSON file for diffing.--json: JSON output.--self-test: built-in smoke test.
Safety boundary
Read-only validation of user-supplied route exports. Secrets are redacted from output. No config writes, no network calls, no OAuth login actions.