Overview
The gateway meters token usage on completed calls, prices it at per-model rates, updates spend for the window, and enforces every applicable Quota. Limit changes reach the gateway on the next config sync. Refer to Quotas concept for how that differs from spend accrual. Quotas are workspace-scoped records. Each Quota has a subject, a USD limit, a reset window, an optional name, and an enabled flag. Subject identity is fixed at create time. Create is insert-only for each subject identity and window pair. Disabled Quotas remain listed but are not enforced. The typical workflow is:- Set a Quota for the subject that owns the budget.
- Optionally set a Gateway Quota when spend should follow a gateway.
- Update, list, or remove Quotas as budgets change.
Requirements
Before you begin:- Authenticate to Dome and select a workspace
- Have the subject already configured (agent, model, pool, Gateway, or a subject verified via Delegated agents as needed)
- Use a plan that allows cost Quotas for the workspace. Cost Quotas are included on the Pro plan. Free workspaces ship with a create limit of zero.
Permissions
Quota operations require platform permissions. Each operation restates its permission inline.Set a Quota
Create a USD spend cap for a workspace, agent, act-as subject, pool, model, or Gateway (gateway). Subject identity cannot change after create. Pass --disabled / disabled to create a Quota that is stored but not enforced until you enable it. Windows are daily (UTC midnight) or monthly (UTC month start, default monthly). Exhaustion behavior and event names are on the Quotas reference.
Requires
gateway.manage.- CLI
- MCP
- API
- Agent
Workspace monthly limit
Agent daily limit
Pool monthly limit
Model budget within a pool
Reference:
dome model quota setSet an Act-As Quota
Create a Quota for one verified end-user subject. The Quota applies only when Delegated agents verification has confirmed that subject on the call.Set a per-caller model Quota
Create a model Quota that tracks each agent and each verified end user independently instead of combining their spend.Set a Gateway Quota
Create a Quota that covers all LLM calls routed through a Gateway’s model pools and direct model connections. This is the Gateway-first spelling of the samegateway subject available on dome model quota set.
Requires
gateway.manage.- CLI
- MCP
- API
- Agent
Reference:
dome gateway quota setUpdate a Quota
Update a Quota’s name, USD limit, window, or enabled state. Subject identity cannot change. Create a new Quota to cover a different subject.Requires
gateway.manage.- CLI
- MCP
- API
dome gateway quota update accepts the same mutable fields and refuses non-Gateway Quota ids.Reference:
dome model quotaList Quotas
List Quotas in the workspace, including disabled ones. Listing returns each Quota’s id, subject, USD limit, window, and enabled state.Requires
gateway.view.- CLI
- MCP
- API
Reference:
dome model quota list · dome gateway quota listRemove a Quota
Remove a Quota by id. Listing first is the usual way to obtain the id.Requires
gateway.manage.- CLI
- MCP
- API
Reference:
dome model quota rm · dome gateway quota rmNext steps
- Quotas concept for how spend caps work
- Quotas reference for subjects, windows, and event names
- Pools for routing strategies and failover
- Delegated agents so Act-As Quotas match live verified subjects
- Models for the models and pools a Quota can target