This repository was archived by the owner on May 9, 2026. It is now read-only.
feat: agent 0.12.7 (model dropdown in key wizard)#90
Merged
Conversation
The key-wizard at 127.0.0.1:4242 now carries a provider+model picker. For OpenRouter the model <select> is populated live from openrouter.ai/api/v1/models (proxied through the local server, cached 1h) so the full 300+ catalogue is one click away, sorted cheapest-first so Kimi, MiniMax, DeepSeek, Llama, Qwen are easy to find when Opus 4.7 starts hurting. Save writes shared-keys.json AND the active profile's config.json in one motion: paste key, pick model, click Save, say go. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
127.0.0.1:4242with a provider+model picker so the active model is one click away (no more hand-editingconfig.jsonor typing dotted OpenRouter slugs from memory).<select>is hydrated live fromopenrouter.ai/api/v1/models(proxied via a new/openrouter-modelsendpoint, cached 1h, shared across tabs). Options are sorted cheapest first and labeled within $X/M · out $Y/M · N k ctxso Kimi K2, MiniMax, DeepSeek, Llama and Qwen are easy to spot when Opus 4.7 starts hurting.shared-keys.json(keys) and the active profile'sconfig.json(provider,model) in one round-trip. Flow is paste-key → pick-model → Save → say go.anthropic(or vice versa) gets repaired at save time vianormalizeModelForProvider, so on-disk state is always clean.MODEL_SUGGESTIONS.openrouterfrom 4 to 14 entries so the fallback list (when live fetch fails) is still useful.Test plan
pnpm typecheckcleanpnpm buildclean/renders provider + model selects, fallback map present/openrouter-modelsreturns 345 models (200 OK, cached)/savewith{ provider: 'openrouter', model: 'moonshotai/kimi-k2' }flips per-profileconfig.jsonfromanthropic / claude-opus-4-7→openrouter / moonshotai/kimi-k2/keysin chat, pick a non-Opus model, send a message, verify next turn uses the new model