Model pillPro
A model picker in one quiet pill: featured models with a note each, an effort submenu that snaps to levels the model accepts, every other model by provider, and a summary that confirms each change.
oxyn add model-pillAnthropic's most capable model for long agent runs and hard problems.
- Provider
- Anthropic
- Context
- 1M tokens
- Input / output
- $15 / $75 per 1M
- Effort
- High
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- A model picker in one quiet pill.
- Open it to choose from featured models (the first four when none are given) with a one-line note each; Effort opens a submenu listing every level, with the ones the model does not accept disabled; More models lists every other model grouped by provider.
- Picking a model whose effort it does not accept snaps the effort to the nearest level it does (snap; ties go lower) and reports it.
- The pill's mark and name crossfade to the choice.
When not to use
- Prompt composer with model picker, voice input, app connections and approval request: use Chat Composer instead.
- The model menu of an AI chat: use Model Picker instead.
- The prompt box for an agent, in six layouts: use Composer instead.
Installation
Model pill is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add model-pillUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
Featured models, an Effort submenu and More models by provider.
Anthropic's most capable model for long agent runs and hard problems.
- Provider
- Anthropic
- Context
- 1M tokens
- Input / output
- $15 / $75 per 1M
- Effort
- High
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Pill
The pill alone, for a composer toolbar.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Three
Three featured: more under More models.
The everyday model: quick, capable at code and writing.
- Provider
- Anthropic
- Context
- 1M tokens
- Input / output
- $3 / $15 per 1M
- Effort
- Medium
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ModelPill
| Prop | Type | Default | Description |
|---|---|---|---|
modelsrequired | Vec<PillModel> | — | The catalog. |
providersrequired | Vec<(String, String)> | — | Providers: id and name, in More models order. |
featured | Vec<String> | Default::default() | Featured ids, in order (the first four when empty). |
show_summary | bool | true | Show the summary under the pill. |
nowrequired | ClockMs | — | Shared clock (the confirmation's timing). |
on_change | EventHandler<String> | — | Picked id. |
on_effort | EventHandler<String> | — | Effort changes (including snaps). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| EnterorSpaceor↓ | Open |
| ↑or↓ | Move |
| Letters | Jump to a model |
| →or← | Open / close a submenu |
| Escape | Close (or back out of a submenu) |
Accessibility
- Menu items are menuitemradio with aria-checked; the confirmation is role=status.
- Reduced motion swaps everything in place.
From the spec
- Menu items are menuitemradio with aria-checked; the confirmation is role=status.
Motion & interaction
Timing
- Menu 160 ms; pages slide 180 ms; crossfades 200 ms.
- Reduced motion swaps everything in place.
Responsive behaviour
- The summary fills its container up to 360 px.
Edge cases (spec)
- Up to 360 px.
Notes for AI
- Import
ModelPillfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ModelPillElinoxyn_gpui. - Props to set first:
models,providers,now. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.