Sign inSign up

rafadotel/openai-api-key-tester

By rafadotel

•Updated about 1 year ago

Command-line utility that validates OpenAI API keys

Image
0

1.3K

rafadotel/openai-api-key-tester repository overview

⁠OpenAI API Key Tester

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.

⁠Usage
# 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
⁠Output Format
  • [*] 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 summary

Source: https://github.com/rafa-dot-el/openai-api-key-tester⁠

License: GPL v3 - Educational purposes only

Tag summary

Content type

Image

Digest

sha256:2a3c404a3…

Size

7.7 MB

Last updated

about 1 year ago

docker pull rafadotel/openai-api-key-tester