Skip to content

Caveman Cloud· HostedGovernance & Billing

Governance and cost control for AI traffic in Caveman

How Caveman Cloud governs AI spend: API keys, project access, budgets, spend-rate quotas, roles, cost allocation, and billing limits in one layered model.

Caveman Cloud puts every model request behind the gateway, so governance and spend control happen in one place: who can send traffic, which models they can reach, how fast they can spend, and who pays for it. This section explains each control and how they stack, from a single API key up to your organization's bill.

Two kinds of money#

Keep these separate. They are configured in different places and answer different questions.

Model spendCaveman bill
What it isWhat your traffic costs at model providers (OpenAI, Anthropic, Google, and so on)What you pay Caveman for its own products: observability events, agent runs, and routing decisions
Where you control itGovernance → Budgets, per-key limits, spend-rate quotasBilling, with a limit per product
How it is pricedProvider-reported tokens times public catalog list pricesCaveman's graduated tiers past a free monthly allowance
Who you payYour provider, on your provider's invoiceCaveman

How the controls stack#

Each layer can only narrow what the layer above allows, never widen it. A request must pass every layer that is configured.

LayerWhereWhat it limits
Project accessGovernance → AccessAllowed providers and models, project-wide requests per minute, parallel requests, max request size
Project budgetGovernance → BudgetsMonthly soft cap (alert) and hard cap (stop traffic) on gateway spend
Spend-rate quotasGovernance → BudgetsDollars per rolling window, per API key and per workflow
API key limitsGovernance → KeysAllowed models, requests and tokens per minute, parallel requests, soft and hard budgets, expiry, allowed IPs
GuardrailsGovernance → GuardrailsRequest and response content: secrets, PII, patterns, external checks
Billing limitsBillingA dollar ceiling per Caveman product

Roles and permissions#

Caveman Cloud has five organization roles. This table shows the governance and financial permissions each one holds.

CapabilityOwnerAdminEngineerViewerBilling
Create, edit, rotate, and revoke project keys✓✓✓
Use a personal key for your own traffic✓✓✓✓✓
Edit budgets, access policy, and guardrails✓✓✓
Manage provider connections✓✓
Invite members, assign roles, bind keys to a person✓✓
Configure SSO✓
Read billing and per-person spend✓✓✓
Add a card, set billing limits, change packages✓✓
Read the audit log✓✓

Credential lifecycle, identity administration, and consent changes are human-only. Coding agents connected through MCP can read governance posture but cannot create or rotate keys or change identity settings.

  1. Give every person and app its own key

    Issue personal keys for people and shared keys for services, so every request is attributed. See API keys.

  2. Restrict models at the project level

    Allow only the providers and models the project needs in Governance → Access. Keys can narrow this list further.

  3. Set a project budget

    Start with a soft cap to learn your baseline, then add a hard cap once you know normal spend.

  4. Add per-key and spend-rate limits

    Give high-risk keys (CI, experiments, autonomous agents) their own hard budgets and spend-rate quotas so a runaway loop cannot drain the project budget.

  5. Label keys for reporting

    Add team, environment, and cost-center labels so Finance can break spend down without asking engineering.

Explore this section#

API Keys

Create personal and shared keys, set scopes and per-key limits, rotate, block, and revoke.

Access and Limits

Restrict providers and models, set project rate limits, and add guardrails.

Budgets

Configure soft and hard caps, spend-rate quotas, and handle budget errors.

Cost Allocation

Attribute spend to people, teams, workflows, and customers for chargeback.

Billing

Understand plans, metered products, packages, and billing limits.

Import Gateway Config

Bring keys, budgets, and teams over from LiteLLM or Kong AI Gateway.

Esc

Start here