Budget rollover
By default a reset starts the next period at zero spend, so overspend is forgiven and unused budget is lost. Two settings change what carries over, and they work on their own or together.
litellm_settings.budget_rollover: true carries overage forward. Spend above the cap at the reset counts against the next period, so a $100 budget that ended its period at $110 starts the next one with $10 already spent. It is one switch for the whole proxy and covers almost every scope that resets.
rollover_max_budget Since v1.112.0 carries unused budget forward as credit, up to a ceiling. Set it on an internal user, or set team_member_rollover_max_budget on a team as the ceiling for its members. The ceiling covers the base budget plus carried credit, must be higher than max_budget, and needs a reset period. A user with max_budget: 100 and rollover_max_budget: 150 who spent $40 starts the next period with $150 available, because $60 went unused and $50 of it fits under the ceiling.
How it works
At each reset LiteLLM first works out the credit. The amount left unused, which is the base max_budget plus the current credit minus the period's spend, becomes the new credit, kept between zero and the ceiling minus max_budget. A period that ended over its cap therefore leaves no credit. Then, with budget_rollover on, spend above the cap, meaning max_budget plus any credit, stays on the budget as spend in the next period, and without it spend goes back to zero. If the user in the diagram spends nothing more in March, $92 goes unused and April starts with the full $50 credit again, since credit never grows past the ceiling. Spend can end a period above its cap when a request turns out to cost more than the room that was left, or when a key is throttled instead of blocked.
When to use it
Turn on budget_rollover when a cap is a hard allowance over time and an overrun should be paid back rather than forgiven. A team on a fixed monthly allowance that overshoots by a long final request, or a throttled key that kept serving past its max_budget, then starts the next month with less room, so the average stays at the cap. It suits finance teams that reconcile spend per period and want overruns to come out of the next one.
Set rollover_max_budget when usage is uneven from month to month. An engineer who uses little most months can bank part of the allowance for a heavy month, and the ceiling keeps the bank from growing without limit. team_member_rollover_max_budget does the same for every member of a team that gives its members a default budget.
For a one-off increase, use a temporary budget increase instead, which expires on its own. To let a group share headroom rather than carry it forward, give them a team budget and drop the per-member cap. Credit is only for internal users and team members, so a key, team, organization or project that needs more room each period needs a higher max_budget.
Supported scopes
Overage carry-over
litellm_settings.budget_rollover: true turns it on for every supported scope at once.
| Scope | Supported | How to set it |
|---|---|---|
| Whole proxy | Yes | Spend above litellm_settings.max_budget carries over at the budget_duration reset. |
| Organization | Yes | Carries over at the organization budget's reset. |
| Team | Yes | Carries over for the team's max_budget and for each budget_limits window. |
| Team member | Yes | Carries over for the member budget, measured against the base budget plus any credit. |
| Project | Yes | Carries over at the project budget's reset. |
| Virtual key | Yes | Carries over for the key's max_budget, its linked budget row and each budget_limits window. |
| Internal user | Yes | Carries over for the personal budget, measured against the base budget plus any credit, and for each budget_limits window. |
| Customer | Yes | Carries over for customers created with /customer/new and for Customer Management budgets. Customer Management budget_limits windows start each period empty. |
| Tag | Yes | Tags created with /tag/new. Tag budgets in tag_budget_config do not carry over. |
| Model access group | Yes | Carries over at the group budget's reset. |
| AI tool | No | Each tool budget starts its next period at zero. |
| Agent session | No | A session budget has no reset. Its counter just expires after LITELLM_MAX_BUDGET_PER_SESSION_TTL. |
Unused budget carry-over
| Scope | Supported | How to set it |
|---|---|---|
| Whole proxy | No | - |
| Organization | No | /organization/new accepts rollover_max_budget but it has no effect on organization spend. |
| Team | No | The team's own budget earns no credit. team_member_rollover_max_budget covers its members. |
| Team member | Yes | team_member_rollover_max_budget on /team/new or /team/update, or Member Rollover Cap (USD) in the team's member defaults. |
| Project | No | - |
| Virtual key | No | Keys have no rollover_max_budget. |
| Internal user | Yes | rollover_max_budget on /user/new, /user/update or /user/bulk_update, or Rollover Cap (USD) in the user's edit form. |
| Customer | No | - |
| Tag | No | - |
| Model access group | No | - |
| AI tool | No | - |
| Agent session | No | - |
How to use it
Carry overage into the next period
Turn it on in config.yaml.
litellm_settings:
budget_rollover: true
When config.yaml does not set it, a proxy admin can switch budget_rollover instead on the General tab of Router Settings in the Admin UI, which saves it in the database for every instance. A value in config.yaml locks that switch. The reset job reads the setting on each run, so it applies from the next reset on.
Carry unused budget forward for a user
Set rollover_max_budget together with a max_budget below it and a budget_duration.
curl -X POST 'http://0.0.0.0:4000/user/update' \
-H "Authorization: Bearer $LITELLM_MASTER_KEY" \
-H 'Content-Type: application/json' \
-d '{"user_id": "alice", "max_budget": 100, "budget_duration": "1mo", "rollover_max_budget": 150}'
LiteLLM rejects the change with a 400 when the user would end up with a ceiling but no budget_duration, no max_budget, a max_budget of zero or less, or a max_budget at or above the ceiling. That also applies to later edits, so clear the ceiling before you remove the reset period. Send "rollover_max_budget": null to turn credit off, which also drops any credit already earned. In the Admin UI, open the user under Internal Users, edit it, and fill in Rollover Cap (USD).
Credit raises the cap of the user's personal budget, so it applies wherever that budget does, which is keys with no team and, with general_settings.apply_user_budget_to_team_keys on, team keys too. It does not raise the user's budget_limits windows.
Carry unused budget forward for team members
Set team_member_rollover_max_budget next to the team's default member budget. The member budget needs a reset period, either team_member_budget_duration or, when you leave that out when you create the team, the team's own budget_duration.
curl -X POST 'http://0.0.0.0:4000/team/new' \
-H "Authorization: Bearer $LITELLM_MASTER_KEY" \
-H 'Content-Type: application/json' \
-d '{
"team_alias": "research",
"max_budget": 2000,
"budget_duration": "1mo",
"team_member_budget": 100,
"team_member_budget_duration": "1mo",
"team_member_rollover_max_budget": 150
}'
Send the same field to /team/update to add, change or clear it on an existing team. In the Admin UI, open the team under Teams, go to Member Defaults, select Edit Defaults and fill in Member Rollover Cap (USD). Team admins can change it only when a proxy admin lists team_member_rollover_max_budget in general_settings.team_admin_editable_team_fields. Each member earns credit on their own, and the team's max_budget still caps all members together.
Check carried credit
For a user with a ceiling, /user/info returns rollover_max_budget, the current rollover_credit and effective_max_budget, which is max_budget plus the credit. /team/info returns rollover_credit and effective_max_budget for each entry in team_memberships. Overage carried by budget_rollover shows up as the spend the new period starts with.
Limits
Overage is measured against max_budget plus any credit, never including a temporary budget increase. Spend made under an active increase that is above the base budget therefore carries into the next period when budget_rollover is on.
Per-model budgets and AI tool budgets never carry anything over, and Customer Management budget_limits windows start each period empty.
For budget_limits windows LiteLLM keeps carried overage only in the window's spend counter, not in the database, so it is lost if Redis loses that counter during the period.
Rollover only changes what happens at a reset. A budget with no budget_duration never resets, so neither setting does anything for it.
Related
Budget reset times and timezones covers when resets happen, Multiple budget windows covers budget_limits, and Team members covers the member budgets that team_member_rollover_max_budget builds on.