Broker model access
Using Dome's Model Broker
Seven resources, one routing decision
The same granted surface the tools use, pointed at model providers instead.
A connection to a provider's model. Credentials, region, and the limits it arrives with.
Several models behind one name, with priorities, weights, caching and failover.
Which pool a call resolves to. Conditions on the agent, the caller, the tier, the context size.
Prompt and completion inspection on the way through.
Spend and token ceilings per agent, per team, per window.
Provider, model, pool, agent, caller, tokens, outcome. Cost becomes a query.
Nothing here belongs only to the Model Broker. One policy language, one audit vocabulary, one access layer, across every composition. See the whole resource set.
Three teams, three contracts
What makes it hard
Nobody owns model spend
Not the way someone owns the cloud bill. Per-team keys and personal accounts make the total unknowable.
The cheap call and the hard call cost the same
Everything routes to whichever frontier model the agent was first written against.
Evaluations are synthetic
A published benchmark is not your workload. The comparison you want runs on your own traffic.
Failover is a code change under pressure
When the provider degrades, every agent that names it degrades with it.
The work, in resources
Models. Register each provider connection once. Keys come from the secrets store you already run.
Pools. Group models behind one name with priorities and weights. A pool resolves to whatever is healthy and cheapest.
Gateways. Grant the surface to the agent. It calls one endpoint, and the provider behind it is configuration.
Rules. Route on the agent, the caller, or the context size. Pin sensitive work to an approved provider.
Quotas. Ceilings per team over a window. The refusal lands in audit like any other decision.
Audits. Cost, latency and tokens per call, attributed to an agent and a person.
The model behind your product feature
What makes it hard
The provider is in the code
An SDK and a model name compiled into the app. Changing either ships a version.
Customers see quality, you see routing
A regression has to be caught on their traffic before it reaches them.
Cost per customer is invisible
Margin per feature needs attribution the provider invoice does not carry.
Prompts leave your boundary
Whatever the agent sends goes to a third party, and whatever comes back goes to your customer.
The work, in resources
Gateways. One endpoint for the feature. Which vendor serves it is a routing decision, not a deploy.
Pools. Shift weight toward the new model, and roll it back with the same edit.
Rules. Send a slice of traffic first. Conditions can name the tenant, the feature, or the plan tier.
Guards. Inspect prompts and completions on the way through. Sensitive fields do not reach the provider.
Quotas. Per-tenant ceilings, so one customer's usage cannot consume the feature's budget.
Audits. Cost telemetry per tenant and per feature. Margin becomes a query instead of a spreadsheet.
Pools and routing, not glue code
pools: - name: reasoning-tier routing: priority-weighted failover: up to 3 cache: short-context members: - provider: anthropic model: claude-opus-5 weight: 70 - provider: openai model: gpt-5-thinking weight: 25 - provider: bedrock model: claude-opus-5 weight: 5 # regional capacity
rules: - match: tier: standard pool: standard-tier - match: tier: premium context.tokens: ">100k" pool: long-context-tier