Skip to main content
Owners and Admins control how AI models work for the whole organization in Settings → AI → Models & AI (“Choose how your coworkers use AI, connect your model provider, and set organization-wide instructions.”). The page has three tabs: Guests don’t have access to Settings. By default Duet Agents picks the models and bills usage in Duet Agents credits.

How model choice works

Each AI coworker has its own model. New coworkers use Auto (“Automatically pick the best model for the task.”), which picks a model for you. You can also pin a coworker to a tier or a specific model from the model pill in its chat, or in Coworker settings → Capabilities → Automatic model selection. Changing it there changes the model for that coworker for everyone, not just for you. See Chatting with a coworker and the model list. The settings on this page change what Auto does across your organization. A coworker pinned to a specific model keeps that model.

Auto model routing

When a coworker runs on Auto, Duet Agents classifies each new conversation and picks a model for it. It works in two steps:
  1. Buckets. Auto sorts the conversation into a kind of work, such as “Reading and reporting”, “Writing original content” or “Debugging or investigating”.
  2. Tiers. Each bucket points to a tier: Cheap, Balanced, Smart or Frontier. Each tier runs on a model.
Simple lookups go to a cheaper model, and harder work goes to a more capable one. Duet Agents sets the default buckets, tiers and models, and may update them over time.

Customize Auto for your organization

Owners and Admins change Auto’s choices on the Routing tab of Settings → AI → Models & AI. “Every kind of message Auto recognises sits on a tier — Cheap, Balanced, Smart or Frontier — and each tier runs on a model. Change either here and it applies to your organization only. Anything you leave alone keeps tracking the platform default, including changes we make later.” The tab has three sections:
  • Internal tasks: the Ultra fast model. “Ultra fast handles naming and routing. It is not offered in the coworker model picker.” The picker shows Platform classifier until you choose a model.
  • Conversations: “Chat, Slack, scheduled tasks and triggers. The channel does not change the pick.”
  • Coding agent: “The app builder and delegated coding work, which is also asked how hard the task is.” This section also sorts work into Easy task and Hard task.
Conversations and Coding agent each have their own Tiers (“Four levels of model. Everything below points at one of these.”) and Buckets. What you can change: Click Save to apply your changes, or Discard changes to drop them. Revert to platform defaults removes every change on the tab.
Add a bucket for work that matters to your team. For example, a bucket named “Contract review” with the description “Reviewing or drafting contracts, terms or legal language”, pinned to your strongest model.

Auto model instructions

For rules that are easier to write in words, use Auto model instructions on the Instructions tab (Owners and Admins, up to 4,000 characters): “Plain-language rules that extend or override automatic model selection for new conversations.” For example:
Anything about invoices or contracts must run on the strongest model. Messages from the #support channel are routine: use a cheap model unless the user is upset.
The same tab has Organization AI instructions, which every coworker and the app builder follow. See Instructions. Both fields save as you type and have a Preview tab for the Markdown.

Models Gateway

“Duet Agents bills AI usage by default. Use your Vercel AI Gateway or OpenRouter key to pay directly.” With a Models Gateway, AI model usage for your whole organization is billed to your gateway account instead of using Duet Agents credits. Everyone except Guests can see the gateway’s status on the Gateway tab of Settings → AI → Models & AI. Only Owners and Admins can set it up or change it. Others see “Only organization owners and admins can change these settings.”

What changes when a gateway is active

  • “Your gateway pays for AI model usage. Duet Agents charges zero AI model credits.”
  • Duet Agents credits still pay for people and company search and enrichment.
  • Usage stays visible in DuetAgents. Settings → AI → Usage can split usage by Billing source, and each reply’s … details show Inference billed by and Gateway-reported cost.
  • Auto and its tiers use the models you choose during setup. “Agents pinned to a specific model keep that choice.”
  • In the model picker, models your gateway account can’t run show Unavailable on your gateway.
  • “Gateway errors stop AI requests.” If your gateway fails, requests fail too. They don’t switch to Duet Agents credits.

Set up a gateway

1

Start setup

Open the Gateway tab and click Set up a gateway.
2

Add key

Choose a Gateway: Vercel AI Gateway or OpenRouter. Paste your API key (use Get API key if you need one), then click Continue. Duet Agents checks that the key works.
3

Check models

Click Run recommended checks. Duet Agents tests the models it needs on your gateway. “Each model test uses a small amount of gateway credit.”Review the tier models for Agents, Coding and Internal tasks. Agents and Coding each have Cheap, Balanced, Smart and Frontier tiers. Internal tasks has one Ultra fast tier for quick background work, such as naming and routing. If a model isn’t available on your gateway, pick a replacement. “Required models must pass before activation.” Then click Review setup.
4

Review & activate

Check the gateway, the tier models and the check results. “Check what will change for everyone in your organization.” Then click Activate Models Gateway.
If some models fail their checks, the review step lists them under Some models could not be used: “Agents using these models may fail.” Pick a tested model for any coworker that uses one, or fix access to the model in your gateway account.
If you have unsaved changes on the Routing tab, save or discard them first: “Save or discard your Routing changes before activating Gateway changes.” Duet Agents stores your gateway key encrypted. After setup it only shows a masked version.

Manage or remove the gateway

When a gateway is active, the tab shows its status (Active or Needs attention), the masked key, and who added it and when. From there you can:
  • Check models: run the model checks again, for example after you enable new models in your gateway account.
  • Change gateway or key (pencil icon): replace the key or switch gateways. “Your current gateway stays active until you activate these changes.”
  • View usage: open the usage dashboard.
  • Delete gateway: “New AI requests will automatically use Duet Agents credits. The stored key will be deleted.”

Troubleshooting

Your gateway can’t serve requests. Either the key no longer works, or a tier model isn’t available on your gateway account. An Owner or Admin should open the Gateway tab in Settings → AI → Models & AI, then update the key or run Check models and choose available replacements. Deleting the gateway switches new requests back to Duet Agents credits.
The coworker uses a model your gateway account can’t run. Choose an available model in the coworker’s model settings, or enable the model in your gateway account and run Check models again.
Your gateway account doesn’t give access to any models Duet Agents can use. Enable model access in your gateway account, then click Refresh model list, or use a different key.