Repository navigation
v1.1.0: Claude Desktop support + BOM fix
New: Configure Claude Desktop app support via the 3P gateway config.
Fix: BOM-less UTF-8 for all JSON writers. PowerShell 5.1 was adding a BOM that broke the Claude Desktop app's JSON parser, causing the 3P config to be silently ignored.
Fix: Multiple Codex config issues (wire_api removal, auth_mode gate, env_key resolution, base URL format).
Install
irm https://raw.githubusercontent.com/TechTronixx/Custom-modelswitch/main/bootstrap.ps1 | iexWhat's new in v1.1.0
- Configure Claude Desktop: writes the 3P gateway config (configLibrary entry with base URL, API key, auth scheme, model list)
- BOM fix: all JSON writers now produce BOM-less UTF-8 (the Claude Desktop app rejects BOM)
- Codex fixes: no wire_api, auth_mode=apikey, env_key as persistent User env var, root base_url for /responses
- TOML fix: root keys placed before first [table] header
- Code cleanup: removed dead $cancelled variable, $args shadowing
- Added CLAUDE.md for contributors
Note
Routing official clients to third-party endpoints may violate their Terms of Service. See the README disclaimer. Use at your own risk.