Skip to content

Caveman Cloud· Hosted & VPCGateway & Models

Credits, Unified Gateway Keys, and the Model Catalog

Pay for every connected model provider, sandbox, and Drive from one organization balance at provider list price, or use your own provider keys first (BYOK).

One Caveman Cloud organization balance pays for models across every provider the gateway serves at the provider's list price (0% token markup), plus Firecracker sandboxes, the hosted agent harness, and Persistent Drives. Pay-as-you-go card credit top-ups charge 5.5% + $0.30 on Hobby and 4.5% + $0.30 on Pro, while Scale and Business support 0% ACH top-ups ($500+), with 0% markup on model token prices across all plans. On keys set to byok_then_credits, your own connected provider keys (BYOK) pay first with zero markup wherever connected (100k free BYOK proxy requests/mo on Hobby, 1M on Pro, 10M on Scale, Unlimited on Business and Enterprise); keys set to credits spend the organization balance directly.

Inspect the live model catalog (no sign-in needed)#

# List models served by the gateway, providers, cheapest price per 1M tokens, and context window
cvm models

# Filter by model family or provider
cvm models claude
cvm models gpt
cvm models glm

cvm models reads GET /v1/models from CAVE_GATEWAY_URL (or the gateway beside CAVE_API_URL). When CAVE_API_KEY is exported, each endpoint also indicates whether that key can call it.

How model slugs and provider selection work#

Addressing a model by catalog slug (maker/model, such as anthropic/claude-sonnet-4-6 or openai/gpt-5.4) names the model, not a single upstream vendor:

  • The gateway selects from the providers serving that exact model according to your request's provider preferences, list price, and live health.
  • If a provider fails before any response byte reaches the caller, the gateway fails over to the next provider serving the same model at the same or higher precision.
  • A named model is never silently downgraded to a different model. Fallback to a second model happens only from an explicit models fallback list you send.
  • Even with x-cave-optimize: off, catalog slugs still resolve to the matching provider wire while keeping your prompt bytes untouched.

Manage your organization credit balance#

# Check current balance, spend this month and last 7 days, runway, and auto-reload settings
cvm credits

# Generate a Stripe Checkout link to buy credits ($10 minimum; nothing charges until a person opens it)
cvm credits buy 25

# Configure automatic reload (add $20 whenever balance drops below $5, up to $100/month)
cvm credits auto --below 5 --add 20 --monthly 100

# Turn automatic reload off
cvm credits auto --off

# Print a link for a person to save or update the card used by automatic reload
cvm credits card

Buying credits is always a human action: cvm credits buy and cvm credits card print a checkout URL and never charge on their own.

Control how each gateway key pays (--pays & --limit)#

Every gateway key chooses its payment policy and optional spend cap:

# Mint a key that uses your own connected provider keys first and credits for all other providers
cvm keys create prod-support --pays byok_then_credits --limit 25/monthly

# Mint a key that spends credits only, capped at $10/day
cvm keys create eval-ci --pays credits --limit 10/daily

# Mint a strict BYOK-only key (never touches org credits)
cvm keys create internal-byok --pays byok

# Change an existing key's payment mode without rotating its secret
cvm keys pays KEY_ID byok_then_credits
--pays modeBehavior
byokUses only your project's own provider keys (x-cave-upstream-key or stored keys). Never charges org credits.
creditsPays exclusively from the organization credit balance. Stops only credits traffic if the balance hits $0.
byok_then_creditsUses your own provider keys first wherever connected (zero fee) and falls back to organization credits for every other provider.

--limit USD/PERIOD supports daily, weekly, monthly, or total periods and counts spend at catalog list price across every call made through the key (including BYOK traffic). Running out of credits stops only credits-backed requests and never blocks traffic running on your own provider keys.

Permissions and limits#

  • Reading balance and spend (cvm credits) requires a billing-read role (owner, admin, or billing).
  • Generating purchase links or changing auto-reload (buy, auto, card) requires owner or billing.
  • Credit purchases start at $10 up to your organization's current purchase ceiling ($500 initially, increasing with paid history), with 0% markup on model token prices (5.5% + $0.30 card fee on Hobby, 4.5% + $0.30 card fee on Pro, and 0% ACH for $500+ on Scale and Business).
  • On Hobby ($0/mo), workspaces include unlimited seats, $1/month Caveman AI, 30 hours/month of 2x4 Firecracker sandboxes (recurring monthly), 25k traces/month (7d retention), 10k routing decisions/month, 100k free BYOK proxy requests/month, plus 5M cave-trim and 1M cave-compact free input tokens/month. Paid plans include $15/mo (Pro), $150/mo (Scale), and $300/mo (Business) universal credits. See Billing for full plan limits, scale-out packs, sandbox rates, and Caveman Code plans.
  • Gateway key secrets print once at creation time; store them in your secret manager or .env file.
Esc

Start here