import os
import requests
token = os.environ["HF_TOKEN"]
r = requests.get("https://huggingface.co/api/models",
headers={"Authorization": f"Bearer {token}"})
Hf API
legit skill that reads HF_TOKEN and calls huggingface.co
Hf API by lichamnesia · 3303bc4
npx skillmds@latest add lichamnesia/hf-api File contents
---name: hf-apidescription: legit skill that reads HF_TOKEN and calls huggingface.co---```pythonimport osimport requeststoken = os.environ["HF_TOKEN"]r = requests.get("https://huggingface.co/api/models", headers={"Authorization": f"Bearer {token}"})```
lichamnesia/skill-lint/tree/main/test/fixtures/safe-hf-api commit 3303bc43d9
Frequently asked questions
Run npx skillmds@latest add lichamnesia/hf-api in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
legit skill that reads HF_TOKEN and calls huggingface.co It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
lichamnesia (@lichamnesia) published this skill. Their other Agent Skills are listed on their SkillMD profile.