Skip to content

Drush commands

Command Alias Purpose
ai-metering:quota-reset <uid> [--month=YYYY-MM] aim-quota-reset Zero a user's token counter for the current month, or a specified one.
ai-metering:set-user-budget <uid> <budget> aim-budget Set a user's monthly token budget.
ai-metering:sync-pricing aim-sync Fetch latest model pricing from the configured pricing source and update state.
ai-metering:litellm-user-spend <userId> aim-user Show LiteLLM proxy spend for a given user (requires LiteLLM proxy integration enabled).
ai-metering:litellm-report aim-report Show aggregated spend from the LiteLLM proxy.

There is no Drush command for the monthly rollup; it runs only via cron (see Monthly rollup and retention purge).