> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sazabi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# sazabi billing

> Command reference for sazabi billing.

`sazabi billing` — View and manage billing: usage, plans, credits, and subscribe. Subcommands: `summary`, `usage`, `charges`, `invoices`, `transactions`, `auto-top-up`, `credits`, `plans`, `payment-methods`, `budgets`.

## `sazabi billing`

View and manage billing: usage, plans, credits, and subscribe

```txt theme={"system"}
sazabi billing <subcommand>
```

```bash theme={"system"}
sazabi billing summary  # Show billing plan and balance
sazabi billing plans subscribe --plan team-v1 --yes  # Subscribe from the terminal
sazabi billing credits purchase --amount 50  # Buy credits
sazabi billing auto-top-up set --enable --trigger-balance 10 --amount 50 --cycle-limit 200  # Enable auto top-up
```

### `sazabi billing summary`

Show the billing summary for your organization

```txt theme={"system"}
sazabi billing summary [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi billing summary  # Show billing summary
sazabi billing summary --json  # Output as JSON
```

### `sazabi billing usage`

Show per-dimension usage for the current or previous cycle

```txt theme={"system"}
sazabi billing usage [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--cycle` | string | No | Which cycle to report (current or previous) |

```bash theme={"system"}
sazabi billing usage  # Current cycle usage
sazabi billing usage --cycle previous  # Previous cycle usage
sazabi billing usage --json  # Output as JSON
```

### `sazabi billing charges`

Show usage charges accrued so far in the open billing cycle

```txt theme={"system"}
sazabi billing charges [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi billing charges  # Accrued this cycle
```

### `sazabi billing invoices`

List cycle-end usage invoices

Invoices are the local settlement record written at the end of each billing cycle.

```txt theme={"system"}
sazabi billing invoices [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--limit` | string | No | Maximum invoices to return (default 24, max 100) |

```bash theme={"system"}
sazabi billing invoices  # Recent usage invoices
sazabi billing invoices --limit 5 --json  # Five newest, as JSON
```

### `sazabi billing transactions`

List credit ledger transactions

```txt theme={"system"}
sazabi billing transactions <subcommand>
```

#### `sazabi billing transactions list`

List credit ledger transactions

```txt theme={"system"}
sazabi billing transactions list [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--limit` | string | No | Max results per page (default 10, max 100) |
| `--page` | string | No | Page number (1-indexed) |

```bash theme={"system"}
sazabi billing transactions list --page 2  # List the second page
```

### `sazabi billing auto-top-up`

View or configure credit auto top-up

```txt theme={"system"}
sazabi billing auto-top-up <subcommand>
```

#### `sazabi billing auto-top-up get`

Show the current auto top-up settings

```txt theme={"system"}
sazabi billing auto-top-up get [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi billing auto-top-up get  # Show current auto top-up settings
```

#### `sazabi billing auto-top-up set`

Enable/disable and configure auto top-up

```txt theme={"system"}
sazabi billing auto-top-up set [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--enable` | boolean | No | Enable auto top-up |
| `--disable` | boolean | No | Disable auto top-up |
| `--trigger-balance` | string | No | Credit balance that triggers a top-up |
| `--amount` | string | No | Currency amount to charge per top-up |
| `--cycle-limit` | string | No | Maximum auto top-up spend per cycle |
| `--yes` | boolean | No | Skip the confirmation prompt |

```bash theme={"system"}
sazabi billing auto-top-up set --enable --trigger-balance 10 --amount 50 --cycle-limit 200  # Enable auto top-up
sazabi billing auto-top-up set --disable  # Turn auto top-up off
```

### `sazabi billing credits`

Purchase credits

```txt theme={"system"}
sazabi billing credits <subcommand>
```

#### `sazabi billing credits purchase`

Buy a one-time amount of credits with the saved payment method

```txt theme={"system"}
sazabi billing credits purchase [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--amount` | string | No | Dollar amount of credits to purchase (e.g. 50) |
| `--idempotency-key` | string | No | Explicit idempotency key (advanced; auto-generated otherwise) |
| `--yes` | boolean | No | Skip the confirmation prompt |

```bash theme={"system"}
sazabi billing credits purchase --amount 50  # Buy $50 of credits (prompts to confirm)
sazabi billing credits purchase --amount 50 --yes  # Buy without a prompt
```

### `sazabi billing plans`

View and manage subscription plans

```txt theme={"system"}
sazabi billing plans <subcommand>
```

#### `sazabi billing plans list`

List the self-serve plans available for checkout

```txt theme={"system"}
sazabi billing plans list [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi billing plans list  # List plans available for checkout
```

#### `sazabi billing plans get`

Show one plan with everything it includes

```txt theme={"system"}
sazabi billing plans get <slug> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi billing plans get startup-v2  # Every limit and integration the plan includes
```

#### `sazabi billing plans current`

Show the current plan

