A beautiful UI application to test if API keys are valid for various services including OpenAI, Google Cloud, GitHub, Groq, Anthropic, and AWS.
- ✅ Validate API keys for multiple services
- 🎨 Beautiful and responsive user interface
- 🔒 Secure client-side validation
- 🚀 Easy to set up and run locally
- 🌐 Supports popular AI and cloud services:
- OpenAI
- Google Cloud
- GitHub
- Groq
- Anthropic
- AWS
- Node.js (v14 or higher)
- npm (comes with Node.js)
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd api-key-tester -
Install dependencies:
npm install
-
Start the server:
npm start
-
Open your browser and navigate to:
http://localhost:3000
- Select a service provider from the dropdown menu
- Enter your API key in the input field
- Click the "Validate Key" button
- View the results to see if your key is valid
The application comes with demo keys for testing purposes, but these will not work for validating your actual API keys. The server performs real API calls to validate keys, so you'll need to use valid keys for the services you want to test.
For production use, you should implement proper authentication and security measures to protect your API keys.
| Service | Validation Method |
|---|---|
| OpenAI | Calls the models endpoint |
| Google Cloud | Calls the Geocoding API |
| GitHub | Calls the user endpoint |
| Groq | Calls the models endpoint |
| Anthropic | Calls the models endpoint |
| AWS | Validates key format (starts with AKIA, 20 characters) |
api-key-tester/
├── public/
│ ├── index.html
│ ├── script.js
│ └── styles.css
├── server.js
├── package.json
└── README.md
To add support for additional services:
- Add a new case in the
validateApiKeyfunction in server.js - Add the service to the dropdown in index.html
- If you get "Invalid API Key" errors, ensure you're using a valid key for the selected service
- Make sure you have internet connectivity to reach the service APIs
- Check the browser console and server logs for detailed error messages
AK DINESH https://github.com/akdinesh2003