How an agent's AI provider and model are chosen
See which setting decides the AI provider and model an agent runs on, who can change it, and what Swarmix does when a choice isn't allowed.
Who can do this:Org admin
Several people can have a say in which AI provider and model an agent uses: Swarmix, you as an organization admin, the crew template, the project admin and the member. This page shows who decides in which case, so you can set the defaults and limits you need.
Who sets what
- Swarmix sets a default for the whole platform. It applies when no other setting chooses.
- You set your organization's Default AI Provider and model in the AI Provider Catalog.
- Your policies can set a default AI provider and model for a group and limit the providers and models its members may use. See AI provider and model rules in policies.
- A crew template either sets the AI provider for its agents or lets each member choose. See Crew templates, agent roles, profiles and traits.
- A project admin can set the AI provider, model and permission mode of a single agent in a project.
- A member chooses on their computer where nobody locked the choice.
An agent role carries no AI provider or model.
Who picks in each case
| Agent | The AI provider and model come from | The member can change them |
|---|---|---|
| Crew agent, template with Default Provider | the template; if it sets none, the policy's default, then your organization's default, then Swarmix's | No |
| Crew agent, template with Let users choose provider | the member's choice; if they set none, the defaults above | Yes, in the crew's settings |
| Single agent, project admin turned on Block changes by members | the project admin's values | Only the fields the project admin left empty |
| Single agent, project admin left Block changes by members off | the member's choice; if they set none, the project admin's values, then the organization's | Yes |
| Single agent, project admin set no values | the member's choice | Yes |
A fixed crew can't fall back on the member's computer. If its AI provider isn't installed there or doesn't offer its model, the crew doesn't start. Studio says which agents need what, for example "This crew needs the model "…" (for …), which … does not offer. Ask your admin to change the crew template."
What a policy changes
A policy follows a member's groups, so two members can get different results for the same agent. Under the organization's Enforced mode:
- Crew agents: Swarmix replaces an AI provider the policy doesn't allow with the policy's default AI provider, or the first allowed one, and a model it doesn't allow with an allowed model.
- Single agents: Swarmix leaves out an AI provider or model the policy doesn't allow, and the member chooses among the allowed ones.
Under Audit, the member sees no change. Swarmix records what it would have changed, so you can check a rule before you enforce it. Under None, policies don't apply. See How policies work.
When the agent starts
Studio works out the model in this order:
- the model chosen for the agent;
- the policy's default model, or your organization's default model;
- the Default Model in your settings for all members for that AI provider;
- the AI provider's own default model.
If the model isn't in the AI provider's catalog, Studio uses the provider's default model and tells the member which model it used instead. If the policy doesn't allow the model, Studio uses an allowed one and says so. Resuming an agent follows the same order.
Best practices
- Set a Default AI Provider for your organization. Without one, and without Swarmix's default, members choose a provider each time they create an agent.
- Use a policy for a department's limits, and the organization default for the rest.
- Run new provider rules in Audit first, then enforce them once the records look right.
FAQ
No setting chose an AI provider for the agent. Set a Default AI Provider for your organization, a default in the crew template, or a default in the member's policy.
The crew template uses Default Provider, so the template decides. Switch the template to Let users choose provider, or turn on Allow AI provider/Model Override in the member's policy.
Their policies differ, or one of them chose a model where the agent allows it. Compare the groups each member is in with the Targeting tab of your policies.
Related
Crew templates, agent roles, profiles and traits
Define your organization's agents once, from instructions to crews, and decide whether members may create or change them.
AI Provider Catalog
Choose which AI providers and models your organization uses, set the default for new agents, and pick the assistant's AI provider.