Api Key Audit logo

Api Key Audit

Community
mrhlaingbwardev
api-key-audit

Use when user says api check, key verify, validate keys, zip of keys, txt of keys, or bulk API key audit. Fast validation for API keys from .txt/.zip with auth, capability, quota, billing, and error classification.

Overview

Publishermrhlaingbwardev
Repositoryagentic-hacking-skills
Skill nameapi-key-audit
Stars
350
Forks
57
Bundled files
Instructions only
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Api Key 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/mrhlaingbwardev/agentic-hacking-skills/tree/main/skills/api-key-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/mrhlaingbwardev/agentic-hacking-skills.git /tmp/agentic-hacking-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-hacking-skills/skills/api-key-audit .claude/skills/api-key-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Api Key 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 Api Key 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 Api Key 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.

API Key Audit (TXT/ZIP Fast Checker)

Use this skill to quickly verify API keys from .txt, .csv, .json, or .zip files.

Goal: not only "valid/invalid" but also whether the key is actually usable for real workloads.

Trigger Rules

Activate when user asks to:

  • check API keys
  • validate keys from txt/zip
  • bulk verify keys
  • test which keys are usable right now

Input Rules

Accepted input:

  • .txt (one key per line or mixed text)
  • .csv (columns can include key, api_key, token)
  • .json / .jsonl
  • .zip containing any of the above

If .zip is provided:

  1. extract to temp folder
  2. parse all supported files recursively
  3. deduplicate keys before network checks

Safety & Privacy

  • Never print full keys in output.
  • Always mask keys as prefix...suffix.
  • Never save raw keys to git.
  • Do not brute-force or spam endpoints.
  • Keep concurrency controlled (default 5-10 workers).

Fast Validation Pipeline

Phase 1 - Parse & Normalize (no network)

  1. Read file(s), trim whitespace, ignore comments/empty lines.
  2. Extract possible keys with provider regex.
  3. Deduplicate exact matches.
  4. Classify probable provider.

Suggested provider hints:

  • OpenAI: ^sk-(proj-)?[A-Za-z0-9_-]{20,}$
  • Anthropic: ^sk-ant-[A-Za-z0-9_-]{20,}$
  • Google/Gemini: ^AIza[0-9A-Za-z_-]{35}$
  • Groq: ^gsk_[A-Za-z0-9]{20,}$
  • OpenRouter: ^sk-or-v1-[A-Za-z0-9]{20,}$
  • Cohere: long base62 token (no strict universal prefix)
  • Unknown: keep for fallback probe

Phase 2 - Auth Check (cheap endpoint)

For each provider, hit the lightest authenticated endpoint first.

Expected result classes:

  • AUTH_OK
  • AUTH_FAILED (401/403 invalid or revoked)
  • RATE_LIMITED (429)
  • TEMP_ERROR (5xx/network)

Phase 3 - Capability Check (only AUTH_OK)

Verify practical usability:

  1. model list access
  2. minimal inference request
  3. permission/scope limits
  4. org/project mismatch errors

Mark result:

  • USABLE_FULL
  • USABLE_LIMITED
  • AUTH_OK_BUT_NO_MODEL_ACCESS

Phase 4 - Billing/Quota Signal

Infer billing state from response codes/messages:

  • QUOTA_EXCEEDED
  • BILLING_REQUIRED
  • CREDIT_EXHAUSTED
  • TRIAL_EXPIRED

Phase 5 - Reliability Signal

Optional quick quality probe:

  • 2 lightweight requests per usable key
  • capture latency (p50/p95)
  • detect flaky keys (intermittent 429/5xx)

Mark:

  • STABLE
  • UNSTABLE

Provider Check Playbooks

OpenAI

  • Auth/model: GET /v1/models
  • Minimal inference: POST /v1/chat/completions with tiny prompt
  • Detect: invalid key, project restriction, model not permitted, quota errors

Anthropic

  • Auth/model: GET /v1/models (with anthropic-version header)
  • Minimal inference: POST /v1/messages with low token request
  • Detect: permission model limits, quota/rate details

Gemini (Google AI Studio)

  • Probe: POST /v1beta/models/{model}:generateContent?key=...
  • Detect: API enabled/disabled, project billing state, model availability

Groq

  • Auth/model: GET /openai/v1/models
  • Minimal inference: POST /openai/v1/chat/completions

OpenRouter

  • Auth/model: GET /api/v1/models
  • Minimal inference: POST /api/v1/chat/completions
  • Detect provider routing issues and model entitlement errors

Unknown Provider Fallback

If pattern unknown:

  1. do not guess aggressively
  2. run non-destructive classification only
  3. report UNKNOWN_PROVIDER with masked key

Output Format (Required)

Always produce:

  1. summary.txt
  • total keys
  • deduplicated keys
  • provider breakdown
  • usable/full, usable/limited, invalid
  1. results.json Each entry:
  • masked_key
  • provider
  • auth_status
  • capability_status
  • billing_status
  • stability
  • http_code
  • error_hint
  • latency_ms
  1. usable_keys.txt
  • only keys with USABLE_FULL or USABLE_LIMITED
  • masked by default; full value only if user explicitly requests and context is secure

Error Classification Standard

Use exact categories:

  • INVALID_KEY
  • REVOKED_KEY
  • INSUFFICIENT_SCOPE
  • MODEL_NOT_ALLOWED
  • QUOTA_EXCEEDED
  • BILLING_REQUIRED
  • RATE_LIMITED
  • ORG_MISMATCH
  • PROVIDER_DOWN
  • NETWORK_ERROR
  • UNKNOWN_PROVIDER

Performance Rules (Fastest Practical)

  • Parse/extract first, network second.
  • Deduplicate before any API call.
  • Run provider checks in parallel pools.
  • Stop early on definitive INVALID_KEY.
  • Only run deep checks on auth-valid keys.

Default limits:

  • concurrency: 8
  • request timeout: 10s
  • retries: 1 (only for 5xx/network)

Execution Checklist

  1. ingest file/zip
  2. extract + normalize
  3. dedupe + classify provider
  4. auth probe
  5. capability probe
  6. quota/billing classification
  7. optional stability probe
  8. generate summary + json + usable list

Final Response Style

When reporting to user:

  • show totals first
  • show usable count by provider
  • show top failure reasons
  • include exact next actions (rotate, enable billing, request scope, change model)

Frequently asked questions

What does the Api Key Audit AI skill do?

Use when user says api check, key verify, validate keys, zip of keys, txt of keys, or bulk API key audit. Fast validation for API keys from .txt/.zip with auth, capability, quota, billing, and error classification.

Why use Api Key Audit on TypingMind?

Because you install it once and use it with any model. Api Key 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 Api Key Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/main/skills/api-key-audit. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Api Key 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 Api Key Audit?

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

Is the Api Key Audit AI skill free?

It is published on GitHub by mrhlaingbwardev. Check the repository for licensing terms. 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 👇