--- name: provider_audit description: Audit what is left on every vendor account the product pays for — prepaid balance, credits, character or minute quota, spend this month — read-only, and say which account is about to run out. Use when asked how much money is left, to audit providers, for a vendor's balance, credits or quota, or whether any account is about to run out. --- # Audit vendor accounts A prepaid vendor account at zero refuses requests: the Gemini API, for one, answers HTTP 402 to every key of the billing account ([billing](https://ai.google.dev/gemini-api/docs/billing)). The keypool alerts only fire once calls fail. This skill reads what is left before that. `vendors.md` is the inventory: every vendor the product depends on, what it is for, who pays, which key the router reads, and how to see what is left. `audit.py` calls every read-only balance API in it and prints one table. Vendors are core or connector. Core vendors are the ones the platform needs to work (models, memory, sandboxes, GPU hosts, infra); connector vendors (Telnyx, Twilio, Linq and the other phone and channel vendors) are bring-your-own, used only by connectors. ## Run it Everything is read-only: GETs to documented billing or usage endpoints. Never top up, change a plan or a key from here. The script reads keys only from the repo-root `.env`, run from the repo root: ```bash uv run --no-project --env-file .env .claude/skills/provider_audit/audit.py --min USD=20 ``` It prints `vendor | left | unit | source | checked_at | note`, one row per key (a pool `NAME=k1,k2` gives two): the core rows, then the connector rows under their own heading. Then `BELOW:` for each core balance under its `--min`, and `BELOW (connector):` for each connector one. `--min` takes `UNIT=AMOUNT` and repeats (`--min USD=20 --min characters=100000`); it compares only rows in that unit, so `USD spent this month` is never a balance. Exit code 1 means a core balance is below its minimum. A connector balance below it and an error row (a 401, a timeout, an odd body) are reported and never fail the run. For example: ```text vendor | left | unit | source | checked_at | note ExampleVendor | | USD | https://example.com/docs/balance |