---
title: "Billing"
description: "Prepaid credits, top-ups, and usage attribution"
canonical_url: "https://hoplite.sh/docs/billing"
markdown_url: "https://hoplite.sh/docs/billing.md"
---

# Billing
URL: /docs/billing
LLM index: /llms.txt
Description: Prepaid credits, top-ups, and usage attribution
Related: /docs/agent/models, /docs/workspace

# Billing

Hoplite bills on **prepaid credits**. Your workspace holds a credit balance; agent runs draw it down based on the tokens they actually use, at per-model rates.

## Credits

The billing page under **Settings → Workspace → Billing** shows:

- **Available** — what you can spend right now
- **Held** — credits reserved by in-flight runs, released back (minus actual usage) when they finish
- **Granted / used** — lifetime totals, including any starter grant

## Top-ups

Buy credits through Stripe checkout from the billing page; a Stripe billing portal handles receipts and payment methods. If a run stalls on an empty balance, an **Add credits** dialog appears right in the thread so you can top up and retry without losing your place.

## What's metered

LLM inference. Every model call records a usage event with the provider, model, input/output/cached/reasoning token counts, and cost, attributed to the run that spent it. Per-model rates cover input, output (reasoning tokens bill as output), and cache reads and writes; cached input is much cheaper, and Hoplite caches aggressively.

Sandbox provider usage is recorded only when the provider exposes itemized,
per-workspace billing data. Daytona compatibility workspaces report a
provider-priced total and CPU, RAM, disk, and GPU seconds for every sandbox
generation; Hoplite stores each cumulative provider snapshot and settles only
the delta, so refreshes and restarts never double-charge. Daytona can post final
records up to 48 hours late, which means a deleted workspace's VM cost may
remain **Pending** during that settlement window rather than showing an
inaccurate final zero. Modal, the default provider for new workspaces, exposes
only delayed application-level reports, so Hoplite marks its provider metering
unavailable rather than presenting an estimated VM charge as authoritative.

## ChatGPT subscription models

Runs on [Codex models](/docs/agent/models#chatgpt-subscription-models) bill your connected ChatGPT plan instead of workspace credits. Their usage still shows up in your usage history — with zero credit cost.

## Usage

The **Usage** page charts spend per day and breaks usage down by model and run, so you can see exactly where credits go.

## Sitemap

See the full [sitemap](/docs/sitemap.md) for all pages.
Well-known sitemap: [/docs/.well-known/sitemap.md](/docs/.well-known/sitemap.md).
