LiteLLM organizations, teams, users and roles

How to design LiteLLM's hierarchy of organizations, teams, users and roles so spend, budgets and admin rights match how your company is run.

On this page

How LiteLLM teams, users and roles fit a company hierarchy

A platform team running one shared LiteLLM gateway for many departments has to answer two questions for every request: who is allowed to use which models, and who pays for the spend. LiteLLM answers both by attributing each request's spend to its key, user, team and organization at the same time, with budgets enforced at each level. In open source, the team is the top-level boundary. Organizations, the layer above teams, are an Enterprise feature. Before designing anything, confirm which edition you will run, because that decides whether you can model business units as organizations or must flatten them into teams.

A flat team model is usually enough when the gateway serves a small number of groups with separate budgets and no need for a parent layer to cap them collectively. Each department or product area becomes a team with its own budget, allowed models and rate limits, and individual people or applications receive keys under those teams. An organization layer becomes worth the Enterprise cost when finance needs one cap across several teams, when business units must administer their own teams, or when audit and RBAC requirements call for a boundary above teams. Ask LiteLLM to confirm the current organization and RBAC feature set against the Enterprise documentation before you commit to a design.

For roles, separate the people who operate the gateway from the people who consume it. The proxy_admin role manages the whole gateway, while proxy_admin_viewer can view all keys and spend but cannot create or delete keys or add users, which suits finance and audit reviewers. internal_user can create and view only their own keys and spend. Map these roles to your identity provider groups and document who holds each one. Delegated team administration should be tested in a non-production instance, since its exact permissions depend on the version you run and should be verified against the access control documentation for that release.

Spend and budget checks roll up from each key to the organization

The diagram starts at a virtual key, the credential an application or person sends requests with. Each request's spend is recorded against the key, then the user who owns it, then the team. Budgets and limits are checked at each of these levels as the spend is counted. In open source, the team is the top boundary. The dashed Enterprise group marks where an organization level sits above teams, so check whether your rollup needs it before you design the hierarchy. Spend records are stored in PostgreSQL.

Spend and budget checks move from key to user, team and organization.

Which hierarchy level fits which ownership question

This table compares the LiteLLM levels that carry access and spend: organizations, teams, users, keys and the three admin roles. Read each row as a question of who needs to decide something, then check the edition column before designing around that level. The main takeaway is that teams are the open source boundary, while organizations and several role-based controls need the Enterprise license.

Level or roleWhat it controlsWho typically owns itNeeds Enterprise license
OrganizationGroups several teams under one top-level boundary for spend attribution and budget enforcementBusiness unit or finance owner with a shared budgetYes
TeamModel access, team budgets, rate limits and team-scoped keys, and the top-level boundary in open sourceProduct or engineering lead for one group of applications or peopleNo
UserIndividual identity, membership in teams and the keys and spend a person can seeIdentity administrator, with the user's manager approving membershipNo
Virtual keyCredential that calls the gateway, with its own budget, rate limits and allowed modelsTeam admin or the service owner who runs the applicationNo
proxy_adminFull control over keys, users, teams and settings on the gatewayPlatform team that operates the gatewayNo
proxy_admin_viewerRead access to all keys and spend, without the ability to create or delete keys or add usersFinance, audit or security reviewersNo
internal_userCreates and views only its own keys and spend within its team limitsIndividual developers, under team-level defaults set by adminsNo

What each LiteLLM admin role can and cannot do

LiteLLM separates who can see spend from who can change access, and that split drives most of the design work in a shared gateway. The cards below cover the three built-in roles, the gap they leave for finance, security and platform staff, and the checks to run before you hand out any role.

Proxy admin keeps full control

The proxy_admin role can view all keys and spend, create and delete keys, and add users. It is the role that effectively owns the gateway, so it should belong to a small platform group rather than to team leads. Confirm in your own environment which people hold it, and review that list on a fixed schedule because every admin can change budgets, models and access for every team.

Access control docs

Viewer sees everything, changes nothing

The proxy_admin_viewer role can view all keys and spend but cannot create or delete keys or add users. Finance and security reviewers fit this role well because they can audit spend against provider bills and check key inventory without being able to issue access. Test the role in a staging gateway first, and confirm which settings in the admin UI remain visible or editable to it in your LiteLLM version.

