Skip to content

AI tool comparisons

Menu

Home / AI coding tools / BYOK Utility Models: What They Are and How to Configure Them

BYOK Utility Models: What They Are and How to Configure Them

AltAI is an independent publisher. Links to vendor sites open in a new tab. See our disclosure for how we work.

Contents
  1. How to set a BYOK utility model (and fix the “No utility model is configured” error)
  2. What is a BYOK utility model?
  3. Why you’re seeing this error now: the VS Code 1.128 change
  4. Which value should you pick? None vs Main Agent Model vs GitHub Copilot
  5. chat.utilityModel vs chat.utilitySmallModel: the two override settings
  6. Best BYOK utility models to assign
  7. Common misconceptions about BYOK utility models
  8. FAQ

A BYOK utility model is the lightweight model VS Code Copilot uses for background tasks - generating chat titles, commit messages, and detecting intent - when your main coding model is a Bring Your Own Key (BYOK) model instead of a built-in GitHub Copilot one. Since VS Code 1.128, you have to assign this utility model yourself, or Agent mode stops with the error No utility model is configured for 'copilot-utility-small'.

In plain terms: Copilot runs two kinds of model behind the scenes. Your main agent model does the real work - writing and reasoning about code. A separate, cheaper utility model handles the low-stakes housekeeping around it. When you switch your main model to your own API key, Copilot no longer assumes it can use its built-in utility model, so you point it at one explicitly. The fix is one setting, and it’s below.

In short:

  • A BYOK utility model powers Copilot’s background tasks (titles, commit messages, rename suggestions, intent detection) - not your actual code generation.
  • Since VS Code 1.128, BYOK main models use no utility model by default, which triggers the copilot-utility-small error in Agent mode.
  • The one-line fix is to set chat.byokUtilityModelDefault to Main Agent Model.
  • That setting has three values - None, Main Agent Model, GitHub Copilot - and the right one depends on whether you’re signed into Copilot.
  • Utility tasks are cheap, so a fast, low-cost model (or your existing BYOK model) is all you need.

How to set a BYOK utility model (and fix the “No utility model is configured” error)

To set a BYOK utility model and fix the No utility model is configured for 'copilot-utility-small' while the selected main agent model is BYOK error, set chat.byokUtilityModelDefault to Main Agent Model. This tells Copilot to reuse your BYOK model for background tasks, and Agent mode works again immediately.

Option 1 - VS Code Settings (UI):

  1. Open Settings (Ctrl + , on Windows/Linux, Cmd + , on macOS).
  2. Search for Chat: Byok Utility Model Default.
  3. Change it from None to Main Agent Model.

Option 2 - settings.json:

settings.json
{
  "chat.byokUtilityModelDefault": "mainAgent"
}

That’s the whole fix for most people. If VS Code flags the value you pasted, choose Main Agent Model from the dropdown in the Settings editor instead, because the stored value strings can change between releases. We checked this page against the current VS Code source in October 2026 (latest stable: 1.142). The rest of this page explains what you just changed, why the error appears, and how to choose between the three available values. Using VS Code over SSH, WSL or a Dev Container and seeing a different BYOK message? See BYOK models aren’t supported in remote Copilot sessions.

BYOK utility model routing

How Copilot picks the utility model in Agent mode

Set chat.byokUtilityModelDefault to fix the error.

chat.byokUtilityModelDefaultWhat happensResultBest for
None (default)No utility model is used.Agent mode stops with “No utility model is configured”. Background tasks fail.Causes the error
mainAgentReuses your BYOK model for background tasks too.Titles, commit messages and intent detection run on your model.Best for almost everyone, especially local models
copilotUses Copilot’s built-in utility models.Needs a signed-in Copilot account.Best for sparing local VRAM

Behavior as of VS Code 1.128. A specific chat.utilityModel or chat.utilitySmallModel overrides this default.


What is a BYOK utility model?

A BYOK utility model is a small, fast model that VS Code Copilot uses for background housekeeping tasks, separate from the main model that writes your code. According to GitHub’s documentation, utility models power background features such as generating commit messages and chat session titles across every Copilot plan.

The tasks a utility model handles are deliberately low-stakes: chat title generation, commit message generation, rename suggestions, branch name generation, prompt categorization, intent detection, and short summaries. None of these need a frontier model - asking a top-tier reasoning model to write a two-word chat title is wasted spend. Copilot offloads them to a cheaper model so your expensive main model is reserved for actual coding.

Utility models run automatically in the background and can’t be chosen from the Chat model picker. You don’t select them per message - you configure once which model Copilot should route these background tasks to. When your main model is a built-in Copilot model, that routing is automatic. When your main model is BYOK, you set it yourself.


Why you’re seeing this error now: the VS Code 1.128 change

