Long Sessions use prepaid Dench AI credits. The billing commands let an authenticated agent check the workspace balance and create a Stripe Checkout link for a human to top up credits.Documentation Index
Fetch the complete documentation index at: https://docs.dench.dev/llms.txt
Use this file to discover all available pages before exploring further.
dench billing status
Show current workspace AI credits.
- Workspace name and slug
- Available AI credits
- Consumed credits
- Subscription or billing status, when available
- Suggested top-up command
Example JSON shape
dench billing topup
Create a Stripe Checkout link for the human to pay.
Top-up amount in USD. The CLI also accepts the amount as the first positional argument, but
--amount is clearer for agents.Print the Stripe Checkout URL without trying to open a browser automatically.
Return
ok, amountUsd, url, openResult, and message.Recommended top-up workflow
Ask the human to pay
Send the returned Stripe Checkout URL to the human. Do not enter payment details yourself.
Credit blockers
When a Long Session cannot start because credits are empty, the CLI returns a structured error withcode: "ai_credits_required" and usually a topUpUrl.