Internal user manages only own work

The internal_user role can create and view its own keys and spend, and nothing belonging to other people. This is the role for developers who self-serve keys within limits set by their team. It keeps key creation distributed without giving every developer visibility into other teams, but it does not replace team budgets, so confirm which team defaults apply to a new user's keys.

Finance gap: spend without key control

Finance staff usually need to reconcile spend by team and organization against provider invoices, but the viewer role gives them the full key list as well. Decide whether that is acceptable for your organization or whether a reporting export should replace direct access. Ask your LiteLLM contact which reporting views each role receives before you assume finance can work without platform help.

Security gap: visibility without enforcement

Security reviewers can see every key and its spend under the viewer role, yet they cannot revoke a key or change a budget themselves. Plan a separate path for urgent revocation, such as a named proxy admin on call, and record who performed each change. Without that path, a viewer's finding may sit in a ticket queue while a leaked key keeps working.

Platform gap: admin rights for routine tasks

Platform engineers often need to rotate keys, adjust model access and add users, which requires full proxy admin rights. Keep that group small and separate day-to-day work from break-glass access. Document which changes the platform team makes and which team leads request, so the role list matches the operating model rather than the org chart.

Delegating team administration without giving away the gateway

The decision that matters most is which limits stay with the platform team and which move to the people running each team. Keep budget ceilings, model allowlists, routing, logging and the LITELLM_MASTER_KEY with proxy admins, because those settings decide what every team can spend and see. Let team owners handle day-to-day work such as adding members and issuing keys inside those ceilings. Team owners only save time if they can act without a ticket, so the split should be written down before anyone is given access. Treat the boundary as a control, not a convenience.

Team owners should not be able to raise their own budget, expand the models their team can call, change routing or logging, or read other teams' spend. Those are the changes that move money and data across the boundary. Whether a team admin can edit a team's budget, membership or key limits depends on the release in use and on whether you run Enterprise RBAC, which is the feature that adds organization and team role controls. Confirm this in a test tenant with a non-admin account, not from the role names alone. Record what each role can see and change, including whether the internal_user role can view spend for teammates.

Turn the answers into a delegation matrix that lists each action, the role allowed to perform it and the test that proves it. Run those tests after every upgrade, because role behavior can change between minor releases and you should confirm which release line you are on against the LiteLLM enterprise documentation. Check that roll-up totals still match after a team owner adds or removes a key. Delegation works well when the platform team can show an auditor exactly who can change a limit and when that change was made.

How to set up the hierarchy on a self-hosted gateway

This sequence builds the LiteLLM hierarchy in the order it depends on: database first, then budgets, teams and organizations, admin roles, SSO mapping, and finally a test request at each level to prove spend lands where you expect. Each step ends with a check you can record before moving on.

  1. Confirm PostgreSQL backs the virtual keys

    The platform engineering lead confirms that the proxy runs against a PostgreSQL database, because virtual keys, budgets and spend records need one. Check the proxy configuration for the database connection, then create a test key and confirm it appears in the database and the admin UI after a proxy restart. If the key disappears, the database is not persisting state and the hierarchy work should stop until that is fixed. Also confirm the database is the one your backup and recovery plan covers.

  2. Decide the budget level for each boundary

    Before creating anything, the platform owner and finance contact agree which level holds each budget: key, user, team or organization. Spend is attributed to the key, user, team and organization at once, so a budget at one level is enforced regardless of the others. Write the decision down as a short table with one row per boundary and who approves changes. Done means every team that will consume models has a named budget owner and a documented limit, even if the limit is set later.

  3. Create teams and, on Enterprise, organizations

    The platform admin creates the teams that match your cost centers or applications, then adds organizations above them if you hold an Enterprise license. In open source, teams are the top-level boundary, so the hierarchy stops there. Assign each team a budget and the models it may use, matching the decisions from the previous step. Check the admin UI lists each team with its budget and model access, and confirm that no team exists without an owner.

  4. Assign admin and viewer roles deliberately

    The proxy admin assigns the proxy_admin role to a small named group and proxy_admin_viewer to auditors or finance readers. Per the access control documentation, proxy_admin_viewer can see all keys and spend but cannot create or delete keys or add users, which suits reviewers. Keep the break-glass master key out of daily use and store it in a secret manager. Verify by signing in as a viewer account and confirming it can read spend but gets refused when it tries to create a key.

  5. Map SSO users to internal roles

    Connect the identity provider for the admin UI and confirm which users arrive as internal_user. Internal users can create and view their own keys and spend, so this role is the default for developers. Decide which groups from your identity provider grant team membership and which grant admin or viewer roles, and document the mapping. Free SSO covers up to 5 users on the versions named in the pillar facts; beyond that, the Enterprise license applies, so confirm your user count before rollout. Check by signing in with one test account per role and recording what each can see.

  6. Issue a test key for each team

    Create one test key per team with its budget and model list, and confirm the key only reaches the models in its group. Keep the test key scoped so it cannot consume production budget, and record the key ID in your change log. Check that a request against an allowed model succeeds and a request against a model outside the list is rejected. If either result differs from the design, fix the team or key settings before continuing.

  7. Verify spend attribution at every level

    Send one test request through each test key, then compare the spend record for the key, its user, its team and, on Enterprise, its organization. The amount should appear at every level the request belongs to. Compare the logged cost with what the provider reports for the same request, because small differences in pricing or rounding can appear. Close the step by writing down the expected and observed spend for each level, and rerun the test after any budget change.