The copilot-utility-small error appears because VS Code 1.128 changed the default behavior - it is intended, not a bug. According to the VS Code 1.128 release notes, the default is now that no utility models are used with a BYOK model as the main agent, so background tasks like chat title and commit message generation don’t work until you configure the setting.

Before 1.128, BYOK setups silently fell back to Copilot’s built-in utility models. That sounds convenient, but it had a real problem: it could quietly spend your GitHub Copilot AI credits and route your prompts through Copilot’s models even though you’d deliberately chosen your own key - crossing a billing and data boundary you didn’t ask to cross. Making the behavior explicit fixes that. The trade-off is the error you’re now seeing: Copilot refuses to guess, and asks you to choose. If you hit a related error instead, see the Copilot “Language Model Unavailable” fix.

This matters because the error is easy to misread. It shows up right after a VS Code update, only in Agent mode, and persists even after you clear the extension cache or reinstall - which makes it look like a bug. It isn’t. It’s a settings change, and the fix is a settings value, not a reinstall.


Which value should you pick? None vs Main Agent Model vs GitHub Copilot

The chat.byokUtilityModelDefault setting has three values, and the right one depends on whether you’re signed into GitHub Copilot. Main Agent Model is the safest universal choice; GitHub Copilot is better only if you’re signed in and want to keep your own model free for real work.

ValueWhat it doesBest forWatch out
None (default)No utility model is used. Background tasks don’t run and Agent mode throws the error.Nothing, really - this is the default that causes the problem.This is why you’re seeing the error. You need to change it.
Main Agent Model (mainAgent)Reuses your selected BYOK model for background tasks too.Almost everyone, especially local models - no second model to load or pay for.Your main model handles tiny tasks too, but they’re cheap, so the cost is negligible.
GitHub Copilot (copilot)Uses Copilot’s built-in utility models for background tasks.Users signed into Copilot who want to spare local VRAM or keep a frontier BYOK model free.Requires a Copilot sign-in; consumes Copilot’s utility capacity, not your key.

For local model users, Main Agent Model is usually the best pick, and the reason is practical: if you’re running a model through Ollama, LM Studio, or llama.cpp, forcing Copilot to load a separate small utility model means an extra model sitting in memory or a slow reload that evicts your main model. Reusing the model you already have loaded avoids all of that. It’s like not hiring a second worker to write sticky-note labels when the worker already at the desk can do it.


chat.utilityModel vs chat.utilitySmallModel: the two override settings

chat.utilityModel and chat.utilitySmallModel are two settings that let you assign specific models to background tasks, and they cover different task types. Use chat.utilityModel for general utility flows and chat.utilitySmallModel for the fastest, lightest ones.

  • chat.utilityModel handles general utility flows: generating titles and summaries, settings search, and Git review.
  • chat.utilitySmallModel handles fast, lightweight flows: commit messages, rename suggestions, branch name generation, prompt categorization, and intent detection. A fast, inexpensive model is recommended here.

These two settings are more granular than byokUtilityModelDefault. If you want everything to just work, byokUtilityModelDefault set to Main Agent Model is enough. If you want to route background tasks to a different cheap model than your main one, set these two explicitly. A specific model set in chat.utilityModel or chat.utilitySmallModel takes precedence over the byokUtilityModelDefault value - the granular setting always wins.

settings.json
{
  "chat.utilityModel": "your-provider/your-model",
  "chat.utilitySmallModel": "your-provider/your-fast-model"
}

Two override settings

Which setting handles which background task

Your main agent model writes and reasons about your code. These two handle the background work.

chat.utilityModel

General flows

  • Title generation
  • Summaries
  • Settings search
  • Git review

chat.utilitySmallModel

Fast, lightweight flows

  • Commit messages
  • Rename suggestions
  • Branch name generation
  • Intent detection

A specific model in either setting takes precedence over chat.byokUtilityModelDefault.


Best BYOK utility models to assign

The best BYOK utility models are cheap, fast models that handle background tasks without inflating your token bill - Claude Haiku, Gemini Flash, and the GPT mini tiers are all strong picks, and a local model via Ollama runs them for free. You don’t need a frontier model here; you need speed and low cost.

ModelCost tierSpeedContextBest for
Claude HaikuLowVery fastLargeCommit messages, summaries
Gemini FlashVery lowVery fastVery largeHigh-volume background calls
GPT mini tiersLowFastLargeBroad support across BYOK tools
Local model (Ollama / LM Studio)FreeDepends on hardwareModel-dependentPrivacy, offline, zero inference cost
Your main BYOK model (mainAgent)Reuses mainSame as mainSame as mainSimplest setup, no second model to load

