kunji

command module
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 2 Imported by: 0

README ΒΆ

  β–ˆβ–ˆ   β–ˆβ–ˆ β–ˆβ–ˆ    β–ˆβ–ˆ β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆ      β–ˆβ–ˆ β–ˆβ–ˆ
  β–ˆβ–ˆ  β–ˆβ–ˆ  β–ˆβ–ˆ    β–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–ˆ   β–ˆβ–ˆ      β–ˆβ–ˆ β–ˆβ–ˆ
  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   β–ˆβ–ˆ    β–ˆβ–ˆ β–ˆβ–ˆ β–ˆβ–ˆ  β–ˆβ–ˆ      β–ˆβ–ˆ β–ˆβ–ˆ
  β–ˆβ–ˆ  β–ˆβ–ˆ  β–ˆβ–ˆ    β–ˆβ–ˆ β–ˆβ–ˆ  β–ˆβ–ˆ β–ˆβ–ˆ β–ˆβ–ˆ   β–ˆβ–ˆ β–ˆβ–ˆ
  β–ˆβ–ˆ   β–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆ   β–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆ

Universal API Key Validation Engine

Go Version Platform License

Features β€’ Installation β€’ Usage β€’ 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 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.7.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:

  1. User-Only Permissions: All result files are created with 0600 permissions (-rw-------), ensuring only you can read your validated keys.
  2. Secret Scrubbing: Kunji automatically detects and masks API keys in error messages ([MASKED_KEY]) before they are saved to disk.

πŸ›οΈ 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"

See AGENTS.md for full development guidelines.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL