love1sbug on X, on v0.1.1220: switching Names in agents' lists (Agent
列表里的名称) between Off, Not on names I set and On still changed
nothing in the agent's model list. For Claude Code that was so: the
modelPicker magpie writes into ~/.claude/settings.json labelled every
model with viaMagpie's Option.Label, the name alone (magpie's own
picker shows the provider in its Note), so no mode changed a row.
SyncCatalog did rewrite the file on each change, with the same rows.
writePicker now labels each row as every other agent's list names the
model: provider.Labels over the catalog Claude Code is shown
(listLabels in route.go), so On gives "GLM-4.6 · Relay" and "Mix ·
routing group", Not on names I set drops it from a name the user gave,
Off drops it everywhere. A description that would repeat what the label
says ("Relay · via magpie" under "GLM-4.6 · Relay") is "via magpie".
TestClaudePickerFollowsSuffixMode sets each mode through
provider.SetSuffixMode with catalog.Changed = SyncCatalog, as magpie
does, and reads the labels and descriptions back from settings.json; it
fails on the old claude.go (every mode gave "GLM-4.6"). The routing
group test now expects "Auto DeepSeek · routing group" / "via magpie".
Run: go test -tags nogui ./internal/agent ./internal/gui
./internal/provider; gofmt -l; go vet on darwin, GOOS=linux,
GOOS=windows.
Not tried: a real Claude Code's /model reading the new labels (the
picker's label key is the one magpie wrote before, only its text
changed).
A DeepSeek V4.1 Flash routing group set to 500K reached the catalog as
Context 500000, but magpie's default working window (settings.Working,
272K, #876) cut it: Codex's magpie-models.json said context_window
272000, max_context_window 500000, and Codex runs to 95% of
context_window, the ~258K in the report. Claude Code showed 500K
(CLAUDE_CODE_MAX_CONTEXT_TOKENS) while magpie also wrote
CLAUDE_CODE_AUTO_COMPACT_WINDOW=272000, so it compacted at 272K too and
only displayed the larger number.
From Codex's source (openai/codex @0c7362d, codex-cli 0.162.1):
config.toml's model_context_window sets context_window to
min(value, max_context_window); usable = context_window x
effective_context_window_percent (95 by default); the auto-compact
limit is min(model_auto_compact_token_limit, 90% of context_window).
magpie writes neither config key and still doesn't, so a user's own
model_context_window keeps working as before.
magpie's default compaction now gives way to a window the user typed,
as it already gives way to Claude Code's own autoCompactWindow
(602d4ec6):
- provider: Entry.WindowSet marks a window typed on the provider for
the model or all its models (ContextOf) or on the group (a size).
CompactFor answers the threshold Codex is told: a per-model or
provider Compact at first (CompactSet), else that whole typed window
when no size is typed in Settings, else 0 (the default). Used by the
gateway's Codex list (codexListed) and WindowTyped for Claude Code.
- agent: magpie-models.json (and the WSL twin) take CompactFor, so the
group says context_window 500000 with no max; Claude Code gets no
AUTO_COMPACT_WINDOW on a typed window unless Compact at is typed in
Settings.
- A model nobody typed a window for keeps 272K, and a Compact at size
typed in Settings still comes before a typed window.
- gui: unchanged. f36e744c3 shortened Settings > Long conversations to
one line upstream; it no longer spells out precedence.
Run:
- internal/agent TestTypedWindowReachesCodexAndClaudeCode: group 500K,
provider per-model 400K, an untyped 1M model, then Compact at 300K;
checks magpie-models.json, the gateway's Codex list and Claude Code's
env. On the old code it fails 6 ways (272000/500000 and 272000/400000
on disk, list Compact 0, Claude compact 272000), checked by reverting
the non-test files.
- Sandbox HOME with the built binary and real codex 0.162.1
(`codex debug models`): old binary group/ds-flash 272000 / max
500000; new 500000, no max. A per-model `context` override of 1m:
old 272000 / 1000000, new 1000000. `magpie model compact 300k`:
300000 with the typed window as max. Claude Code in the sandbox: old
wrote AUTO_COMPACT_WINDOW=272000 + MAX_CONTEXT_TOKENS=500000, new
only MAX_CONTEXT_TOKENS=500000.
- gofmt -l, go vet (darwin, GOOS=linux -tags nogui, GOOS=windows), the
three builds, go test -tags nogui ./...: 45 packages ok. At load
average ~115 agent, gateway, library and provider hit the 10m
timeout with no failure. Rerun with -timeout 40m, agent, library and
provider pass. gateway failed three timing tests that pass 3 of 3
alone: TestOTelWaterfallIncludesUnbilledFallback (#1794, already
fixed on origin/main by 6ae6b3402), TestCodexHeardWithinItsIdleTimeout
(#1800, open) and TestIntentClassifierFails (filed as #1829).
Not tried: a real `codex exec` turn against a sandbox gateway (the
catalog Codex reads was checked with `codex debug models` instead), and
Windows itself; the path is the same Go code on every OS.
iomect: "目前只有官key可以开启快速模式, 希望在路由设置中 支持给供应商也开启快速模式".
Fast mode (OpenAI's service_tier "priority") was offered only on a
ChatGPT account, an OpenAI key, Cursor and an Anthropic key's Opus. A
relay or sub2api the user added themselves had no toggle, though Codex's
own Fast already reaches such a provider as asked (OwnTier, #1234).
What changed
- provider.OwnFast: a GPT/o-series model (by its slug, openai/GPT-x
too) on a provider the user added by its address (no preset, no
account, no plugin, not a cloud), served on an OpenAI API (Chat or
Responses), not OpenAI's own host. CanFast now includes it, so the
Routing group member toggle and the agent picker's bolt offer it.
Nothing is on by default: it is sent fast only when the user switches
it.
- gateway: such a member or pick is asked for service_tier "priority"
on the provider's Chat/Responses API whatever API the agent spoke. An
Anthropic-speaking agent gets it through the translated request
(forwardTranslated, via a ctx mark), and Claude's speed "fast" or its
beta is never sent to the user's provider (a relay may turn it away).
A provider that turns service_tier away is asked again without it and
not sent it again (the existing optional-field refusal path, keyed per
provider and protocol).
- gui: canFast members/models carry ownFast; the toggle's and the bolt's
titles say fast is asked of the provider, "where your provider serves
it", in en/zh/zh-TW/ja/de.
Not done: a provider's Claude model is not sent Claude's fast mode (no
way to know a relay serves speed "fast"), and no relay is special-cased.
What was run
- go test -tags nogui ./internal/provider ./internal/agent ./internal/gui
./internal/gateway (gateway -timeout 40m): ok.
- New: TestOwnFast, TestFastMemberOwnProvider (chat/responses/anthropic
asks, plus a relay with an Anthropic URL too: no speed),
TestFastMemberOwnProviderRefusing (refused once in 3 calls per API),
TestFastPickOwnProvider; TestCanFast checks OwnFast is false for every
vendor-official case.
- Broken by hand: without the forwardTranslated tier line the anthropic
cases go red (no tier sent, refused 0 in 2); with withFast ungated the
both-APIs relay case goes red (speed:fast sent to /v1/messages); with
the ownFast titles off, fast-pick and group-member-fast go red in every
language.
- GUI: group-member-fast, fast-pick in Chromium and WebKit; gui-ja,
gui-de, i18n-keys in Chromium.
- gofmt -l clean; go vet -tags nogui GOOS=linux and GOOS=windows clean.
- Not tried against a real relay's priority tier.
magpieModels gave a routing group no native API, since its members may
each want another. Pi, omp and droid then asked every group on Chat
Completions, and dsh put it on its Chat route, even a group of GPT
members all served on Responses. The gateway translated each answer from
Responses to Chat, and that translation holds a tool call's arguments
until the call ends (#613), so Pi's Code Mode saw no code until the whole
call had been generated.
A group now has APIs ["responses"] when every member, nested groups'
included, is served best on Responses (allResponses over the group's
members, by Provider.Native). Any other group keeps none: one with a Chat
member, and a Messages-only group too, as the gateway knows whether a
Claude thinks adaptively by its own model id, not the group's. dsh moves
a start on such a group to its Responses route (dshStartOnItsRoute); a
dsh session resumed on it asks for the model once, as for any model that
moved routes.
The rest of the request (a protocol picked per group, conversion shown
per request) is not in this commit.
Verified:
- TestPiModelsAskedOnTheirNativeAPI: auto-gpt-5-5, a GPT group and a
group of that group get openai-responses; a group with a Chat member
and one of Messages-only members get none. Without the route.go change
it fails for the three Responses groups.
- TestOmpModelsAskedOnTheirNativeAPI: the same for omp.
- TestGroupOnResponsesRelaysArgumentDeltas (gateway): a group of two
Responses-only members asked on /v1/responses relays each
function_call_arguments.delta as the vendor sent it, on /responses.
It guards what this change relies on, and passed before it too.
- go test ./internal/agent ./internal/provider, gofmt -l, GOOS=linux and
windows go vet -tags nogui.
- Not tried with a real Pi against a real group.
The standalone Codex CLI that names magpie its model_provider reads its
models from ~/.codex/magpie-models.json (model_catalog_json, which Codex
prefers over a provider's model_catalog_url). magpieModels() built that
file's models without OwnTier, Tiers or Fast, so every entry had
service_tiers: [] and Codex never registered /fast, while the gateway's
lists (CodexListed for the backend, CodexCatalog for /v1/codex/models)
did offer the tiers since 68aab298 (#1234).
- provider.CodexTiers is now the one place that decides those three
fields from an Entry: a provider added by its address (OwnTier),
another magpie's tiers (#1234), Fast on a group a ChatGPT account's GPT
model is in. codexListed and magpieModels both call it, so the file and
the gateway's lists can't drift apart again.
Run:
- TestCodexCatalogTiersReachDisk (new): connects Codex on sub/gpt-6.1-sol
of a provider added by its address and checks magpie-models.json offers
it priority/Fast, glm-4.6 nothing, and that the file's tiers equal
/v1/codex/models' for every model. With the CodexTiers call taken out of
magpieModels it fails: 'offers sub/gpt-6.1-sol "", want "priority:Fast "'.
- Real codex-cli 0.162.0, CODEX_HOME a sandbox copy of what the test
writes (base_url pointed at a dead port): `codex debug models` lists
sub/gpt-6.1-sol with service_tiers [priority Fast]; built from the old
code, [].
- go test internal/agent, internal/provider, internal/codexcat;
gofmt -l clean; go vet darwin/linux/windows on the touched packages;
go test -tags nogui ./... under the queue lock.
Not tried against the reporter's relay.
#1438 (yhong91): GET /v1/models listed grok/grok-4.7 with context_window
256000 (the Grok backend's own) and max_output_tokens 500000 (models.dev's
x-ai entry, which catalog.Decorate fills in when the backend gives no
output). A client that reads both sizes its replies past what the window
holds. The agents' files already kept output within the window (maxTokens,
#338/#347), but the gateway's lists, the GUI and the CLI did not.
What changed:
- provider.OutputWithin(window, output) and Entry.PublishedOutput(): the
output is kept within the window; an unknown window or output (0) is left
as it is.
- Every place that publishes the pair uses it: modelObject (/v1/models),
cursorLocalModel (Cursor Private Inference), Muse Code's list, the
Gateway page's models and groups (providerInfo, providersState), the
agents' maxTokens, and `magpie model output` (which also says
"500k, kept within its 200k window" when it lowers one).
- Entry.Output stays the model's own limit. The request-path cap
(outputLimit/withMaxOutput) and the user's Max output setting are
unchanged, so no request is lowered further than before. This is why the
clamp is not in replyLimit/entryFor as the issue suggests, and why the
commenter's patch (modelObject only) was not taken as is: it was right
but missed Cursor, Muse, the GUI and the CLI.
- docs/subsystems/gateway-routing.md: the rule and its routes.
Tests (each fails without the change):
- gateway TestModelListsKeepOutputWithinTheWindow: models.dev 500000 over a
backend 256000 window, plus output within the window, unknown window and
unknown output, on /v1/models, Cursor's capabilities and Muse's limit; a
group request with max_tokens 300000 still reaches upstream as 300000.
- provider TestOutputWithin, gui TestProviderModelOutputWithinTheWindow,
TestModelOutputCmdWithinTheWindow.
Breaking it by hand: OutputWithin returning output unclamped turns all of
them red, plus agent TestMaxTokensWithinContextWindow; gateway sites back
on e.Output turn the gateway test red on all three lists; moving the clamp
into Entry.Output turns the fixture and the group-request guard red.
Real data: an offline dump of the owner's catalog (copies of
~/.config/magpie and its caches, 203 entries) has 3 models with output
over their window, grok/grok-4.5, 4.6 and 4.7 (256000 vs 500000), now
published as 256000; 0 are not Grok. The live gateway on 3425 was not
running, so /v1/models itself was not read, and no real Grok request was
made.
Run: gofmt -l; go vet -tags nogui ./... on darwin, linux and windows;
go test -tags nogui ./... -count=1: all green except
TestLoopEndsWorkBuddysReply/plugin/anthropic ("let go only after 3207
lines", bound 2000) at load average ~35 with other suites running; it
passes 5 of 5 alone and does not touch the output limit or request path.
What changed
- The local magpie asks a remote magpie's /v1/models with a new header,
X-Magpie-Prices (provider.PricesHeader, beside the Drawers and
Videomakers headers in listHeaders).
- The remote answers each model's "magpie_price": what its own Usage page
counts the model at (provider.EntryPriceIn: the price its user set by
hand, else its provider's list price at its price rate; a routing group
only when every member costs the same). EntryPriceIn is agent/route.go's
entryPrice moved into provider unchanged, so the agents' cost and the
remote's price are one rule.
- It tells prices only to a request from its own computer or one let in
with a gateway key (local || sharedWith), and only when asked: a machine
let in without a key (MAGPIE_ADDR open, not shared) and an older magpie
or an agent that sends no header get nothing new.
- The local keeps the price with the fetched list (catalog.Model.Price; read
raw, so an odd value or a negative part drops the price and keeps the
model and the list) and uses it as that provider's list price
(ListPrice -> remotePrice). A price the local user set (provider/model,
provider/*, */model) still comes first, and the local provider's own
price rate still applies on top.
- Old remote <-> new local: no field, models priced as before.
Old local <-> new remote: no header, nothing new sent (and an unknown
field would be ignored by encoding/json anyway).
- The model editor's price tooltip and `magpie model price` say the greyed
price is what the other magpie counts the model at (remoteList; new
string in zh, zh-TW, ja, de).
- Side effect: smallModel/cheapest picks over a remote's models (image
description, web search) now see these prices, where every remote model
was unpriced before.
- docs/subsystems/providers-accounts.md: a row for it.
What was run
- New TestRemoteMagpiePrices (real gateway handler behind lanGuard as the
remote, a local remote-magpie provider fetching it): the remote's hand-set
price is the local's price; a real chat call through it costs $9 on both
the local's and the remote's usage records; the local's own price wins
and survives a refetch; an old remote's list leaves the model unpriced.
New TestRemoteMagpiePricesTold: priced for loopback asking, not without
the header, not for a keyless LAN caller with MAGPIE_ADDR open, priced
with a gateway key. New TestLiveMagpiePrice in catalog.
- Broken by hand, each red: no remotePrice in ListPrice (FAIL: priced
false); remote price over the user's (FAIL: remote's price won); the
local/sharedWith gate removed (FAIL: keyless machine priced); the header
gate removed (FAIL: told to a list that didn't ask); sane() always true
(FAIL: a/negative priced). A string-typed magpie_price first failed the
whole list ("not a model list"), hence the raw read.
- gofmt -l clean; go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./...: clean; go build, GOOS=linux -tags nogui and
GOOS=windows builds OK; go test -tags nogui ./... green under a temp HOME
with pinned caches.
- GUI: model-price-edit (new remote-title check), model-price-tiers,
provider-price-rate, gui-ja, gui-de, gui-zh-tw, i18n-keys: 18/18 in
Chromium and WebKit; the title check goes red with the remoteList branch
removed.
- Not tried between two real magpie binaries on two computers, nor in the
real window.
Where Codex compacts a long conversation reached the gateway's /models
(provider.CodexListed sets catalog.Model.Compact) and Claude Code
(claude.go calls provider.CompactSet), but not the list magpie writes for
Codex on disk: magpieModels left Compact unset, so codexcat fell back to
the threshold for every model. A threshold the user set on a model or on
its provider did nothing while Codex read that list — the case where Codex
is not signed in to ChatGPT and model_catalog_json is what it reads.
magpieModels now carries it, as the gateway's list and Claude Code already
do. provider.CompactSetIn is compactSet for a caller holding the settings
and the group finder already, as EffectivePriceIn is for prices: this loop
runs for hundreds of models at magpie's start.
TestCodexCatalogCompactAtReachesDisk fails without the change (204800, want
100000) and passes with it: relay's "*" and then relay/glm-4.6's own
threshold reach the file, with the model's window kept as the maximum, and
the whole window comes back when they are cleared.
Co-authored-by: TryWorld2026 <tryworld@users.noreply.github.com>
OpenAI bills gpt-6-astra, gpt-6.1-sol and gpt-6-luna over 272K input at 2× input and cache and 1.5× output, for the whole request. A price now has tiers: `magpie model price <m> 10,50,1,12.5 --tier 272k 20,75,2,25` (--tier can repeat). A tier applies when input + cache reads + cache writes is over its size, so 272,000 is not over and 272,001 is. The built-in prices take tiers only where models.dev lists one (cost.tiers of type "context"), and it does list one for those three. The ledger, each request and OTLP are costed at the tier the call reached. Session and day totals sum many calls, so they stay at the base price.
Anthropic bills a cache write kept for an hour at 2× input and one kept for 5 minutes at 1.25×. Its usage reports which is which in cache_creation.ephemeral_5m/1h_input_tokens. The gateway (API and Claude subscription) and Claude Code's transcripts now keep that split. A price's fifth part is the 1-hour write. When it isn't given, it is 2× input: that is Anthropic's rule, and only Anthropic reports 1-hour writes. Claude list prices carry the 2× too. cache_write_tokens is still the total, and the usage CSV adds cache_write_5m_tokens and cache_write_1h_tokens at the end. The app shows the split on a request's Cache and on the usage tooltips. Old prices and old records, which have no 1-hour part, read as before. The sessions cache (18) and the call cache (calls-v8) are re-read once.
In the GUI, the price boxes were number inputs and dropped what they didn't parse ("0,25"). They are now decimal text boxes that take both "0.25" and "0,25". A model's price row has a 1-hour box (empty means 2× input) and a quiet Long-context price row. That row shows the list's tier greyed in, or sits behind a link when the list has none. A bad size is refused by name. en/zh/ja/de.
Tests:
- New: TestPriceTiers, TestCostSplit, TestPriceJSON, TestModelPriceTiers, TestModelPriceTierCmd, TestAnthropicCacheWriteSplit and TestClaudeCacheWriteSplit. The ledger CSV test expects the new columns.
- model-price-tiers.test.cjs is new; model-price-edit and provider-price-rate are updated. All of them fail against the old assets and pass in WebKit. Chromium couldn't be launched here.
- go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass.
- The opened row follows the boards: what to do in the agent, running copies with the old list, Claude Code's tiers (each with its own effort beside its model again, #536), the model list by whose models they are with what's hidden, the model new sessions start on, what connecting costs (Gemini's Google sign-in), and the files put back on disconnect, shown line by line.
- Disconnecting asks first and shows the lines it puts back. Secrets are masked, and a config of tens of thousands of lines diffs in a fraction of a second.
- Connecting prefers the agent's own subscription when magpie serves it (Claude, Codex).
- The dry run goes through proc.
- Every model hidden still keeps the row connected, with the way back to the list (#356).
- Routing groups are named in Chinese.
- Phone widths: the pickers and squares wrap inside the opened row, and the name stays beside its logo.
GUI tests moved to the new rows: connected fixtures carry refs and open the row from its link. tier-effort and mobile-web each found a real gap and now guard the fix.
Tried in a sandbox HOME with the owner's real accounts:
- Claude Code: connected, a request answered, and disconnect restored the settings exactly.
- OpenCode: a request answered.
- Gemini CLI: connected.
- Codex: connected.
- Model list picks were saved.
go vet, builds (darwin, GOOS=windows, GOOS=linux -tags nogui) and go test -tags nogui ./... under a temp HOME pass. The agent GUI tests pass except cli-update's tight-row case, menu-scroll and old-webkit, which fail on main too.
Claude Code's picker had 37 rows where Codex's has 18. The Claude subscription added in magpie is, while Claude Code is signed in, the account Claude Code asks on its own, and both groups are titled "Claude Code", so every model showed twice (claude-opus-5-5, then "Claude Opus 5.5 · <account> · via magpie"); and models.dev lists claude-opus-4-5 and claude-opus-4-5-20251101 (haiku-4-5, sonnet-4-5 too) as two models. The via-magpie rows stay, as some use them (the [1m] fix, failover to their other accounts): viaMagpie now knows which provider is the agent's own sign-in (not a stand-in for a signed-out Claude Code, not paused; provider.Account.StandIn is new), and Claude Code's model field marks those options Same while its own group goes straight to Anthropic (not under a base URL of the user's, not for the tiers or a WSL distro). The picker folds them into one row, "13 models via magpie · <account> · the account Claude Code is signed in to" with a chevron, folded each time the picker opens; a click or Enter opens or closes it in place, the row staying under the pointer and the page not moving; the value set stays a row of its own, and Favorites never folds. claudeDated marks a dated Claude id whose undated id is in the same group as that one's Alias (one dated id per name only; [1m] kept), and the picker shows one row for the two: the alias, which a pick writes as before, or the dated one while that is the value set, so a choice made before still shows as picked. The option lists themselves are unchanged, so Spell, Reseat, renames and profiles still find every id. New strings have zh translations.
claude-picker-fold (Chromium and WebKit, en and zh, API fulfilled in memory) fails without the change in all 8 subtests and passes with it; TestClaudeDatedAlias covers the marking. model-pick, model-suffix-own, claude-direct, favorite-star, agent-models, unlisted-models and plain-names pass in both engines, click-scroll in WebKit; Chromium here only starts as the headless shell (the full Chrome for Testing bundle dies on icudtl.dat), where click-scroll fails the same way with the change undone. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui ./internal/agent ./internal/provider ./internal/gui (sandbox HOME) pass.
models.dev lists some models' output above their context (deepseek-chat:
384000 out, 128000 in), and magpie handed that on as maxTokens. The limit
is now kept within the contextWindow written beside it; a model whose
window isn't known keeps its output as before. Follow-up to the review of
magpie's models.yml entries had no input or maxTokens, so omp fell back to a fuzzy-matched bundled model or text-only / 16384. Write input from the model's image answer (omitted when unknown) and maxTokens from its output limit; carry ImageInput through magpieModels.
The product, module path (github.com/yetone/magpie), binaries, env vars
(MAGPIE_ADDR, MAGPIE_DEV_UI, MAGPIE_THEME, MAGPIE_DEBUG), config and cache
folders (~/.config/magpie, ~/.cache/magpie), bundle id (com.yetone.magpie),
gateway provider id and token, and every UI string now say magpie.
On first run magpie copies ~/.config/dial and ~/.cache/dial to the new
folders when they don't exist yet (copy, not move, so a still-running dial
keeps working; the old folders can be deleted by hand later).
The logo is a small round magpie in profile: one path for the header and
the tray, and the app tile adds the white belly and the blue-green tail.
The header mark is drawn in ink rather than the accent colour, which
fought the text in light mode.
A Codex (ChatGPT) or Copilot login is a subscription with models behind
it, so dial offers it as a provider: every other agent can use its models
through the gateway. The agent's own credential file is read each time,
tokens are refreshed the way the agent does it, and only the model picks
are stored. Claude Code is found but deliberately not offered (Anthropic's
terms), and the CLI and API say so.
The gateway signs upstream requests through the provider (Sign/Prepare),
translates non-streaming requests for backends that only stream, and now
recognises an event stream by its body when the vendor sends no
Content-Type, which is what the ChatGPT backend does.
dial now serves OpenAI chat completions, OpenAI Responses and the
Anthropic Messages API on 127.0.0.1:3425 and forwards each request to the
vendor that serves the model, translating between the APIs when the vendor
speaks a different one (streaming, tool calls and reasoning included).
Every agent points at that one URL; models are spelled provider/model.
Providers are added from presets (vendors, relays, local servers) with
just an API key, or as custom OpenAI/Anthropic-compatible endpoints.
Keys live in ~/.config/dial/providers.json; nothing is read from the
shell environment. Each provider chooses which of its models to expose.
Agents get gateway wiring instead of vendor-specific tables: Claude Code
via the env block, Codex via a dial model provider plus a model catalog
file, OpenCode/Pi/Crush via a dial provider entry; native settings are
stashed and restored when a native model is picked again.
The Providers page shows the gateway, each provider with the agents on it,
an inline editor with model chips, and an add sheet of preset tiles.
CLI: dial presets | providers | provider add|key|models|test|rm | models | serve.