```txt theme={"system"}
sazabi billing plans current [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

#### `sazabi billing plans subscribe`

Subscribe or resubscribe through secure checkout

```txt theme={"system"}
sazabi billing plans subscribe [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--plan` | string | No | Target plan slug (see `sazabi billing plans list`) |
| `--yes` | boolean | No | Skip confirmation |
| `--no-browser` | boolean | No | Do not launch a browser; print the URL to stderr |
| `--wait` | boolean | No | Wait for the browser handoff to complete |
| `--no-wait` | boolean | No | Print the browser link and exit without waiting |

#### `sazabi billing plans preview`

Preview the financial effect of switching plans

```txt theme={"system"}
sazabi billing plans preview [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--plan` | string | No | Target plan slug (see `sazabi billing plans list`) |

#### `sazabi billing plans switch`

Switch plans after preview and confirmation

```txt theme={"system"}
sazabi billing plans switch [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--plan` | string | No | Target plan slug (see `sazabi billing plans list`) |
| `--yes` | boolean | No | Skip confirmation |

#### `sazabi billing plans cancel`

Schedule cancellation at the end of the paid period

```txt theme={"system"}
sazabi billing plans cancel [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--yes` | boolean | No | Skip confirmation |

#### `sazabi billing plans resume`

Clear a not-yet-effective cancellation

```txt theme={"system"}
sazabi billing plans resume [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--yes` | boolean | No | Skip confirmation |

### `sazabi billing payment-methods`

View or update the saved payment method

```txt theme={"system"}
sazabi billing payment-methods <subcommand>
```

#### `sazabi billing payment-methods current`

Show safe current payment method metadata

```txt theme={"system"}
sazabi billing payment-methods current [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

#### `sazabi billing payment-methods update`

Open the secure billing portal to update the payment method

```txt theme={"system"}
sazabi billing payment-methods update [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--yes` | boolean | No | Skip confirmation |
| `--no-browser` | boolean | No | Do not launch a browser; print the URL to stderr |
| `--wait` | boolean | No | Wait before refreshing |
| `--no-wait` | boolean | No | Print the browser link and exit without waiting |

### `sazabi billing budgets`

View and manage per-cycle usage budgets in US dollars

Budgets cap spend in US dollars per billing cycle, for one usage product or all budgetable usage, and reset each cycle.

Limits are US dollars with at most two decimal places, such as 250 or 99.50; anything else is refused before any request. Amounts print exactly as the API returns them.

A turned-on budget at or below this cycle's spend blocks new covered work right away. create and update show the spend and ask first; with --json or in a non-interactive shell, pass --confirm-immediate-block.

```txt theme={"system"}
sazabi billing budgets <subcommand>
```

#### `sazabi billing budgets list`

List usage budgets with this cycle's spend in US dollars

```txt theme={"system"}
sazabi billing budgets list [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi billing budgets list  # List usage budgets
```

#### `sazabi billing budgets create`

Create a per-cycle usage budget in US dollars

```txt theme={"system"}
sazabi billing budgets create [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--scope` | string | No | Product key to budget, or "all\_usage" for all budgetable usage |
| `--limit` | string | No | Per-cycle limit in US dollars with at most two decimal places, such as 250 or 99.50; 0 refuses all covered work |
| `--enable` | boolean | No | Turn the budget on |
| `--disable` | boolean | No | Turn the budget off; it blocks nothing until turned on |
| `--confirm-immediate-block` | boolean | No | Save even if the budget blocks new covered work right away; required for that with --json or in a non-interactive shell |

```bash theme={"system"}
sazabi billing budgets create --scope all_usage --limit 250  # Cap all budgetable usage at $250 per cycle
sazabi billing budgets create --scope all_usage --limit 0 --confirm-immediate-block --json  # Stop all budgetable spend now, without a prompt
```

#### `sazabi billing budgets update`

Change a usage budget's limit or turn it on or off

```txt theme={"system"}
sazabi billing budgets update <budget-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--limit` | string | No | Per-cycle limit in US dollars with at most two decimal places, such as 250 or 99.50; 0 refuses all covered work |
| `--enable` | boolean | No | Turn the budget on |
| `--disable` | boolean | No | Turn the budget off; it blocks nothing until turned on |
| `--confirm-immediate-block` | boolean | No | Save even if the budget blocks new covered work right away; required for that with --json or in a non-interactive shell |

```bash theme={"system"}
sazabi billing budgets update <budget-id> --limit 99.50  # Change the limit to $99.50
sazabi billing budgets update <budget-id> --disable  # Turn the budget off
```

#### `sazabi billing budgets delete`

Delete a usage budget

```txt theme={"system"}
sazabi billing budgets delete <budget-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--yes` | boolean | No | Skip confirmation |

```bash theme={"system"}
sazabi billing budgets delete <budget-id>  # Delete a budget (prompts to confirm)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.