Command-line utility that validates OpenAI API keys
1.3K
A command-line utility that validates OpenAI API keys by making requests to the OpenAI API. The program reads API keys from standard input and reports their validity status to standard output.
# Test a single key
echo "sk-your-key-here" | docker run --rm -i rafadotel/openai-api-key-tester
# Test multiple keys from file
cat keys.txt | docker run --rm -i rafadotel/openai-api-key-tester
[*] Checking API key: sk-... - Processing message[+] Valid API key: sk-... - Valid key[-] Invalid API key: sk-... - Invalid key[*] Summary: N valid keys, M invalid keys - Final summarySource: https://github.com/rafa-dot-el/openai-api-key-tester
License: GPL v3 - Educational purposes only
Content type
Image
Digest
sha256:2a3c404a3…
Size
7.7 MB
Last updated
about 1 year ago
docker pull rafadotel/openai-api-key-tester