How spend and budgets roll up in common company shapes

A single business unit sharing one gateway is the simplest shape. Most of the governance can live at the team level, which is the top-level boundary in open source. Every request's spend is attributed to its key, user, team and organization at once, so a team budget already gives the unit a single place to see and cap its consumption. Illustrative example: one product group with three teams, each holding its own budget and a set of keys for applications and developers.

  • Budget holder: The team is the main budget owner. Individual keys and users can carry smaller limits that sit inside the team total.
  • Child exhaustion: When a key or user reaches its own limit, only that key or user stops receiving calls. Other keys on the same team keep working until the team budget itself is spent.
  • Team exhaustion: When the team budget runs out, every key attached to that team is blocked, so the unit should set a clear owner for raising the limit.
  • Temporary increases: Temporary budget increases let an admin cover a deadline without rewriting the standing budget.
  • Visibility: Spend roll-up is visible per key, user and team, which keeps day-to-day questions inside the unit.

Before relying on this shape, confirm with your own environment how your LiteLLM version reports spend at each level and who receives budget alerts.

Security risks in a shared LiteLLM hierarchy

A shared gateway concentrates model access, spend and credentials in one place, so a weak link in the hierarchy affects every team behind it. The cards below pair each risk with a control and a check you can run against your own proxy before rollout. Review them with your identity, secrets and finance owners together.

Over-broad admin roles

Proxy admin roles can manage keys, spend and users across the whole gateway, so a single admin account can reach every team's budget and credentials. Limit the proxy_admin role to a small named group and give read-only oversight to proxy_admin_viewer, which can view all keys and spend but cannot create or delete keys or add users. Review the admin list on a fixed schedule and confirm that every admin signs in through SSO with their own account.

Access control docs

Keys outliving staff

Keys issued to people remain valid after they change teams or leave, which leaves access and spend attributed to someone who no longer works for you. Tie each person's key to their directory account, make offboarding revoke their keys as part of the same ticket, and use service account keys for production applications so they survive staff changes. Ask your team to show how a departed user's keys are found and disabled.

Budgets set only at team level

A team budget caps the total, but it does not show which key or user drove the spend, and one runaway key can exhaust the shared allowance for everyone else on that team. Set budgets on individual keys and users as well as on the team, so that each level enforces its own limit. Confirm in a test environment that a key reaching its own budget is blocked while the team budget still has headroom.

Virtual keys docs

SSO user sprawl past the free limit

From v1.76.0, SSO in the admin UI is free for up to 5 users, and an Enterprise license is needed beyond that. Once more people sign in through SSO than the free allowance covers, the cost and the licensing position change, and accounts can multiply through informal sharing of logins. Count the identities that will sign in before you choose an edition, and confirm with LiteLLM how the license counts users in your configuration.

Admin UI SSO docs

Master key stored outside a secret manager

