ββ ββ ββ ββ βββ ββ ββ ββ
ββ ββ ββ ββ ββββ ββ ββ ββ
βββββ ββ ββ ββ ββ ββ ββ ββ
ββ ββ ββ ββ ββ ββ ββ ββ ββ ββ
ββ ββ ββββββ ββ ββββ βββββ ββ
Universal API Key Validation Engine

Installation β’
Security β’
Providers β’
Full Manual
Kunji is a high-performance, concurrent CLI tool designed to rapidly validate API keys across 260+ services. Whether you're auditing infrastructure, testing integrations, or cleaning up configuration dumps, Kunji provides a safe, fast, and automated way to verify credentials.
π Terminal Experience
Kunji features a modern, interactive UI built with pterm, providing real-time feedback during bulk operations.
ββ ββ ββ ββ βββ ββ ββ ββ
ββ ββ ββ ββ ββββ ββ ββ ββ
βββββ ββ ββ ββ ββ ββ ββ ββ
ββ ββ ββ ββ ββ ββ ββ ββ ββ ββ
ββ ββ ββββββ ββ ββββ βββββ ββ
Validating API Keys [256/260] ββββββββββββββββββββββββββββββββββββ 98%
Β» shopify β Valid myshop:shpat_****abc123
Β» openai β Valid sk-proj-****xyz789
Β» stripe β Invalid sk_live_****123456
Β» deepseek β Valid sk-****def456
β¨ Key Features
- π Smart Auto-Detection β Instantly identifies 260+ services via a high-speed prefix trie and sensitive regex fallback.
- β‘ Concurrent Engine β Multi-threaded worker pool handles thousands of keys in seconds with configurable throughput.
- π Metadata Extraction β Automatically retrieves account balance, email, usage limits, and organization names.
- π‘οΈ Hardened Security β Built-in SSRF protection, restrictive file permissions, and automatic secret scrubbing in logs.
- π Smart Resume & Retry β Skip already-validated keys and handle intermittent network failures or rate limits with jittered backoff.
- π€ Clean Export β Generate structured reports in
.txt, .csv, .json, or memory-efficient .jsonl.
- πΉοΈ Interactive Paste Mode β Paste blocks of text and let Kunji auto-extract and validate the keys.
- π΅οΈ Dry Run Mode β Detect providers without sending a single network request.
π¦ Installation
Go Install (Recommended)
go install github.com/Grey-Magic/kunji@latest
Prebuilt Binaries
Download the latest release for your platform:
# Example for Linux/macOS
curl -sL https://github.com/Grey-Magic/kunji/releases/latest/download/kunji_1.0.5.zip -o kunji.zip
unzip kunji.zip && chmod +x kunji
sudo mv kunji /usr/local/bin/
π οΈ Usage
For a comprehensive guide including service-specific examples, see USAGE.md.
Basic Commands
# Validate a single key (auto-detects provider)
kunji validate -k "sk-proj-..."
# Bulk validation from a file with 20 workers
kunji validate -f keys.txt -o results.csv -t 20
# Resume an interrupted run, only keeping valid keys
kunji validate -f keys.txt --resume --only-valid -o results.jsonl
# Quick interactive paste mode
kunji interactive
# Check your proxies
kunji check-proxies --proxy proxies.txt
Advanced Options
| Flag |
Description |
-p, --provider |
Force a specific provider (e.g., openai) to skip detection. |
-c, --category |
Limit detection to a category (e.g., llm, payments). |
--proxy |
Provide a single proxy or a file for automatic rotation. |
--timeout |
Set custom request timeout (default: 15s). |
--dry-run |
Detect providers without making network requests. |
--custom-providers |
Load extra YAML provider definitions from a directory. |
π Security First
Kunji is designed with data privacy and security as a core mandate:
- User-Only Permissions: All result files are created with
0600 permissions (-rw-------), ensuring only you can read your validated keys.
- Secret Scrubbing: Kunji automatically detects and masks API keys in error messages (
[MASKED_KEY]) before they are saved to disk.
- No Data Exfiltration: Validation happens directly between your machine and the provider API.
ποΈ Supported Providers (260+)
Kunji supports an extensive array of services across multiple domains:
| Category |
Top Services |
| Foundation LLMs |
OpenAI, Anthropic, Google Gemini, xAI, Mistral, DeepSeek |
| Cloud & Hosting |
Cloudflare, Vercel, Netlify, Railway, DigitalOcean, Heroku, Render |
| Databases |
MongoDB Atlas, Redis Cloud, ClickHouse, CockroachDB, TiDB, Neon |
| Security & OSINT |
Shodan, VirusTotal, Censys, FOFA, ZoomEye, Intelligence X |
| Auth & Identity |
Auth0, Clerk, WorkOS, Stytch, Frontegg, FusionAuth |
| DevOps & CICD |
GitHub, GitLab, NPM, Supabase, CircleCI, Travis CI, Pulumi, ArgoCD |
| Payments |
Stripe, PayPal, Square, LemonSqueezy, Paddle, Plaid |
| CMS & E-com |
Shopify, WooCommerce, Strapi, Sanity, Contentful, Webflow, Prismic |
| Blockchain |
Alchemy, Infura, QuickNode, Etherscan, Moralis, Thirdweb |
π€ Contributing
Adding a new provider is simple and requires zero Go code. Simply add a YAML entry to pkg/validators/providers/:
- name: new_service
key_prefixes: ["ns-"]
key_patterns: ["^ns-[a-zA-Z0-9]{32}$"]
validation:
method: GET
url: "https://api.newservice.com/v1/user"
auth: "bearer"
π License
This project is licensed under the MIT License - see the LICENSE file for details.