Provider Audit logo

Provider Audit

OrganizationPopular
GetStream
provider_audit

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.

Overview

PublisherGetStream
RepositoryAgents
Skill nameprovider_audit
Stars
8.2K
Forks
709
Bundled files
3
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by GetStream on GitHub. Read the source before you install it.

Installation

Install the Provider Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/GetStream/Agents/tree/main/.claude/skills/provider_audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GetStream/Agents.git /tmp/Agents
mkdir -p .claude/skills
cp -r /tmp/Agents/.claude/skills/provider_audit .claude/skills/provider_audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Provider Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Provider Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Provider Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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). 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 | <amount> | USD | https://example.com/docs/balance | <time> |
OtherVendor | error | | https://example.com/docs/usage | <time> | error (OTHER_API_KEY): HTTP 401 ...

Read each row:

  • a number: what is left, or spent this month for postpaid accounts;
  • error (ENV): HTTP 401 ...: the key cannot read billing: a scope the API needs (vendors.md names it, with the doc) or a dead key;
  • skipped: ENV not set: no such key in .env;
  • unknown (dashboard only): no API; open the URL in source.

Some balances need an admin or management key the router never holds: OPENAI_ADMIN_KEY, ANTHROPIC_ADMIN_KEY, DEEPGRAM_ADMIN_KEY, OPENROUTER_MANAGEMENT_KEY, XAI_MANAGEMENT_KEY. Set one in .env to read that account; without it the row says skipped: <VAR> not set.

Keep the inventory current

Each time, from the repo root:

bash
# Every key the router code reads. Skip our own (ROUTER_*, USAGE_*, STREAM_*, CLIENT_SECRET,
# OTHER_TOKEN) and the connector tokens (GITHUB_, GITLAB_, LINEAR_). A second credential of
# a listed vendor (SINCH_APPLICATION_*, VONAGE_API_SECRET, VONAGE_PRIVATE_KEY,
# TELNYX_PUBLIC_KEY) needs no row of its own; *_PERSON_* keys are in the Telnyx and Twilio rows.
git grep -hoE '"[A-Z][A-Z0-9_]*_(API_KEY|TOKEN|SECRET|KEY)"' origin/main -- \
  'acceleration/*.go' ':!*_test.go' | sort -u
# Every provider routed, per modality.
awk '/^[a-z_]+:/{s=$1} /^    - provider:/{print s, $3}' acceleration/internal/routing/router.yaml | sort -u
# Every implemented phone vendor and its credentials; each needs a row in vendors.md.
awk '/- vendor:/{v=$3} /implemented: true/{i=v} /credentials:/&&i==v{print v, $0}' acceleration/internal/phone/phone.yaml

Then the hosts that hold no router key: acceleration/deploy/*/README.md (GPU hosts), compose.yaml, .github/workflows/, the deploy skill, and the clients' own repos (Volt, the docs site). A new vendor gets a row in vendors.md. One with a read-only balance API also gets a check in audit.py: a function under @check("Vendor", "ENV") whose docstring is the API's doc URL, and a test in test_audit.py. A connector vendor's name also goes in CONNECTORS. Cite the doc or the live answer for every claim; mark the rest unverified.

The tests run a real local HTTP server in place of each vendor:

bash
uv run --no-project --with pytest pytest -c /dev/null \
  --confcutdir .claude/skills/provider_audit .claude/skills/provider_audit

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Provider Audit AI skill do?

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.

Why use Provider Audit on TypingMind?

Because you install it once and use it with any model. Provider Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Provider Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/GetStream/Agents/tree/main/.claude/skills/provider_audit. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Provider Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Provider Audit?

As many as you like. As long as a model supports skills, you can use Provider Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Provider Audit AI skill free?

Yes. It is published on GitHub by GetStream under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