Genuinely curious, as a builder for so long, API keys took all shapes and sizes, but what's with the sk prefix these days?
Why do LLM keys all start with sk?
1–6 of 6 posts
Re: Why do LLM keys all start with sk?
#2I assume it's loose convention intended to identify the string as "Secret Key", as a hint to the humans who might be moving the data around, and maybe to make it easier to write precautionary code like "hey it looks like your commit has a secret key in it, are you sure you want to push it?"
Re: Why do LLM keys all start with sk?
#3I think Stripe started it long ago with "pk_" and "sk_" prefixes for public key and secret key.
Re: Why do LLM keys all start with sk?
#4I think Stripe started it long ago with "pk_" and "sk_" prefixes for public key and secret key.
Fun fact! They weren't always prefixed. And then after someone spent hours pouring over the logs in Splunk, that's when they had the idea of prefixing then.
Re: Why do LLM keys all start with sk?
#5I assume it's loose convention intended to identify the string as "Secret Key", as a hint to the humans who might be moving the data around, and maybe to make it easier to write precautionary code like "hey it looks like your commit has a secret key in it, are you sure you want to push it?"
this is actually a great idea + reason
Re: Why do LLM keys all start with sk?
#6I think Stripe started it long ago with "pk_" and "sk_" prefixes for public key and secret key.
that's actually a great reason / explanation. TY