LITELLM_MASTER_KEY grants full administrative control of the proxy, and a copy in a configuration file, a chat thread or a shell history gives that control to anyone who sees it. Store it in a secret manager, make sure the value starts with sk- as LiteLLM requires, and limit which workloads can read it. Rotate it when an administrator leaves, and verify that routine day-to-day administration uses named admin accounts rather than the master key.

Production guide

Unscoped team membership

A user who belongs to several teams can spend against each team's models and budgets, and unclear membership makes it hard to tell which team owns a request. Define one owning team for every production key, restrict keys to the models that team needs, and review team membership against your HR records. Ask who approves membership changes and how often the membership list is reconciled.

Questions teams ask before designing LiteLLM access

Can I run LiteLLM access control with teams only in open source?

Yes. In open source, teams are the top-level boundary for access and spend, so every request is attributed to its key, user, team and the budgets that apply to each. Organizations are an Enterprise feature, so if your company needs a layer above teams, such as a business unit that owns several teams with its own roll-up, plan for the Enterprise license from the start. Confirm with LiteLLM which features your chosen version includes before you lock in a hierarchy, because the open source and Enterprise boundaries are documented in the LiteLLM access control docs.

What does the organization layer add under LiteLLM Enterprise?

An organization sits above teams, so spend and budgets can roll up to a business unit or legal entity as well as to each team. Enterprise also adds organization and team RBAC, audit logs and SSO and SCIM beyond the free limit. Whether you need those depends on how many people administer the gateway and how your finance and audit teams report on it. Ask LiteLLM to confirm the exact role and budget behavior for organizations in the version you plan to run, since the Enterprise docs are the reference for those details.

How much effort does designing LiteLLM access take?

The effort depends on the number of business units, teams, model groups and admin roles, and on how much the design must match an existing identity structure. A small single-team gateway needs a short design pass, while a company with several divisions, delegated team admins and chargeback needs a longer one. Because DeployOpen works from a written scope, the quote follows from the hierarchy, the number of identity and budget integrations and the testing you require. Ask for the design, configuration and verification steps to be listed separately so you can see what is one-time work and what your team maintains afterward.

What drives the cost of a LiteLLM access design project?

The main drivers are how many levels the hierarchy needs, how many teams and keys must be migrated or created, whether SSO and SCIM are connected to your identity provider, and how budgets must match finance cost centers. Each added rule for model groups, rate limits or delegated admins adds configuration and test work. Costs are one-time for design and build, while your team carries recurring work for onboarding, budget changes and reviews. Ask any provider to split the quote into design, build, testing and handover so you can compare it with doing the work internally.

What does the LiteLLM access work need from our identity team?

Your identity team needs to confirm which provider is the source of truth for users and groups, such as Google, Microsoft Entra ID, Okta or a generic OIDC provider, and how group membership should map to LiteLLM teams. Decide who can create teams, who is a proxy admin and who only views spend, and how offboarding removes access. If you plan to use SCIM or JWT authentication, those need Enterprise and an agreed claim structure. Ask for a written mapping of identity groups to LiteLLM roles before any configuration starts.

What does the design need from our finance team?

Finance should define the budget owners, the cost centers that match each team or organization, the monthly or period limits and how temporary increases are approved. Spend in LiteLLM is attributed at key, user, team and organization level, so the hierarchy only helps chargeback if it matches how your ledger is organized. Ask finance to confirm whether provider invoices will be reconciled against gateway spend, because that reconciliation is a separate piece of work.

Can our own engineers design and run LiteLLM access without a partner?

Yes, if you have people who can operate a PostgreSQL-backed proxy, understand the admin roles and own the identity and budget decisions. The official docs cover virtual keys, self-serve keys and access control, and the roles are straightforward once the hierarchy is settled. The harder part is governance: agreeing ownership, approvals and review cadence across teams. If your team lacks time or experience with that work, a fixed-scope engagement can cover design, configuration and testing, with the written scope showing which parts you keep afterward.

Limits to confirm in your environment

The hierarchy described on this page depends on behavior that changes between releases and editions. The cards below list what to confirm with the vendor or in a test environment before you commit roles, budgets and team boundaries to a production gateway.

Organization and team delegation behavior

