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.
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.
Roles and permissions#
Caveman Cloud has five organization roles. This table shows the governance and financial permissions each one holds.
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.
A recommended setup#
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.
Restrict models at the project level
Allow only the providers and models the project needs in Governance → Access. Keys can narrow this list further.
Set a project budget
Start with a soft cap to learn your baseline, then add a hard cap once you know normal spend.
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.
Label keys for reporting
Add team, environment, and cost-center labels so Finance can break spend down without asking engineering.
Explore this section#
Create personal and shared keys, set scopes and per-key limits, rotate, block, and revoke.
Restrict providers and models, set project rate limits, and add guardrails.
Configure soft and hard caps, spend-rate quotas, and handle budget errors.
Attribute spend to people, teams, workflows, and customers for chargeback.
Understand plans, metered products, packages, and billing limits.
Bring keys, budgets, and teams over from LiteLLM or Kong AI Gateway.