CH·02CLI reference

deeprelay 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 — deeprelay.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, deeprelay spend-limit shows the current settings. Setting a limit requires org-admin privileges; a non-admin member gets a permission error.

Examples

# Show the current monthly limit + daily cap and spend so far
deeprelay spend-limit

# Set a $25/day cap (leaves the monthly limit unchanged)
deeprelay spend-limit --daily 25

# Set both the monthly limit and the daily cap
deeprelay spend-limit --monthly 1000 --daily 50

# Remove the daily cap (monthly limit stays)
deeprelay spend-limit --clear-daily

# JSON for scripting
deeprelay spend-limit --output json | jq '.daily_limit_dollars'
deeprelay spend-limit [flags]

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)

Options inherited from parent commands

      --api-base string   API base URL (override with DEEPRELAY_API_BASE env) (default "https://api.deeprelay.ai/v1")
      --debug             Enable debug logging to stderr
      --no-preflight      Skip the plan/credit check before inference requests (override with DEEPRELAY_NO_PREFLIGHT env)
  -o, --output string     Output format: table|json (default table on TTY, json otherwise) (default "table")

SEE ALSO

  • deeprelay - deeprelay command-line interface

← The gpu CLI