Expand description
Who pays for the calls of an agent visdom starts through the AI
Gateway: the project (its gateway key, today’s behaviour) or the
developer’s own Claude subscription. A choice inside gateway mode, not a
mode of its own.
Structs§
- Resolved
Billing - Who pays, and who said so.
Enums§
- Billing
- Who pays for the agent’s calls through the gateway.
- Billing
Source - Where the billing of a session was set.
- Billing
Use - What the billing means for a session in
modewithagent.
Constants§
- BILLING_
ENV - The environment variable that names who pays.
Functions§
- billing_
use - Whether
billingcan be used inmodewithagent.subscriptionneeds the gateway (hooks have no gateway key to pay or not pay with) and Claude Code; under adirectpolicy the setting is simply unused. - configured_
billing - Who pays:
--billing, thenVISDOM_GATEWAY_BILLING(a blank one is not set, an unknown value is an error), then the repository config, then the user config (user_filenames it), then the project. - parse_
billing - Parse a billing value as the command line and the config files spell it.