Why LiteLLM model access groups matter for a shared gateway
Model access groups let you grant access to a named set of models instead of one model at a time. In LiteLLM, you bundle models under a group name set in model_info.access_groups, then grant that group to keys or teams. Every key or team holding the group gets every model in it. On a shared gateway with many models, teams and keys, per-model grants quickly become hard to audit: nobody can answer quickly which keys can reach a given model without reading each key's configuration. Groups turn that question into a check on one name.
Teams usually need groups for three reasons. The first is separating production and development models, so that experimental deployments never serve production keys. The second is restricting expensive models to the few teams that have approved budgets for them. The third is wildcard groups such as openai/*, which cover a whole provider family and pick up new models as they are added. Illustrative example: a prod-chat group holds the approved production deployments, and a dev-sandbox group holds cheaper test models. Confirm in the LiteLLM model access groups documentation exactly how wildcard matching behaves in your release before relying on it for enforcement.
The operational payoff is that models can be added or removed without updating keys. When a model is retired or a new approved deployment is added to a group, the change happens in the group's membership, not in every key that uses it. Before you adopt this, decide who owns group membership, how changes are reviewed, and how you will show auditors which groups existed at a given date. Those decisions matter more than the configuration syntax, and they are easier to settle before the gateway carries production traffic.
Where access groups fit: production, development, expensive models and wildcards
Access groups earn their keep when a gateway serves several environments, cost tiers and business units from one set of models. Each pattern below pairs a control with a trade-off, so the group design matches how your teams actually request and approve models.
Separate production and development models
Put production deployments in a group such as prod-models and development deployments in dev-models, then grant each team only the group it needs. This keeps experimental or unvetted models away from customer-facing services. The trade-off is maintenance: when a model is promoted, you must move it between groups, and a developer key that was granted both groups will see the change immediately. Check which keys and teams hold each group before promotion day.
Restrict costly models to approved teams
Place high-cost frontier models in a dedicated group granted only to teams with an approved use case and budget. Teams without the grant cannot request those models, which limits spend without relying on users to choose cheaper options. The trade-off is that access becomes an approval process, so define who approves a grant and how long it lasts. Confirm with your provider billing that the group covers every deployment of the model, including any regional copies.
Wildcard groups over a provider prefix
A wildcard group such as openai/* grants every model under a provider prefix, including models added later. This removes the need to edit grants when a provider releases a new model. The trade-off is that new models become usable before anyone reviews their price, data handling or terms. Pair wildcard groups with a review step for new deployments, and test that a newly added model cannot be reached by keys that should not have it.
Tier access by business unit
Assign each business unit a group that reflects the models its use cases were approved for, such as a customer support group and a research group with different model sets. Keys and teams inherit the group, so onboarding a unit is a single grant. The trade-off is overlap: a model shared by two units appears in both groups, and removing it from one group does not remove it from the other. Map each model to exactly the units that own its approval.
Change groups without reissuing keys
Because keys and teams reference a group name rather than individual models, you can add or remove models from a group without rotating keys. This simplifies provider migrations and retirements. The trade-off is that changes take effect for every key holding the group at once, so test a change in a non-production gateway first. Record each group change with who made it and why, since the key itself will not show the history.
Configuration options for access groups and when each fits
This table compares the main configuration choices for LiteLLM model access groups, from where the group is defined to how wide it reaches. Read each row for the review effort it adds and the blast radius if a group is set wrong. The main takeaway is that narrow, explicit groups cost more review up front but limit what a single mistake exposes.
| Choice | Option | When it fits | Review effort and blast radius |
|---|---|---|---|
| Where the group is set | Group named in model_info.access_groups on each model | Models are added or retired often and the owner of each model should control its groups | Low effort per model, but a wrong group name on one model silently grants or removes access for every key and team that uses it |
| Where the group is granted | Group granted to a key | Individual applications or service keys need a fixed, small set of models | Each key must be reviewed on its own, and a broad grant can reach models the application never calls |
| Where the group is granted | Group granted to a team | Access follows a team's role, and membership changes should not require reissuing keys | One team grant covers every key in that team, so a grant error affects all of that team's traffic at once |
| Model naming | Explicit model names in the group | Production and regulated models where reviewers need an exact list of what is reachable | Review means reading each name, and new models are excluded until someone adds them |
| Model naming | Wildcard pattern such as openai/* | A provider's whole catalog is approved and new models from it should be available by default | Smallest review effort, but any new model under the prefix is reachable without a separate approval |
| Environment separation | Separate groups for production and development | Development keys must never reach production deployments, or costly models must stay out of test traffic | Two groups to maintain, but a mistake in one group does not automatically expose the other environment |
| Environment separation | One group with separate deployments per environment | Teams want one name for a capability and environments are kept apart by deployment or routing | Fewer group names, but reviewers must confirm which deployments sit under the shared name and that routing keeps them apart |
| Restricting expensive models | Dedicated group for costly models granted to named teams only | Some models carry high cost and should be reachable only by approved use cases | Clear audit trail of who holds the group, but the group list must be checked whenever a new expensive model is added |
How a key's effective model list is resolved
When a request arrives, LiteLLM checks whether the requested model is covered by the key's own model grants, by the grants of the team the key belongs to, or by an access group attached to that model. The practical question for a platform owner is simple: is the model name in the request reachable through one of those paths? A key does not need a direct grant for every model if it already holds a group that contains the model. Keep the three paths in mind when you debug a denied request, because a denial usually means the model is missing from every path, not only from the key. Confirm in your LiteLLM version how key-level and team-level model restrictions interact, including whether a key restriction can narrow a team grant and whether a team grant can widen a key. Write down the answer and test it with one key before you rely on it.
Adding a model to a group that a key already holds changes that key's effective list without touching the key. The new model becomes callable for every key and team tied to the group, which is the main benefit of groups, and it is also the main risk. If the group is named for a broad family, such as a wildcard group covering a provider, a newly listed model can be reachable by teams that never reviewed it. Before adding a model, check its cost, data terms and intended audience against each consumer of the group. Removing a model works in reverse: calls to that model should start failing for affected keys on the next request, but confirm this in a test environment, because cached routing state or in-flight sessions can behave differently for a short time.
Build a short verification step into every group change. Create a test key for each consuming team, send one request to each model in the group, and record the result. Then remove a test model from the group and repeat the check to confirm the denial. Keep a change log of group membership so the model list a key could reach on a given date can be reconstructed during an access review. Ask your vendor or check the LiteLLM documentation for your version which endpoints the model list is returned from, so your reviewers can compare what the gateway reports with what they expect.
Setting up model access groups step by step
This sequence takes a shared LiteLLM gateway from an unstructured model list to access groups that teams and keys are granted by name, with a test at each stage to confirm that allowed and denied models behave as the policy says.
Inventory approved models and providers
The platform owner and the security or procurement contact list every model the gateway may expose, grouped by provider and by the data classes each one may receive. Record the provider account, the deployment name used in the proxy configuration, and who approved it. Keep the list in version control next to the proxy configuration so later changes are reviewed. The step is done when every model entry in the planned configuration maps to an approved provider and a named owner, and anything not on the list is marked for exclusion.
Define group names by policy
Agree a short set of access group names tied to policy rather than to individual models, such as production, development and premium. Write down which teams should receive each group and who approves a change to membership. Avoid names that describe a single model, because the name will outlive the model. The output is a one-page table of group names, purpose and approver. The check is a review by the people who own budgets and data handling, confirming that no group grants a model that a team should not reach.
Tag each model entry with its access groups
In the proxy configuration, add each model entry's groups under model_info.access_groups, following the group names from the previous step. A model can belong to more than one group. Where a group should cover a whole provider, consider a wildcard group such as openai/* only after confirming in your own environment how the wildcard matches model names. Commit the change through your normal review process and restart or reload the proxy as your deployment requires. The check is that the running configuration lists each intended group on each intended model, which you can confirm from the proxy's model list.
Grant teams and keys access to the groups
Attach the access groups to the teams or keys that should use them, using the admin UI or the management API. Grant broad groups to teams and narrow groups to individual keys only when a specific exception is approved. Keep service account keys on team grants so ownership stays with the team. The output is a grant record for each team and key that cites its approved group. The check is that every team or key in the register has at least one group, and no key holds a group its team has not been approved for.
Test each group with a key from that group
Create or select one test key per group and send a request to a model inside the group and a request to a model outside it. Expect the first to succeed and the second to be rejected. Repeat with a key that holds two groups to confirm the union is what you intended. Save the requests and responses as evidence. The step is complete when every group shows the expected allow and deny results, and the test keys are documented and then removed or scoped to a test team.
Confirm changes take effect without reissuing keys
Add one model to a group in the configuration, then confirm that an existing key holding that group can reach it without a new key being issued. Remove the model again and confirm the key is denied. This verifies the core behavior of access groups: membership is changed in the model configuration and keys keep their grants. Record the outcome in the change log so the team knows the behavior was observed in your deployment, not only read in the documentation.
Document the rollback for removing a group from a model
Before removing a group from a model, record which teams and keys currently depend on it by querying the grants register, and notify those owners. Remove the group from the model entry in configuration, then confirm with a test key that the model is denied. To roll back, restore the group in the configuration and repeat the allow test. Keep the previous configuration in version control so the revert is a single reviewed change. The check is a dated entry in the change log showing the affected grants and the passing allow and deny tests.
Every request is checked against its key's team and model groups before a provider call
The diagram starts at the calling application, which sends its virtual key with each request. The gateway looks up the key and its team, then checks whether the requested model belongs to an access group that the key or team has been granted. If it does, the request goes to the model provider. If it does not, the gateway denies the call. Admins change group membership in the team records and edit groups in the proxy configuration, both outside the request path. To check a setup, confirm that each model's access_groups value matches the groups granted to the team.
Request path from virtual key to provider, with admin changes outside it.
Questions teams ask before setting up model access groups
How much effort does a model access group design take?
Effort depends mostly on how many models you expose, how many teams and keys need different access, and how many people must approve the design. A small gateway with a handful of models and one or two teams is a short design exercise. A gateway with many providers, separate production and development environments, and restricted expensive models needs a written grouping plan, a review step and a test pass before anything reaches users. Ask any partner to size the work from your model inventory and team list rather than from a generic estimate. Access groups themselves are configuration, so the recurring effort is mainly reviewing group membership as models and teams change.
Can our team set up model access groups without outside help?
Yes, if someone on your platform team is comfortable running the LiteLLM proxy and editing its configuration. A group is defined by setting a name under model_info.access_groups on each model, then granting that group to keys or teams. The harder part is usually not the syntax but agreeing on the grouping rules, such as which models count as production, who may use expensive models and who approves changes. Teams that already run LiteLLM with a PostgreSQL database and a clear configuration process tend to handle this internally. Outside help is most useful when the gateway is shared across many business units or when the grouping must satisfy an internal security review.
What do we need to provide before the work starts?
Prepare three inputs before any design work. First, a model inventory that lists every model name, its provider, its environment (production, development or evaluation) and whether it is expensive. Second, named owners for each model and each team, so every group has a person who approves membership changes. Third, the approved provider list from your security or procurement team, which states which providers and endpoints may receive prompts. These inputs determine which groups make sense. Without them, the design tends to reflect the current configuration rather than the access policy you intend to enforce.
How long does a pilot take to validate access groups?
No duration has been established for this, so confirm it against your own environment. The length of a pilot depends on how many groups you test, whether you test with real provider keys or sandbox endpoints, and how many teams must sign off on the results. A reasonable pilot checks that a key with a group sees every model in it, that a key without the group is refused, and that removing a model from a group takes effect without reissuing keys. Ask any partner to propose a pilot plan with entry and exit criteria, and to state which environment and team members the pilot depends on.
Does changing an access group require reissuing keys?
No. Keys and teams are granted a group name, and the group resolves to whichever models currently carry that name in model_info.access_groups. Adding or removing a model from a group changes what existing keys can reach, without touching the keys themselves. This is what makes groups practical for separating production and development models: you move a model between groups in configuration rather than issuing new credentials to every application. Confirm the behavior in your own LiteLLM version during the pilot, and record which team is allowed to make these changes, since a single edit can widen access for many keys at once.
Are wildcard groups such as openai/* safe to use?
Wildcard groups are convenient when you want a group to cover every model from one provider, but they grant access to models that do not exist yet. When a provider adds a new model and your configuration routes it, that model may fall into a group your teams already hold. For sensitive or expensive models, name each model explicitly. For broad groups, review the provider's model list on a fixed schedule and confirm that new models are approved before they become reachable. Treat wildcard scope as a policy decision for the security and finance owners, not only a configuration shortcut.
When do Enterprise RBAC and team-level controls become relevant?
Access groups work in the open-source edition, but the need for more governance grows with the organization. Consider Enterprise features when several business units need separate administrators, when audit logs must show who changed group membership, or when you need organization and team role-based access control. The LiteLLM Enterprise documentation lists audit logs, organization and team RBAC and team-level guardrails and logging among its additions, and SSO beyond the free user limit requires an Enterprise license from v1.76.0. Check the current LiteLLM Enterprise documentation against your required controls before deciding.
Security and operational risks of broad model groups
Access groups save administration time, but each one also widens what a key can reach. The risks below share a root cause: a change to a group or to the configuration behind it can grant access that nobody reviewed. Each card names the control to put in place and the Enterprise feature to confirm before relying on it.
Wildcard groups grant new models silently
A group such as openai/* gives every key attached to it access to any model that matches the pattern, including models added after the group was reviewed. A new expensive or less suitable model can become available to a team without any key or team change. Control: require a review step for any new model entry that matches a wildcard group, and prefer explicit model lists for sensitive teams. Confirm with the vendor whether audit logs record who added a model to a group.
Misnamed groups expose expensive models
Because keys receive a group name rather than a model name, a typo or a reused name can attach the wrong models to a team. For example, a group intended for low-cost development models could be named close to one that includes a premium model, and the mismatch would not show up in a key's configuration. Control: adopt a naming standard that encodes environment and cost tier, and check group membership as part of every change. This is illustrative of the pattern, not a recorded incident.
Unreviewed changes to model_info
Access groups are defined in model_info.access_groups on each model entry. Anyone who can edit that block can move a model into or out of a group, which changes access for every key that uses the group. Control: treat model_info edits as access changes that need the same approval as key or team changes, and record who approved each one. Confirm whether the Enterprise audit log captures edits to model configuration.
Master key and admin access can edit groups
The master key, which must start with sk-, and any proxy admin account can change model configuration and team assignments. A compromised or broadly shared admin credential can therefore reshape access across the whole gateway. Control: keep LITELLM_MASTER_KEY in a secret manager, limit who holds admin roles, and use a separate, narrower role for people who only need to read configuration. Confirm the role model and RBAC options available in your edition.
Drift between code and running configuration
If group membership is defined in a configuration file in version control but also edited in the admin UI or the database, the running gateway may differ from what reviewers approved. Teams then assume a group contains one set of models while the gateway grants another. Control: make version-controlled configuration the single source of truth, periodically compare the running configuration with it, and block manual edits outside the review path. Confirm how your deployment reconciles config files with database state.
Unclear ownership of group changes
When no one owns a group, changes arrive from application teams, platform engineers and administrators with no agreed approver. Access then widens gradually through small, individually reasonable edits. Control: assign a named owner to each group, document its purpose and permitted models, and set a review cadence that checks membership against that record. Confirm with your identity and governance teams how group ownership maps to existing approval processes.
Rolling out access groups without breaking existing callers
Move from per-model grants to access groups in stages, so that no caller loses access during the change. The first stage adds the group name to model_info.access_groups on each model that should belong to it. Because keys and teams still hold their existing model grants, this step changes nothing for current traffic. Confirm in a staging gateway that the models appear under the new group, and that a test key with the existing grant can still call each model it used before.
The second stage shifts team grants. Grant the group to one pilot team first, then check that the team's keys can reach every model in the group and that no model was left out by accident. Keep the direct model grants in place during this window so you can roll back by removing the group grant alone. Only after the pilot team's traffic and logs look normal should you move the remaining teams, one at a time, and record which team changed and when.
The third stage retires direct grants, and it carries the most risk. A caller that requests a model name outside its group is rejected, and the error it receives is a permission or access failure rather than a model-not-found message, so the failure can look like a provider outage in application logs. Before removing any direct grant, search request logs for rejected calls and identify the owners of the affected applications. Plan the cutover with those owners, and confirm the exact error text and status code your gateway version returns, since your alerting depends on them.
How DeployOpen scopes and delivers LiteLLM access control
DeployOpen plans and delivers LiteLLM model access groups as part of a self-hosted gateway inside your own infrastructure. We scope which models sit in which groups, build the groups and the keys and teams that use them, and hand over a documented setup your security and platform teams can review and change later.
How we scope
- Inventory the models your teams need and sort them into production, development and expensive tiers.
- Agree in writing which teams, service accounts and keys receive each access group before build starts.
- Define wildcard group rules such as openai/* only where your approved provider list allows them.
How we build
- Configure model_info.access_groups in the proxy configuration and assign groups to keys and teams.
- Test that a key granted one group can call its models and is refused for models outside it.
- Set up a change process so groups can be edited without reissuing keys, with the edit path recorded.
How we hand over
- Deliver a written map of groups, models, teams and keys with the owner of each group named.
- Provide the configuration files and a runbook for adding a model to an existing group.
- Walk your platform and security teams through the review steps for a group change before handover.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing of access group changes are available as a retainer.
- Confirm with us which LiteLLM release line your gateway runs before any upgrade touches group settings.

