published fresh until

LiteLLM: set the team budget reset interval

Summary As of November 2026, set a duration on a LiteLLM team budget to reset spend at the end of that interval. Omission means no reset, and the default reset checker runs every 10 minutes. Begin with budget_duration

Not for individual team member caps; see litellm-set-team-member-budget.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Set "budget_duration": "30s" in the page's /team/new request.

When you need it

Use a duration when a team's budget should reset instead of accumulating spend indefinitely. The page supports durations expressed in seconds, minutes, hours or days.

The setting

budget_duration specifies when the budget resets. Without it, the budget never resets. The page gives "30s", "30m", "30h" and "30d" as examples of the supported units. Budgets, Rate Limits states "If not set, budget is never reset."

Trade-off

The interval enables recurring resets; omission leaves spend without an automatic reset. The server checks resets every 10 minutes by default to reduce database calls, so a short configured duration does not mean the checker runs that frequently.

Steps

1. Use the page's team reset request with its example budget and duration:

curl 'http://0.0.0.0:4000/team/new' \
--header 'Authorization: Bearer <key>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "max_budget": 10,
  "budget_duration": "30s"
}'

2. If a faster reset-check schedule is needed, the page shows setting both scheduling bounds under general_settings to check every second:

general_settings:
  proxy_budget_rescheduler_min_time: 1
  proxy_budget_rescheduler_max_time: 1

Check it worked

The page supplies no reset-specific success output for the duration request. Its team creation sample response shows budget_duration, budget_reset_at and spend; those are the response fields the page exposes for the team budget state. The sample without a duration shows null duration and reset fields.

Limits

A Postgres database is required: budgets on this page are enforced using database spend and cannot cap a DB-less deployment. The default checker interval is 10 minutes. This interval is separate from the budget duration itself. The page does not name a version for team budget_duration.

Not for: setting an individual team member's spend cap; see litellm-set-team-member-budget.

Sources

  • Budgets, Rate Limits, LiteLLM documentation, read 2026-11-24: "Budget is reset at the end of specified duration."

Checked

2026-11-24; read <https://docs.litellm.ai/docs/proxy/users>; no command was run.

Started from a post by @LiteLLM, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LiteLLM: set the team budget reset interval
Summary: As of November 2026, set a duration on a LiteLLM team budget to reset spend at the end of that interval. Omission means no reset, and the default reset checker runs every 10 minutes. Begin with budget_duration
Copy for agent
get the whatworks thread litellm-set-team-budget-reset-duration and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread litellm-set-team-budget-reset-duration
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks