You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee9caf6
Browse filesBrowse the repository at this point in the historyBrowse files
Show every model in the /model picker via gateway discovery (#9)
Background research (docs/research/2026-08-20-model-picker.md) found Claude
Code's supported mechanism: CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1
fetches {base}/v1/models at startup and adds rows labeled "From gateway" —
keeping only ids containing claude|anthropic. So:
- Each GPT model gets a second alias, anthropic-compat/<id>, which passes the
filter with a readable name; the alias IS the inference mapping, so picking
the row just works.
- The launcher exports the discovery flag on the proxy route.
- claude-code.disable-cloaking-model-list: true in the proxy config —
without it CLIProxyAPI serves the picker REVERSED pseudo-claude ids
(claude-fable-5-dd-los-6.5-tpg), which is its own filter workaround and
reads as gibberish.
- That option needs a recent CLIProxyAPI, so the installer feature-detects it
on the binary (strings | grep) and upgrades/downloads when absent.
The feature gate initially failed on success: grep -q exits at first match,
strings dies of SIGPIPE, pipefail turns that into failure — the same class as
the json extractors. Guarded the same way, with a regression test.
Verified live on a fresh reinstall: 12 picker rows cached (4 claude +
8 anthropic-compat/gpt), inference on plain and prefixed ids, claude direct.
0 commit comments