billing
Usage: deepline billing [options] [command]
See your plan and credits, buy more, and manage billing.
Options:
-h, --help display help for command
Commands:
quote [options] Quote a sandbox session in Deepline credits; excludes provider tools and Customer DB compute.
balance [options] Show current billing balance.
reuse [options] Show recorded reused tool results for this org; no credit estimate.
usage [options] Show current usage plus recent calls.
limit [options] Show configured monthly usage cap.
set-limit [options] <credits> Set monthly usage cap.
off [options] Disable monthly usage cap.
ledger Inspect and export billing ledger rows.
history [options] Export billing ledger history to CSV.
checkout [options] Create a checkout session and optionally open it in your browser.
top-up [options] <credits> Charge the saved payment method and add Deepline credits.
buy [options] <credits> Buy credits through the target billing contract.
top-up-recover [options] <credits> Inspect or retire an original top-up intent without starting a payment.
status [options] Show plan, payment, and recharge state; use usage for charges.
entitlements [options] Show org benefits, remaining people search profiles, and effective rate limits.
compute [options] Show Play runtime pricing, included compute, and minutes used.
auto-recharge Inspect and manage automatic Deepline credit recharge.
cards List, add, choose the default of, and remove saved cards.
change-plan [options] [plan_sku] Print and open a billing page link with the plan dialog open; the plan changes only once you confirm it in the browser.
details [options] Show the company name, billing address and tax ID printed on invoices.
cancel-plan [options] Cancel a target subscription at period end, or undo it.
portal [options] Open the Stripe-hosted billing recovery portal.
plans [options] Show published plans and the plan you are on.
subscribe [options] <plan_version_id> Start a subscription checkout for a plan and optionally open it in your browser.
subscription Inspect and manage subscription state for the org.
invoices [options] List subscription invoices and credit purchase receipts.
redeem-code [options] Redeem a billing code.
help [command] display help for command
billing quote
Usage: deepline billing quote [options]
Quote a sandbox session in Deepline credits; excludes provider tools and
Customer DB compute.
Options:
--sandbox-timeout <duration> Runtime timeout, such as 30m or 2h
--sandbox-size <size> Runtime memory profile (choices: "standard",
"large", "xlarge", "1gb", "4gb", "8gb", default:
"standard")
--quantity <sessions> Number of sandbox sessions (default: "1")
--json Emit the bounded component quotation as JSON
-h, --help display help for command
billing balance
Usage: deepline billing balance [options]
Show current billing balance.
Options:
--json Emit the full balance record as JSON
--verbose Add reservations and usage awaiting settlement
-h, --help display help for command
Explanation:
Purpose:
Read the org's current Deepline credit balance.
When:
Once at the start of a task, before the first paid call, and after a run
reports a balance or insufficient-credits error.
Input:
No arguments. Prints the posted balance, spendable credits and finalizing
usage (usage incurred, final price pending). --verbose adds exposure details; --json returns the full record.
Output (JSON):
balance (Deepline credits), balance_display, rough_usd_balance,
balance_status, posted_balance_credits, pending_spend_credits (finalizing
usage), finalizing_call_count (with finalizing_call_count_truncated when it
is a lower bound), spendable_balance_credits, spendable_balance_status and
render.sections.
The three credit amounts come from the same admission snapshot. Spendable
credits subtract finalizing usage; a partial exposure diagnostic is not
spendable capacity. Null/unavailable means complete capacity could not be read.
Spending limits can still block a funded call. The balance includes other activity
in the org, so a before and after difference does not isolate one
command; use billing usage for that.
Cost:
Free.
billing reuse
Usage: deepline billing reuse [options]
Show recorded reused tool results for this org; no credit estimate.
Options:
--json Return the org reuse summary as JSON
-h, --help display help for command
Explanation:
Purpose: Read the authenticated org's recorded reused-result count.
Only fully reported, supported terminal runs contribute. Historical runs and
incomplete attempt reports are excluded. This is not a credit savings estimate.
Output: --json returns data.org_id and data.reuse; reuse is null before any contribution.
Cost: This read does not execute tools or charge Deepline credits.
Run: deepline billing reuse --json
billing usage
Usage: deepline billing usage [options]
Show current usage plus recent calls.
Options:
--events Read a raw usage-event page instead of the billing
summary
--recent-only Read recent billing activity without spend totals
--limit <n> Page size (1–500 with --events)
--offset <n> Recent-call offset
--cursor <cursor> Recent-call cursor from the previous response
--run-id <run_id> Show recent usage for one play run
--request-id <job_id> Show the exact Deepline charge for one execution job_id
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose:
Read what the org, or one run, has spent in Deepline credits.
When:
After a run finishes, to report its actual cost: billing usage --run-id
<run-id>. This is the canonical per-run cost read; runs get does not
include cost unless you pass --full.
Input:
--run-id <run-id> scopes the spend to one play run. --limit and --cursor
page the recent-call list. --json prints JSON.
--recent-only returns just the recent billing activity page and org ID.
--events reads raw usage-event history instead of the spend summary. Combine
it with --run-id, --limit (1–500), and --cursor; not --offset or --request-id.
Follow next_cursor until null, even when entries is empty.
Output (JSON):
balance, usage.last_30_days_usage_credits, usage.month_spent_credits, and
with --run-id: run.spent_credits, run.rough_usd_spent, run.event_count.
render.sections includes a "Run spend: N Deepline Credits" line.
With --events: org_id, run_id, entries, next_cursor, and next.page. Entries
retain original run attribution and nullable recorded Deepline credits;
raw event history is not final settlement evidence.
Cost:
Free.
Avoid:
Do not grep a runs get payload for cost; use this command.
Output fields:
balance, balance_display, rough_usd_balance credits available now.
plan.usd_per_credit conversion used for rough USD.
usage.month_spent_credits spend in the current period.
usage.last_30_days_usage_credits trailing-30-day spend.
usage.temporary_hold_credits credits held by active runs.
run (only with --run-id) {run_id, spent_credits,
rough_usd_spent, event_count};
null when the run has no
billing events yet.
quota.* monthly cap, when enabled.
recent activity one line per billed call in
render.sections, newest first.
recent.entries[].credential_source the provider key the call ran
on: managed (Deepline's),
user (yours), or unknown
(recorded before it was
stored, or no provider key).
api_key_id is the Deepline
key that called.
Cases:
A run that is still active shows a partial spend; read it again after the
run reaches completed or failed.
A failed run with row failures still shows spend for the rows that ran.
billing limit
Usage: deepline billing limit [options]
Show configured monthly usage cap.
Options:
--json Emit JSON output
-h, --help display help for command
billing set-limit
Usage: deepline billing set-limit [options] <credits>
Set monthly usage cap.
Arguments:
credits Monthly credits limit
Options:
--json Emit JSON output
-h, --help display help for command
billing off
Usage: deepline billing off [options]
Disable monthly usage cap.
Options:
--json Emit JSON output
-h, --help display help for command
billing ledger
Usage: deepline billing ledger [options] [command]
Inspect and export billing ledger rows.
Options:
-h, --help display help for command
Commands:
export Export billing ledger rows.
help [command] display help for command
billing ledger export
Usage: deepline billing ledger export [options] [command]
Export billing ledger rows.
Options:
-h, --help display help for command
Commands:
all [options] Export all available billing ledger rows to CSV.
help [command] display help for command
billing ledger export all
Usage: deepline billing ledger export all [options]
Export all available billing ledger rows to CSV.
Options:
--output <path> Write CSV to an explicit path
--run-id <run_id> Export ledger rows for one play run.
--operation <id> Export rows for one tool operation.
--since <timestamp> Only export rows since ISO-8601 time or Unix
milliseconds.
--json Emit JSON output
-h, --help display help for command
billing history
Usage: deepline billing history [options]
Export billing ledger history to CSV.
Options:
--time <window> Rolling time window: 1d, 1w, 1m, or 1y
--json Emit JSON output
-h, --help display help for command
billing checkout
Usage: deepline billing checkout [options]
Create a checkout session and optionally open it in your browser.
Options:
--tier <tierId> Named pricing tier
--credits <credits> Custom credit amount
--discount-code <code> Apply a discount code
--no-open Print the checkout URL without opening a browser
--json Emit JSON output
-h, --help display help for command
billing top-up
Usage: deepline billing top-up [options] <credits>
Charge the saved payment method and add Deepline credits.
Arguments:
credits Positive integer Deepline credit amount
Options:
--idempotency-key <key> Stable retry key for the same intended top-up (1–200
characters, no padding, valid HTTP header text)
--dry-run Print the planned top-up without charging
--compact Keep only high-signal fields in JSON output
--json Emit JSON output
-h, --help display help for command
billing buy
Usage: deepline billing buy [options] <credits>
Buy credits through the target billing contract.
Arguments:
credits Positive integer Deepline credit amount
Options:
--idempotency-key <key> Stable retry key
--json Emit JSON output
-h, --help display help for command
billing top-up-recover
Usage: deepline billing top-up-recover [options] <credits>
Inspect or retire an original top-up intent without starting a payment.
Arguments:
credits Original positive integer Deepline credit
amount
Options:
--org-id <original-org> Original org ID (must match the
authenticated org)
--idempotency-key <original-key> Original purchase key; never generates a new
key
--dry-run Print the recovery request without changing
state
--json Emit JSON output
-h, --help display help for command
billing status
Usage: deepline billing status [options]
Show plan, payment, and recharge state; use usage for charges.
Options:
--json Emit JSON output
-h, --help display help for command
billing entitlements
Usage: deepline billing entitlements [options]
Show org benefits, remaining people search profiles, and effective rate limits.
Options:
--json Emit JSON output
-h, --help display help for command
billing compute
Usage: deepline billing compute [options]
Show Play runtime pricing, included compute, and minutes used.
Options:
--enable Turn on included compute for this org (cannot be undone)
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose:
Show sandbox and database compute pricing, included compute, and usage.
Output:
Your runtime price, allowance used, paid overage, and reset date.
When database charging is enabled, its price is shown in credits/CU-hour.
Database and sandbox charges share included compute by dollar value.
Usage is shown in standard sandbox minutes at your current rate and in credits.
With included compute pricing, large (4gb) costs 2.5× and xlarge (8gb) costs 5× the standard (1gb) hourly rate. Included compute applies proportionally.
See the pricing page for full details: https://deepline.com/pricing
Cost:
Free to check.
--enable switches the org to included compute pricing.
Examples:
deepline billing compute --json
deepline billing quote --sandbox-timeout 30m --sandbox-size xlarge
billing auto-recharge
Usage: deepline billing auto-recharge [options] [command]
Inspect and manage automatic Deepline credit recharge.
Options:
-h, --help display help for command
Commands:
status [options] Show the canonical automatic recharge configuration.
set [options] Enable automatic recharge with a threshold and refill
target.
off [options] Disable automatic recharge without clearing saved amounts.
trigger [options] Evaluate capped automatic recharge and resume any pending
purchase.
help [command] display help for command
billing auto-recharge status
Usage: deepline billing auto-recharge status [options]
Show the canonical automatic recharge configuration.
Options:
--json Emit JSON output
-h, --help display help for command
billing auto-recharge set
Usage: deepline billing auto-recharge set [options]
Enable automatic recharge with a threshold and refill target.
Options:
--threshold-credits <credits> Recharge when the balance reaches this
amount
--refill-to-credits <credits> Recharge the balance to this amount
--purchase-limit-credits <credits> Limit automatic credit purchases over
rolling 30 days (or none to remove)
--idempotency-key <key> Stable retry key
--dry-run Print the planned update without applying
it
--json Emit JSON output
-h, --help display help for command
billing auto-recharge off
Usage: deepline billing auto-recharge off [options]
Disable automatic recharge without clearing saved amounts.
Options:
--idempotency-key <key> Stable retry key
--dry-run Print the planned update without applying it
--json Emit JSON output
-h, --help display help for command
billing auto-recharge trigger
Usage: deepline billing auto-recharge trigger [options]
Evaluate capped automatic recharge and resume any pending purchase.
Options:
--json Emit JSON output
-h, --help display help for command
billing cards
Usage: deepline billing cards [options] [command]
List, add, choose the default of, and remove saved cards.
Options:
-h, --help display help for command
Commands:
list [options] Show saved cards, default first.
add [options] Print a secure page for entering a card. Keeps
the current default unless --make-default is set.
default [options] <card_id> Use a saved card for later top-ups and invoices.
remove [options] <card_id> Remove a saved card that is not the default.
help [command] display help for command
billing cards list
Usage: deepline billing cards list [options]
Show saved cards, default first.
Options:
--limit <n> Cards per page (1-100, default 20)
--cursor <cursor> next_cursor from the previous page
--json Emit JSON output
-h, --help display help for command
billing cards add
Usage: deepline billing cards add [options]
Print a secure page for entering a card. Keeps the current default unless
--make-default is set.
Options:
--make-default Make the new card the default
--json Emit JSON output
-h, --help display help for command
billing cards default
Usage: deepline billing cards default [options] <card_id>
Use a saved card for later top-ups and invoices.
Arguments:
card_id Card id from: deepline billing cards list
Options:
--change-id <uuid> Reuse to retry the same request
--dry-run Print the planned request without sending it
--json Emit JSON output
-h, --help display help for command
billing cards remove
Usage: deepline billing cards remove [options] <card_id>
Remove a saved card that is not the default.
Arguments:
card_id Card id from: deepline billing cards list
Options:
--change-id <uuid> Reuse to retry the same request
--dry-run Print the planned request without sending it
--json Emit JSON output
-h, --help display help for command
billing change-plan
Usage: deepline billing change-plan [options] [plan_sku]
Print and open a billing page link with the plan dialog open; the plan changes
only once you confirm it in the browser.
Arguments:
plan_sku solo, builder, team, scale, founding, enterprise. Opens that
plan's confirmation; omit to open the plan picker.
Options:
--no-open Print the link without opening a browser
--json Emit JSON output
-h, --help display help for command
billing details
Usage: deepline billing details [options] [command]
Show the company name, billing address and tax ID printed on invoices.
Options:
--json Emit JSON output
-h, --help display help for command
Commands:
set [options] Set invoice billing details. Omitted fields are unchanged; set
them before an invoice is sent, since a sent invoice keeps the
details it was issued with.
billing details set
Usage: deepline billing details set [options]
Set invoice billing details. Omitted fields are unchanged; set them before an
invoice is sent, since a sent invoice keeps the details it was issued with.
Options:
--name <name> Company or legal name on the invoice
--line1 <line1> Address line 1 (needs --country)
--line2 <line2> Address line 2
--city <city> City
--state <state> State, province or region
--postal-code <code> Postal code
--country <code> Two-letter country code, such as US or DE
--tax-id <type:value> Tax ID as type:value, such as eu_vat:DE123456789 or
us_ein:12-3456789; replaces the current one
--json Emit JSON output
-h, --help display help for command
billing cancel-plan
Usage: deepline billing cancel-plan [options]
Cancel a target subscription at period end, or undo it.
Options:
--undo Undo a pending period-end cancellation
--idempotency-key <key> Stable retry key
--json Emit JSON output
-h, --help display help for command
billing portal
Usage: deepline billing portal [options]
Open the Stripe-hosted billing recovery portal.
Options:
--billing-address Open the billing address editor directly
--no-open Print the URL without opening a browser
--json Emit JSON output
-h, --help display help for command
billing plans
Usage: deepline billing plans [options]
Show published plans and the plan you are on.
Options:
--promo-code <code> Quote plan prices with a promo code
--json Emit JSON output
-h, --help display help for command
billing subscribe
Usage: deepline billing subscribe [options] <plan_version_id>
Start a subscription checkout for a plan and optionally open it in your browser.
Arguments:
plan_version_id Legacy billing plan version id
Options:
--no-open Print the checkout URL without opening a browser
--json Emit JSON output
-h, --help display help for command
billing subscription
Usage: deepline billing subscription [options] [command]
Inspect and manage subscription state for the org.
Options:
-h, --help display help for command
Commands:
status [options] Show active plan, subscription state, and credit pools.
cancel [options] Cancel the subscription at period end. Credits are kept.
help [command] display help for command
billing subscription status
Usage: deepline billing subscription status [options]
Show active plan, subscription state, and credit pools.
Options:
--json Emit JSON output
-h, --help display help for command
billing subscription cancel
Usage: deepline billing subscription cancel [options]
Cancel the subscription at period end. Credits are kept.
Options:
--undo Reverse a pending cancellation before period end
--dry-run Print the planned cancellation without calling the cancel endpoint
--json Emit JSON output
-h, --help display help for command
billing invoices
Usage: deepline billing invoices [options]
List subscription invoices and credit purchase receipts.
Options:
--limit <n> Maximum entries to return (1-100, default 24)
--compact Keep only id, date, amount, status, and url
--json Emit JSON output
-h, --help display help for command
billing redeem-code
Usage: deepline billing redeem-code [options]
Redeem a billing code.
Options:
--code <code> Code to redeem
--no-open Do not open a browser
--json Emit JSON output
-h, --help display help for command