Validate Any API Key in Seconds

Api Key Chain is the fastest way to check if your API keys are valid. Supports 59 providers including OpenAI, Anthropic, Google Gemini, DeepSeek, xAI, Groq, Stripe, and more. Open source, secure, and completely free.

59 Supported Providers

Paste any key from these providers and get instant validation — no manual selection needed.

Everything You Need

From instant validation to bulk testing and response inspection — built for developers who move fast.

Premium FeaturesPREMIUM

A free account can watch one key with the same alerts and reminders. Premium unlocks the rest.

💻 Also in your terminal and CI

The same open-source checker runs as a command-line tool and a GitHub Action: it checks the keys in a.envfile or your CI secrets and fails the build when one has stopped working. Keys go only to their own provider and are never printed. Free and MIT-licensed.

GitHub Action

- uses: UsmanSanawar/Api-Key-Chain@v1
  with:
    env-names: OPENAI_API_KEY,STRIPE_SECRET_KEY
  env:
    OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
    STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}

Command line (from a clone of the repo)

node bin/apikeychain.mjs .env
node bin/apikeychain.mjs --env --only OPENAI_API_KEY

Exit code 1 when a key is invalid, so any CI system can use it.

Built for Real Workflows

Whether you're onboarding, rotating keys, or auditing — Api Key Chain fits into your process.

How Encryption Works

Your API keys are protected with industry-standard cryptography — whether stored client-side or server-side.

🔒

Zero-Knowledge Encryption

Encrypted and decrypted only in your browser. Your passphrase is never sent to us, so we can't read it.

🔐AES-256-GCM — Military-grade authenticated encryption with tamper detection
🔑PBKDF2-SHA256 — 600,000 iterations (OWASP 2024 standard) to derive encryption key from your passphrase
🧂16-byte random salt — Unique per key, prevents rainbow table attacks
🎲12-byte random IV — Unique per encryption, prevents pattern analysis
🌐Web Crypto API — Browser-native, no third-party JS crypto libraries
🛡️

Server-Encrypted

Encrypted at rest with envelope encryption. Enables automated background health checks.

📦Envelope Encryption — Per-key Data Encryption Key (DEK) wrapped by a master key stored in Supabase Vault
🔐AES-256-GCM — Same authenticated encryption as Zero-Knowledge mode
🔑Supabase Vault — Master key never exposed to application memory, referenced by ID only
🔄Key Rotation Ready — Rotate master key without re-encrypting all data; just re-wrap DEKs
🩺Health Checks — Automated background validation keeps you informed if keys expire or fail

Frequently Asked Questions

What is Api Key Chain?
Api Key Chain is a free, open-source tool that lets you instantly validate API keys for 59 providers including OpenAI, Anthropic, Google Gemini, DeepSeek, xAI, Stripe, GitHub, and more.
Is it safe to test my API keys here?
Yes. We never store the keys you test. Most providers are tested directly from your browser; a few that block browser requests are relayed through a stateless function that forwards the request once without logging the key. The source code is fully auditable on GitHub.
Which API providers are supported?
We support OpenAI, Anthropic, Google Gemini, Mistral, Cohere, Hugging Face, Groq, OpenRouter, Together, Perplexity, xAI (Grok), GLM (Z.ai / ZhiPu), Kimi (Moonshot), Qwen (Alibaba), Doubao (ByteDance), DeepSeek, Fireworks AI, Cerebras, Nebius Token Factory, DeepInfra, Stripe, Hyperbolic, Novita AI, AI21 Labs, Replicate, GitHub, ElevenLabs, AssemblyAI, Deepgram, Pinecone, SendGrid, Mailgun, Brevo, Postmark, Resend, Twilio, Slack, Notion, GitLab, Vercel, Netlify, DigitalOcean, Cloudflare, Discord (bot), Telegram (bot), HubSpot, Mailchimp, Airtable, Linear, Heroku, Sentry, Mapbox, Asana, Square, Datadog, Postman, Render, Neon, Lemon Squeezy — 59 providers in total. Most keys are auto-detected from their prefix.
How does auto-detection work?
When you paste a key, our pattern-matching engine analyzes the key format (prefix, length, character set) to identify the most likely provider, so you don't have to select one manually.
How does bulk testing work?
Paste multiple keys separated by commas or newlines into the key input. The tool auto-detects the bulk format, switches to bulk mode, and tests each key one by one with results appearing live in your history.
Can I see the API endpoint and response?
Yes. Toggle the 🔗 endpoint button to see the exact URL being tested. Toggle the 📋 response button to view the full pretty-printed JSON response, with copy-to-clipboard for both.
Can I get an email when a key stops working?
Yes. Save the key to your account and it is re-checked on a schedule: every 12 hours for one key on the free plan, every 6 hours for all keys on Premium. You get an email when it stops working and another when it works again.
Can I share API keys with my team?
Yes, with Premium. Put keys in a folder and invite up to 5 people by email as Viewer, Member or Editor. They sign in with their own free account and reveal keys with their own PIN. You can change roles or remove people at any time.
Is there a command-line tool or GitHub Action?
Yes. The open-source CLI checks every key in a .env file or in environment variables and exits with an error if one is invalid. The GitHub Action runs the same check in CI. Keys are sent only to their own provider.
Do I need an account to use it?
No. All core features — testing keys, auto-detection, bulk testing, history, endpoint/response viewer — work without an account. Sign up only for cloud features like saved keys and analytics.
Is Api Key Chain open source?
Yes! The core testing engine is fully open source under the MIT license on GitHub. The SaaS features (auth, saved keys, analytics) are additional layers on top.

Ready to Validate Your Keys?

Start testing for free — no account required. Supports 59 providers with bulk testing, endpoint inspection, and more.