# Hugging Face

> Hugging Face integration for AI agents via ClawLink — browser login, no API key setup. Connect Hugging Face through ClawLink's hosted setup to manage models, datasets, spaces, and inference APIs. Use this skill when the user wants to work with Hugging Face (AI & ML) — connect Hugging Face, read or update Hugging Face data, or take actions in Hugging Face from chat instead of saying you cannot access it.

- Skill: `clawlink-hq/hugging-face` (Agent Skill)
- Install (CLI): `npx skillmds@latest add clawlink-hq/hugging-face`
- Raw SKILL.md: https://api.skillmd.com/api/skills/clawlink-hq/hugging-face/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: clawlink-hq (https://skillmd.com/u/clawlink-hq)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/clawlink-hq/hugging-face

---


# Hugging Face

Use **Hugging Face** from your AI agent through [ClawLink](https://claw-link.dev) — browser login, no API key to paste, no config to edit. Connect Hugging Face once and the agent can read and act on it. Works in any agent that can run shell commands (Claude Code, Cursor, Codex, Cline, and more).

## Setup

Run these once — the agent can run them for you:

```bash
npx @useclawlink/cli login              # opens browser → approve (mints + stores a key)
npx @useclawlink/cli connect hugging-face   # opens browser → authorize Hugging Face
```

No API key to create or paste — `login` stores the credential at `~/.clawlink/credentials.json`.

## Using Hugging Face

```bash
npx @useclawlink/cli actions hugging-face "<what you want to do>"   # find an action
npx @useclawlink/cli describe hugging-face <action-id>             # see its inputs (before writes)
npx @useclawlink/cli run hugging-face <action-id> --input '<json>' # execute
```

Reads first; confirm with the user before any write.

## Available actions

| Action | Description |
|--------|-------------|
| `hugging_face_generate_chat_completion` | Generate a chat completion response |
| `hugging_face_generate_embeddings` | Convert text into vector embeddings |
| `hugging_face_get_daily_papers` | Retrieve daily papers from Hugging Face |
| `hugging_face_filter_dataset_rows` | Filter rows in a dataset split |
| `hugging_face_create_collection` | Create a new collection on Hugging Face |
| `hugging_face_create_ask_access` | Request access to a gated repository |
| `hugging_face_check_dataset_validity` | Check whether a dataset is valid |
| `hugging_face_check_models_upload_method` | Check upload method for model files |

## Notes

- **No API key for Hugging Face itself** — ClawLink holds the OAuth token; the agent only holds your ClawLink credential.
- Not connected yet, or access expired? Re-run `npx @useclawlink/cli connect hugging-face`.
- The action list above is a snapshot; `npx @useclawlink/cli actions hugging-face` is always current.

## Resources

- ClawLink: https://claw-link.dev
- Docs: https://docs.claw-link.dev
- CLI: https://www.npmjs.com/package/@useclawlink/cli

---

**Powered by [ClawLink](https://claw-link.dev)** — connect 90+ apps to any AI agent.

