AI provider and model rules in policies
Limit the AI providers and models a group may use, set its defaults and permission mode, and lock the assistant's AI provider with a policy.
Who can do this:Org admin
A policy limits the AI providers and models the members of a group may use, and sets their defaults. Use it when a department may use only some providers, or when a group needs its own key.
Before you start
You need the organization admin role. Policies apply when your organization's Distribution Mode is Managed, and their limits bind when Enforcement is Enforced. Open a draft policy in Studio under Settings → Organization → Policies. See How policies work.
Allow AI providers and models
- In the policy, open Agents → AI Providers.
- Under Allowed AI providers & Models, switch on each AI provider the group may use.
- Expand an AI provider to limit its models. Keep Allow all models on to allow its future models too, or turn it off and tick the models to allow.
- Save the policy.
A policy with no AI provider switched on doesn't limit AI providers. Once you switch one on, members may use only the AI providers you switched on. When several policies reach a member, an AI provider or model that one of them leaves out stays out.
Set the group's defaults
Under the list, choose a Default AI provider and a Default Model. New sessions of the group's members start with them when no other setting chooses. See How an agent's AI provider and model are chosen.
Set the least strict permission mode
Permission Mode sets how strictly crew agents approve tool calls: Auto-approve, Confirm each call or Deny all. Crew agents run at that level or a stricter one, and the chat doesn't offer looser modes. A single agent in a project follows its project admin's setting instead.
Give the group its own settings
Expand an AI provider in the list and fill in its Settings, such as a department's own key, address or model. A field the policy sets wins over your settings for all members. Environment variables merge by name.
Lock the assistant's AI provider
Studio's policy editor doesn't offer this setting. Use the web dashboard:
- Open Policies and the draft policy.
- Under Assistant and chat summaries, choose the Assistant vendor and the Assistant model. The lists show only what the policy allows.
- Tick "Locked: members cannot change it in Studio".
- Save the policy.
A locked assistant applies whatever your organization's mode, and Studio refuses any other AI provider for the assistant. Unlocked, it replaces your organization's assistant choice as a starting value that members can change.
What members see
Under Enforced:
- AI providers and models the policy leaves out disappear from members' lists.
- A crew agent set to a provider the policy doesn't allow moves to the policy's default AI provider, or the first allowed one. A model it doesn't allow moves to an allowed model.
- A single agent loses the provider or model the policy doesn't allow, and the member picks among the allowed ones.
Under Audit, members see no change. Swarmix records each AI provider or model the policy would have refused, with the policy that set the rule.
Best practices
- Allow at least two AI providers where your company can. Members can then switch when one provider is down.
- Keep Allow all models on for providers you trust, so new models reach members without a policy change.
- Try a new rule in Audit, read what it would have refused, then switch to Enforced.
FAQ
A policy that reaches them leaves it out, and your organization enforces policies. Check the Targeting tab of the policies that limit AI providers.
The policy's AI providers no longer allow the assistant's AI provider or model. Choose another assistant, or allow that provider and model.