Confirm exactly how team admins can create teams, add members, assign models and set budgets in the release you run. Ask whether a delegated team admin can raise a limit above the value an organization or proxy admin set, and whether a team can reach models outside its own allowlist. Test both in a staging proxy using a non-production team before you give delegated admin rights to anyone.

Access control docs

RBAC actions the Enterprise license unlocks

Ask the vendor for a written list of which organization and team RBAC actions, audit log views and admin permissions require the Enterprise license, and which work in open source. Map each action your design relies on to that list. Do not assume that a role name in the open-source documentation carries the same permissions once an Enterprise license is applied.

Enterprise docs

Budget reset behavior

Confirm how each budget type resets (per key, per user, per team and per organization), the timezone used for the reset, and whether a reset applies to spend already recorded or only to new requests. Ask how temporary budget increases expire and whether they are logged. Finance teams reconcile against these resets, so verify them against a known test spend before you rely on monthly reports.

Spend update batching at scale

Ask how often spend is written to the database under your expected request volume and whether the batch interval is configurable. A delayed write means a team can briefly exceed its budget, and a shared limit enforced across several proxy instances depends on a shared Redis store. Load test a realistic number of teams and keys and compare the spend shown in the admin UI with the provider invoice for the same period.

Production guide

Role and key ownership after staff changes

Confirm what happens to keys, spend history and team membership when a user leaves, changes team or is deactivated. Ask whether a key owned by a user keeps working, whether its spend rolls up to the team, and who can reassign it. Test this path with a disposable user, because it determines whether production applications need keys that belong to a team rather than to a person.

How DeployOpen scopes a hierarchy design

A written scope for a LiteLLM hierarchy design starts by fixing the tree itself: which organizations, teams and users exist, which of them need Enterprise organization objects, and which can be handled with teams alone in open source. The scope also records who owns each team, which team admins can add members and keys, and which spend and budget boundaries finance will report against. Because the license split matters here, the scope names the edition explicitly and states whether organization RBAC and SCIM are in or out, so the design does not assume features the deployment will not have.

The scope then maps internal roles to the identity groups that already exist in the client's directory. In practice this means deciding which groups become proxy_admin, which become proxy_admin_viewer for audit and finance reviewers, and which map to internal_user for self-serve key creation. Where SSO is in scope, the scope confirms which identity provider is used and whether group claims arrive in a form LiteLLM can read. The reader should confirm with their identity team whether group membership changes automatically when someone leaves, since role mapping is only as current as the source groups.

The test plan for spend roll-up is written into the scope as a set of checks, not a general promise to verify billing. Typical checks use a test key under a test team and organization, send known requests, and confirm that the attributed spend appears at key, user, team and organization level and that a budget at each level blocks traffic when reached. The handover section of the scope lists the admin procedures LiteLLM operators will run after go-live, such as creating teams, rotating team admins and raising temporary budgets, and names who receives the runbook and training. Ask any provider to show the written scope, the test cases and the handover list before work starts.

How DeployOpen delivers LiteLLM access design

DeployOpen plans, builds, documents and supports the organization, team, user and role hierarchy of a self-hosted LiteLLM gateway inside your own infrastructure. The work starts with a written scope so that spend roll-up, budgets and admin roles are agreed before any keys are issued.

How we scope

  • We agree in writing which organizations, teams, users and admin roles the gateway will carry before work starts.
  • Engagements are fixed-scope, so scope, deliverables and timelines are set out in writing before work begins.
  • We confirm which LiteLLM features your edition supports, including organizations, which the open-source edition does not offer.

How we build

  • We configure teams, internal users, proxy admin and viewer roles, and delegated team admins to match your approval chain.
  • We set budgets and rate limits at key, user and team levels and verify that spend rolls up as the design intends.
  • We test that role permissions block key creation, user management and cross-team spend access as documented.

How we hand over

  • You receive a written hierarchy map, role matrix and budget roll-up description that your security and finance teams can review.
  • We document the admin runbook for adding teams, moving users and changing budgets without reissuing keys.
  • We walk your administrators through the setup so they can run routine changes after handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial build.
  • Retainers can cover re-testing role permissions after LiteLLM upgrades and after new teams or organizations are added.
  • Confirm with us whether your support needs include the vendor's Enterprise support channel, which is a separate agreement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.