The practical rule: assign a cheap, fast model to the utility slot and reserve your frontier model for the main agent. If you’d rather not manage a second model at all, set byokUtilityModelDefault to Main Agent Model and let your existing BYOK model cover both jobs. If cost or privacy is the priority, a local model handles utility tasks offline for nothing.

If you’re weighing utility-model cost against your whole setup, our BYOK AI coding guide covers the full cost math of running your own key, and the JetBrains AI pricing breakdown shows how BYOK bypasses bundled credits entirely.


Common misconceptions about BYOK utility models

“It’s a bug.” It isn’t. The copilot-utility-small error is intended behavior introduced in VS Code 1.128. The default was deliberately changed so BYOK setups don’t silently spend Copilot credits or route prompts through Copilot’s models. The fix is a settings value, not a bug report.

“Clearing the cache or reinstalling fixes it.” It doesn’t. Because this is a settings change, the error persists after clearing the extension cache or reinstalling. Only setting chat.byokUtilityModelDefault (or the two override settings) resolves it.

“I have to configure a separate small model.” You don’t. Setting the value to Main Agent Model reuses the BYOK model you already selected - often the best choice, especially for local models, because it avoids loading a second model into memory.

“Utility models are something I pick in the model picker.” They aren’t. Utility models run automatically in the background and can’t be selected from the Chat model picker. You only control the routing - which model handles them - through these settings.


If your BYOK model is missing from the picker altogether, see Copilot BYOK models not showing in the model picker.

FAQ

What is a BYOK utility model?

A BYOK utility model is a small, fast model VS Code Copilot uses for background tasks - chat titles, commit messages, rename suggestions, and intent detection - when your main coding model is your own Bring Your Own Key model. It handles housekeeping so your main model is reserved for writing code.

How do I fix “No utility model is configured for ‘copilot-utility-small'”?

Set chat.byokUtilityModelDefault to Main Agent Model. Open VS Code Settings, search for “Chat: Byok Utility Model Default,” and change it from None to Main Agent Model - or add "chat.byokUtilityModelDefault": "mainAgent" to settings.json. Agent mode works again immediately.

What should I set chat.byokUtilityModelDefault to?

Set it to Main Agent Model in most cases - it reuses your BYOK model for background tasks with no extra setup. Choose GitHub Copilot only if you’re signed into Copilot and want to keep your own model free. None is the default that causes the error.

Do utility models cost extra or use my API credits?

Background tasks are tiny, so the cost is negligible. If you use Main Agent Model, they run on your BYOK key at your provider’s rate. If you use GitHub Copilot, they use Copilot’s utility capacity instead of your key. A local model runs them for free.

Can it just reuse my main model instead of loading a second one?

Yes. Setting chat.byokUtilityModelDefault to Main Agent Model reuses your selected BYOK model for utility tasks. This is the recommended choice for local models, because loading a separate small model wastes memory or forces a slow reload.

Why did this start happening after I updated VS Code?

VS Code 1.128 changed the default so BYOK main models use no utility model unless you configure one. Before, Copilot silently used its own utility models, which could spend your credits. The update made the behavior explicit, which surfaces as the error until you set the value.

What’s the difference between chat.utilityModel and chat.utilitySmallModel?

chat.utilityModel handles general background flows like titles, summaries, settings search, and Git review. chat.utilitySmallModel handles the fastest, lightest flows - commit messages, rename suggestions, and intent detection. A specific model in either setting overrides the byokUtilityModelDefault default.

Do I need a GitHub Copilot subscription to use BYOK utility models?

No. BYOK models, including utility models set to Main Agent Model, work without signing into GitHub and without a Copilot plan, including fully offline with local models. You only need Copilot if you set the value to GitHub Copilot or use features like semantic search that require it.

Which model is best for a utility model?

A cheap, fast model. Claude Haiku, Gemini Flash, and GPT mini tiers all work well for background tasks. If cost or privacy matters most, a local model via Ollama runs them offline for free. Reserve your frontier model for the main agent.

Does this only affect VS Code?

The chat.byokUtilityModelDefault setting is specific to VS Code Copilot Chat, but BYOK itself works across VS Code, JetBrains IDEs, Eclipse, and Xcode. The utility-model routing behavior described here applies to VS Code’s Copilot Chat as of version 1.128.

Why does Copilot even need a utility model?

Copilot runs small background tasks - naming chats, writing commit messages, detecting what you’re asking - alongside your main request. Using a cheap model for these keeps your expensive main model free for coding and avoids wasting frontier-model tokens on trivial two-word outputs.

What if I still see the error after changing the setting?

Reload VS Code after changing the value. If it persists, check that no conflicting model is set in chat.utilityModel or chat.utilitySmallModel, since those override the default. For local models, confirm the assigned model is actually running and reachable.