Skip to main content

Overview

The CLI provides full CRUD for spending policies. Lists show [organization] for mandatory baselines and the effective assignment path, such as [agent] or [wallet], for assigned policies.

Create a Policy

The interactive builder walks you through each step with descriptions:
You’ll be prompted for:
  1. Policy name. A descriptive label.
  2. Policy type. 14 types available, each with an explanation.
  3. Scope. Apply to the entire organization or only explicitly assigned targets.
  4. Priority. Higher numbers are evaluated first. Use 0-100. Default is 50.
  5. Rules. Optionally add the first rule immediately.
  6. Assignment. Assigned policies can be linked to the current agent.

Policy Types

Add Rules

Add rules to an existing policy:
The rule builder prompts for:
  • Rule type: Context-aware options based on the policy type
  • Operator: <=, >=, in list, not in list, between, etc.
  • Value: With smart placeholders (dollar amounts for limits, JSON arrays for lists, country codes for geographic rules)
  • Action: Allow, Deny, or Require Approval

Value Examples by Rule Type

Update & Delete

Assign & Unassign

Control which policies apply to your agent:
Organization policies cannot be assigned or unassigned because they already apply to every payment. To stop one, deactivate or delete it. Assigned policies do nothing until linked to an agent, wallet, or card.

List All Org Policies

To see every policy in the organization (not just your agent’s):
This shows the policy ID, agent count, rules, and active status for all policies.

JSON Output

All policy commands support --json: