# Checkout

Source: https://docs.orbytelabs.com/cli/checkout

Start subscription and top-up checkout sessions.

## Subscribe to a plan [#subscribe-to-a-plan]

```npm
npx orbytelabs subscribe pro --identity customer_123 \
  --success-url https://app.example.com/billing/success \
  --cancel-url https://app.example.com/billing --no-open
```

The plan key must exist in the deployed catalog.

## Buy credits [#buy-credits]

```npm
npx orbytelabs topup 5 --identity customer_123 \
  --success-url https://app.example.com/billing/success \
  --cancel-url https://app.example.com/billing --no-open
```

Top-ups cost $1 per credit. The amount supports two decimal places and must be at
least 0.5 credits. Purchased credits can fund any deployed feature by default,
including features added later. Add `--features requests,tokens` to limit access
or `--features ""` for no feature access. Use `--expires-at` with an ISO 8601
timestamp to set credit expiry.

`--no-open` prints the checkout URL without opening it. Otherwise the CLI opens
checkout in your browser. The command finishes before payment is confirmed;
access and credits follow Stripe's payment confirmation.