# Advanced Quota Rules

> Since 2026-11-20 (requested by a user), a quota rule can hold several conditions on different accounts and providers, wait until a reset is far away, keep a backup account for when every other account is full, and add up with another rule: one rule changes the account, another the model, on the same new launch.

- Area: Desktop app
- Plans: All plans
- Last checked against the product: 2026-11-20
- Web page: https://agentsroom.dev/docs/quota-rules-advanced

## What it does

Since 2026-11-20 (requested by a user), a quota rule can hold several conditions on different accounts and providers, wait until a reset is far away, keep a backup account for when every other account is full, and add up with another rule: one rule changes the account, another the model, on the same new launch. The basics of quota rules are in [Quota Rules](https://agentsroom.dev/docs/quota-rules.md).

## Where to find it

Usage panel > **Quota management** > a rule > **Another condition** under the condition cards, **Reset time** in the panel of a card, and in **Redirect a launch** the **Backup account** field.

## How to use it

**Several conditions.** In the rule editor, **Another condition** under the cards adds a card with its own provider, account, gauge, threshold and reset time; clicking any card, the first included, opens all its settings, and its cross removes it. Remove them all but one and the rule is a simple rule again. **All of them** (the default) acts when every condition holds, **At least one** when any holds; the choice shows above the cards from two conditions on. The action applies to the launches of the provider of condition 1, whatever their account; a condition on **Most constrained** of that provider judges the account of the launch, like a simple rule. The status and the notification name the condition they speak about ("Firing now, 96% · Codex (A)").

**Reset far away.** In the panel of a condition card, **Reset time**: **Any time**, **In less than** or **In more than**, with 10 min, 30 min, 1 h, 3 h, 6 h, 1 d or 2 d. **In more than** fires only while the reset is still far away, to protect a week that resets late.

**Backup account.** On **Redirect a launch** with **Most quota left** or **Next to reset**, **Backup account** names an account the app takes only when no other account has room. New launches come back to the other accounts after their reset, with no edit. **None** keeps the previous behaviour.

**Rules that add up.** At launch the first satisfied rule wins, except that an account change (**Redirect a launch**) and a model or effort change on the same provider (**Change provider, model or effort** without changing provider) both apply to the same new launch. Example: "Perso full: redirect to Perso 2" above "session at 90 %: Sonnet with low effort" gives Perso 2 with Sonnet in low effort, judged on Perso 2. The list order still decides within each kind, a block still stops everything, and running agents are never touched by this.

**What "Quota used: 10 %" meant.** In **Alternate providers**, the mode once labelled **Quota used** is now **A share of each gauge**, and each row reads "10 pts · Session": each provider uses that many POINTS of its own gauge (10 = from 40 % to 50 %), then hands over to the next one. It is neither a cap nor a weight. **Most quota left** is the mode that compares session and weekly gauges at each launch.

## Settings

- `quotaRules` (global, see [Quota Rules](https://agentsroom.dev/docs/quota-rules.md)): `condition.window: "group"` with `condition.group { match: all | any, atLeast?, items }` (items are ordinary conditions or nested groups, up to 4 levels and 16 conditions; the top provider and account are those of the first condition), `condition.resetBeyondMinutes` (1 to 10080), `action.backupAccountId` (`reroute-account` with `accountChoice` only).

## Agent tools (MCP)

- `quota_rules_save` accepts the same fields. `atLeast` (N conditions out of the list) and nested groups are only written over MCP; the editor shows a nested group as a sentence that can be removed. Send `group: null` with another window to go back to one condition. A grouped rule is refused with **Alternate providers** or **Move running agents**.

## Providers

- Every provider that publishes a quota gauge can appear in a condition; one rule can mix providers (Claude and Codex accounts in the same rule).

## Mobile

- The phone shows and edits these rules (conditions, reset time, backup account) when the desktop it is paired with knows them. The desktop applies them.

## Limits

- Actions of a rule with several conditions: **Block a launch**, **Redirect a launch**, **Change provider, model or effort**, **Run a trigger**, notify. Not **Alternate providers** (no threshold) nor **Move running agents** (it follows one account).
- An older AgentsRoom (desktop or phone) that receives such a rule through the sync does nothing with it until it is updated. Publish the server change before the desktop version.
- The backup account is not used by **Move running agents** nor by the automatic account switch: it only concerns new launches.

## Common questions

- **Can one rule say "if Claude AND both Codex accounts are nearly full, then use cheaper models"?** Yes, since 2026-11-20 (requested by a user): add the conditions with **Another condition**, keep **All of them**, then pick **Change provider, model or effort**. Each condition can watch its own account and gauge. The action applies to the launches of the first condition's provider: add the same conditions to a second rule for the other provider's launches.
- **My account rule and my model rule block each other: only the first one applies.** Since 2026-11-20 they add up: an account change and a model or effort change on the same provider both apply to the same new launch. Other actions still follow the list order.
- **Can a rule wait until the reset is far away, for example "more than 24 h before the weekly reset"?** Yes, since 2026-11-20: **Reset time** > **In more than** > **1 d**.
- **Can I keep an account for emergencies only?** Yes, since 2026-11-20: on **Redirect a launch** with **Most quota left** or **Next to reset**, set **Backup account**. It is used only when every other account is full, and launches go back to the others after their reset.


## Related

- [Quota Rules](https://agentsroom.dev/docs/quota-rules.md): the rules themselves, the editor, every action. [Multiple Accounts](https://agentsroom.dev/docs/multi-account.md): the accounts a redirect chooses from.
