gpu spend-limit
View or set the org monthly spending limit and daily spend cap
View or set the org monthly spending limit and daily spend cap
Synopsis
Show the org's current monthly spending limit and opt-in daily spend cap, along with how much has been spent this month and today — or set them.
The daily cap is a sibling to the monthly limit: both can be set, and the tighter applicable limit wins. It defaults to none — GPU.ai never imposes a platform default cap. Use it to bound the blast radius of a compromised key or a runaway script: once the org's spend in the current UTC day reaches the cap, new spend is blocked until the next day.
With no write flags, gpu spend-limit shows the current settings. Setting a
limit requires org-admin privileges; a non-admin member gets a permission
error.
gpu spend-limit [flags]
Examples
# Show the current monthly limit + daily cap and spend so far
gpu spend-limit
# Set a $25/day cap (leaves the monthly limit unchanged)
gpu spend-limit --daily 25
# Set both the monthly limit and the daily cap
gpu spend-limit --monthly 1000 --daily 50
# Remove the daily cap (monthly limit stays)
gpu spend-limit --clear-daily
# JSON for scripting
gpu spend-limit --output json | jq '.daily_limit_dollars'
Options
--clear-daily Remove the daily spend cap
--daily float Set the opt-in daily spend cap in USD
-h, --help help for spend-limit
--monthly float Set the monthly spending limit in USD (min 1.00)
--daily and --clear-daily are mutually exclusive. When you set only the
daily cap, the existing monthly limit is preserved.
Options inherited from parent commands
--api-base string API base URL (override with GPUAI_API_BASE env) (default "https://api.gpu.ai/v1")
--debug Enable debug logging to stderr
-o, --output string Output format: table|json (default table on TTY, json otherwise)
SEE ALSO
- gpu - GPU.ai command-line interface