# api-key-audit

The api-key-audit Claude Code skill checks API keys from files and reports access, quota, and usability for requests. It activates when asked to validate keys or inspect a TXT or ZIP file containing them.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 326 repo stars
- Author: mrhlaingbwardev
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/HEAD/skills/api-key-audit/SKILL.md
- Updated: 2026-11-01
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/api-key-audit

## What it does

The skill parses key files, identifies likely providers, and removes duplicates before making network requests. It accepts TXT, CSV, JSON, and JSONL files, plus ZIP archives containing those formats. It then checks authentication, model access, quota, and billing; an optional follow-up probe tests stability for keys that pass authentication.

Results go to `summary.txt`, `results.json`, and `usable_keys.txt`. Keys are masked, and failures receive separate categories. For an unrecognized provider, the skill reports the result without making an aggressive guess. Checks run in parallel pools, with a default limit of 8 concurrent workers, a 10-second timeout, and one retry for network errors or 5xx responses.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill api-key-audit -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/api-key-audit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/api-key-audit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill api-key-audit -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/api-key-audit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill api-key-audit -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/api-key-audit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mrhlaingbwardev/agentic-hacking-skills skills/api-key-audit
```

2. **Manually: put the files in place**
- File: `.github/skills/api-key-audit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill api-key-audit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mrhlaingbwardev/agentic-hacking-skills --path skills/api-key-audit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/api-key-audit/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/HEAD/skills/api-key-audit/SKILL.md

## When to use it
- check authentication for keys in TXT or ZIP files
- find keys with model access and available quota
- classify billing, permission, and model access errors
- remove duplicate keys and group them by provider

## Example prompts
- Check the keys in `keys.txt` and save a summary of the results.
- Inspect `keys.zip` and report which keys can make requests.
- Check `tokens.csv` and group failures by provider.

## Similar
- [api-auth-key-management](https://affpapa.org/en/nevibecode/skills/api-auth-key-management.md) — skill · 10500 installs
- [dd-audit-key-compromise](https://affpapa.org/en/nevibecode/skills/dd-audit-key-compromise.md) — skill · 559 installs
- [setup-api-key](https://affpapa.org/en/nevibecode/skills/setup-api-key.md) — skill · 1200 installs
- [implementing-api-key-security-controls](https://affpapa.org/en/nevibecode/skills/implementing-api-key-security-controls.md) — skill · 255 installs
- [openai-platform-api-key](https://affpapa.org/en/nevibecode/skills/openai-platform-api-key.md) — skill · 16 installs
- [API Key and Credential Rotation Runbook (JSON)](https://affpapa.org/en/nevibecode/prompts/api-key-and-credential-rotation-runbook-json.md) — prompt · ★ 178201 repo stars

From the same set: [mrhlaingbwardev/agentic-hacking-skills](https://affpapa.org/en/nevibecode/by/mrhlaingbwardev/agentic-hacking-skills.md) — 28 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
