# How to connect Hugging Face to Grok Bot (paste one key, 135 tools)

> Connect Hugging Face to Grok Bot with ClawLink: paste your Hugging Face key once and 135 tools work from chat. No MCP server to run, nothing stored on your machine.

Web version: https://claw-link.dev/grokbot/hugging-face

Grok Bot runs on its own cloud computer, so most Hugging Face guides send you to register an OAuth app and paste keys into a sandbox that resets. ClawLink gives Grok Bot a more practical Hugging Face setup: it runs one CLI command, you approve once in the browser, and Grok Bot can call real Hugging Face actions from chat with no auth, token refresh, or tool wiring to build yourself.

**Start here — paste this into Grok Bot to set up ClawLink:**

> Set up ClawLink for me and tell me when it's ready.
> 1. Pair this machine. It prints an approval link, so show me the link and stop, don't wait: `npx -y @useclawlink/cli login`
> 2. I'll approve it in my browser, then reply "approved".
> 3. When I say approved, connect the app: `npx -y @useclawlink/cli connect hugging-face`
> 4. Then run `npx -y @useclawlink/cli whoami` and tell me whether ClawLink is ready.

## Setup

It takes three steps to connect Grok Bot to Hugging Face.

1. **Pair from the terminal** — ask Grok Bot to run `npx -y @useclawlink/cli login` and approve the link it prints.
2. **Connect Hugging Face** — `npx -y @useclawlink/cli connect hugging-face`, then approve in the browser.
3. **Use it from chat** — ask Grok Bot in plain English.

**The same CLI works from any agent with shell access:**

```bash
npx -y @useclawlink/cli login          # sign in via browser — no API key to paste
npx -y @useclawlink/cli connect hugging-face  # connect Hugging Face (browser OAuth)
npx -y @useclawlink/cli actions hugging-face  # list available actions
npx -y @useclawlink/cli run hugging-face <action> --input '<json>'  # execute (add --confirm for writes)
```

### Install by command

The prompt above does all of this. By hand, it is two commands Grok Bot runs in its own terminal, and one browser approval:

```bash
npx -y @useclawlink/cli login          # prints an approval link, approve it in your browser
npx -y @useclawlink/cli connect hugging-face
```

Pair once and it sticks: the key is written to ~/.clawlink/credentials.json inside Grok Bot's sandbox, so it survives between sessions. Prefer native tools over shell commands? Add `https://claw-link.dev/api/mcp` as a custom connector at grok.com/connectors and approve the ClawLink sign-in. Same account, no CLI.

Verify the connection by asking Grok Bot:

> Use Hugging Face to check dataset validity and walk me through the result in plain English.

### Using a different agent?

The CLI above is not specific to Grok Bot. Claude Code, Cursor, Codex, or any agent that can run a shell command pairs with the same ClawLink account the same way:

```bash
npx -y @useclawlink/cli login
```

