Why suddenly today I cannot add HF API key in the secret?
1 Like
I’ve seen this happen a couple times and it’s usually one of these:
- Temporary HF UI/backend hiccup
- Secrets occasionally fails for a few hours when something is being rolled out. Easiest test: try again in 30 mins + check in another browser.
- Mobile/browser paste issues
-
On iOS/Safari the Secrets field can silently fail if the token has a trailing space/newline.
-
Paste into Notes first, re-copy (no newline), then paste again.
-
Or try desktop / private window.
- Secret name rules
- Keep the secret name simple: HF_TOKEN (letters/numbers/underscore). No spaces/special chars.
- Permission / org restriction
-
If the Space is under an org, you might not have rights to add secrets (or org policies can block it).
-
Also check you’re in the right place: Space → Settings → Secrets (not model/dataset).
- Token issues
- If the token was revoked/expired or missing scope, creating a fresh token often fixes it.
If you can share what you see when you click “Create secret” (error text / screenshot) + whether it’s a personal Space or org Space, I can tell you which of the above it is.
Hope this helps. Liam
1 Like