`login` opens the same browser approval and stores a credential locally. Once Hugging Face is connected in the dashboard, that agent calls the same 135 Hugging Face tools over MCP. Full setup for MCP clients and shell agents: [connect apps to any AI agent](https://claw-link.dev/learn/connect-apps-to-any-ai-agent).

## Hugging Face MCP for Grok Bot

Looking for a Hugging Face MCP server for Grok Bot? ClawLink connects Hugging Face to Grok Bot and exposes 135 Hugging Face tools your agent can call over [MCP](https://claw-link.dev/learn/what-is-an-mcp-server), with [hosted auth](https://claw-link.dev/learn/oauth-for-ai-agents) and nothing to run or maintain yourself. Using a different agent? The [OpenClaw Hugging Face integration](https://claw-link.dev/openclaw/hugging-face) and the [Hermes Hugging Face integration](https://claw-link.dev/hermes/hugging-face) connect the same ClawLink account the same way.

## What the Grok Bot Hugging Face integration can do

135 Hugging Face tools are ready for Grok Bot once the account is connected. The 30 below are the ones people reach for most; your agent can call all 135.

### 30 of 135 Hugging Face tools for Grok Bot

| Tool | What it does |
|---|---|
| **Check dataset validity** `hugging_face_check_dataset_validity` | Check whether a dataset is valid |
| **Check models upload method** `hugging_face_check_models_upload_method` | Check upload method for model files |
| **Create ask access** `hugging_face_create_ask_access` | Request access to a gated repository |
| **Create collection** `hugging_face_create_collection` | Create a new collection on Hugging Face |
| **Filter dataset rows** `hugging_face_filter_dataset_rows` | Filter rows in a dataset split |
| **Generate chat completion** `hugging_face_generate_chat_completion` | Generate a chat completion response |
| **Generate embeddings** `hugging_face_generate_embeddings` | Convert text into vector embeddings |
| **Get daily papers** `hugging_face_get_daily_papers` | Retrieve daily papers from Hugging Face |
| **Check spaces upload method** `hugging_face_check_spaces_upload_method` | Check if files should be uploaded through the Large File mechanism or directly to Hugging Face |
| **Create datasets preupload** `hugging_face_create_datasets_preupload` | Check if files should be uploaded via Large File Storage (LFS) or directly to a Hugging Face |
| **Get dataset croissant** `hugging_face_get_dataset_croissant` | Get Croissant metadata about a Hugging Face dataset |
| **Get dataset first rows** `hugging_face_get_dataset_first_rows` | Get the first 100 rows of a dataset split along with column data types and features |
| **Get dataset info** `hugging_face_get_dataset_info` | Get general information about a dataset including description, citation, homepage, license, and |
| **Get dataset repo info** `hugging_face_get_dataset_repo_info` | Retrieve detailed information about a Hugging Face dataset repository |
| **Get dataset rows** `hugging_face_get_dataset_rows` | Retrieve a slice of rows from a Hugging Face dataset split at any given location (offset) |
| **Get dataset size** `hugging_face_get_dataset_size` | Get the size of a Hugging Face dataset including number of rows and size in bytes |
| **Get dataset statistics** `hugging_face_get_dataset_statistics` | Get comprehensive statistics about a dataset split including column statistics and data |
| **Get datasets compare** `hugging_face_get_datasets_compare` | Get a comparison (diff) between two revisions of a Hugging Face dataset |
| **Get datasets jwt** `hugging_face_get_datasets_jwt` | Generate a JWT token for accessing a Hugging Face dataset repository |
| **Get datasets leaderboard** `hugging_face_get_datasets_leaderboard` | Retrieve evaluation results ranked by score for a dataset's leaderboard |
| **Get datasets notebook** `hugging_face_get_datasets_notebook` | Get a Jupyter notebook URL from a Hugging Face dataset repository |
| **Get datasets resolve** `hugging_face_get_datasets_resolve` | Resolve and download a file from a Hugging Face dataset repository |
| **Get datasets scan** `hugging_face_get_datasets_scan` | Retrieve the security scan status of a Hugging Face dataset repository |
| **Get datasets tags by type** `hugging_face_get_datasets_tags_by_type` | Retrieve all possible tags used for datasets on Hugging Face, grouped by tag type |
| **Get datasets treesize** `hugging_face_get_datasets_treesize` | Get the total size of a Hugging Face dataset repository at a specific revision and path |
| **Get datasets xet read token** `hugging_face_get_datasets_xet_read_token` | Get a read short-lived access token for XET from Hugging Face datasets |
| **Get discussion** `hugging_face_get_discussion` | Get detailed information about a specific discussion or pull request on Hugging Face Hub |
| **Get jobs hardware** `hugging_face_get_jobs_hardware` | Retrieve available hardware configurations for Hugging Face Jobs with their specifications and |
| **Get model info** `hugging_face_get_model_info` | Retrieve detailed information about a Hugging Face model repository |
| **Get model tags by type** `hugging_face_get_model_tags_by_type` | Retrieve all possible tags used for Hugging Face models, grouped by tag type |

## Example prompts

**Check Dataset Validity**

> Use Hugging Face to check dataset validity and walk me through the result in plain English.

**Check Models Upload Method**

> Use Hugging Face to check models upload method and walk me through the result in plain English.

**Create Ask Access**

> Create it in Hugging Face for me, then confirm the important fields before you finish.

**Create Collection**

> Create it in Hugging Face for me, then confirm the important fields before you finish.

## ClawLink vs. building it yourself

The alternative to ClawLink is usually manual API key setup plus your own token handling, permission troubleshooting, and tool plumbing for Grok Bot. That is fine if you want to build and maintain the integration yourself. Most teams just want Hugging Face working from chat.

| | Manual | ClawLink |
|---|---|---|
| **Credential handling** | Collect, validate, store, and rotate the Hugging Face API key yourself, then make sure every tool call uses the right account. | Users complete the hosted ClawLink setup once and the connected Hugging Face account becomes available to the agent without you building credential management. |
| **Ongoing maintenance** | You own refresh logic, permission debugging, environment config, and every provider-specific edge case for Hugging Face. | ClawLink handles the repetitive integration plumbing so your team can focus on the workflow instead of the infrastructure. |
| **Agent usability** | You still need to expose the right Hugging Face actions to the runtime in a format your agent can reliably use. | 135 tools for Hugging Face are already exposed through ClawLink, so the agent can read and act from chat immediately. |

## ClawLink vs. Composio

Composio also exposes Hugging Face to AI agents. It is developer infrastructure: Python and TypeScript SDKs, an MCP server, and a catalog past 1,000 apps, aimed at teams shipping agent products. ClawLink is built for Grok Bot users instead. You install the plugin once, connect Hugging Face in the browser, and the 135 tools above work from chat. There is no SDK and no config file, and the Hugging Face key you paste at setup is stored server-side rather than kept in your environment. Choosing between them? Read the full [Composio alternatives](https://claw-link.dev/hub/composio-alternatives) comparison.

### Grok Bot says it cannot add ClawLink as an MCP server
Grok Bot only attaches MCP servers that are reachable over the public internet, so a local stdio server is refused. You do not need one. Ask Grok Bot to run `npx -y @useclawlink/cli login` in its terminal instead. The CLI is a shell command, not an MCP server. If you would rather have native tools, add `https://claw-link.dev/api/mcp` as a custom connector at grok.com/connectors and approve the ClawLink sign-in.

### Connection succeeds but no tools appear
Reconnect Hugging Face from the dashboard, then start a fresh chat if the runtime still has the old tool catalog loaded.

### "Tool schema not loaded yet" error when calling Hugging Face tools
Hugging Face tool schemas load on demand the first time a tool runs and are cached after that, so this error usually clears on its own: wait a few seconds and retry the same request. If every Hugging Face call keeps failing with it in a fresh chat, reconnect from the dashboard, and contact support if it still persists — that pattern points to a configuration problem on our side, not something you can fix by reconnecting again.

### Hugging Face returns 403 or "permission denied" on one action while others work
Two usual causes. The connected account may not have access to the specific workspace, inbox, store, or project in the request — check that first. If access looks right, the agent may have sent a placeholder value (like "YOUR_ID" or an example id from documentation) instead of a real one: ask it to run a list or search tool first, then retry the action with a real id from those results. Most failures at this stage are one of these two, not ClawLink bugs.

### API key setup works but results look incomplete
Double-check that the API key for Hugging Face has the right scopes or account access. A valid key can still be too limited for some reads or writes.

### Is there a Grok Bot Hugging Face integration?
Yes. ClawLink is the fastest way to connect Grok Bot to Hugging Face: link your Hugging Face account once in the browser and Grok Bot can call the Hugging Face API through 135 ready-made tools — no custom code or token handling.

### How do I connect Hugging Face to Grok Bot with ClawLink?
Ask Grok Bot to run `npx -y @useclawlink/cli login` in its terminal and approve the link it prints, then `npx -y @useclawlink/cli connect hugging-face` to authorize Hugging Face. Grok Bot calls the tools from the next message, and the pairing persists in its sandbox, so this is a one-time step: no config files, and the Hugging Face key you paste is stored server-side instead of in your environment.

### How long does it take to connect Hugging Face to Grok Bot?
About two minutes. Sign in, click Connect next to Hugging Face in the dashboard, authenticate, and Grok Bot can use it from the next chat message.

### Why use ClawLink instead of wiring Hugging Face up myself?
The alternative to ClawLink is usually manual API key setup plus your own token handling, permission troubleshooting, and tool plumbing for Grok Bot. That is fine if you want to build and maintain the integration yourself. Most teams just want Hugging Face working from chat.

### Grok Bot says it cannot add ClawLink as an MCP server
Grok Bot only attaches MCP servers that are reachable over the public internet, so a local stdio server is refused. You do not need one. Ask Grok Bot to run `npx -y @useclawlink/cli login` in its terminal instead. The CLI is a shell command, not an MCP server. If you would rather have native tools, add `https://claw-link.dev/api/mcp` as a custom connector at grok.com/connectors and approve the ClawLink sign-in.

## Related

- [Grok Bot DataRobot integration](https://claw-link.dev/grokbot/datarobot) — DataRobot is a machine learning platform that automates model building, deployment, and monitoring, enabling organizations to derive predictive insights from large datasets.
- [Connect Chatbotkit](https://claw-link.dev/grokbot/chatbotkit) — ChatBotKit is a platform that enables developers to build and manage AI-powered chatbots, offering comprehensive APIs and SDKs for seamless integration into applications.
- [Grok Bot ElevenLabs integration](https://claw-link.dev/grokbot/elevenlabs) — Generate speech and voice cloning
