Skip to main content

Hugging Face from the command line

Models, datasets, papers and Spaces. GBrain gives Hugging Face, and every other connector you add, a command line.

Get Personal, $49 a month

One price for one person: Hugging Face and every other connector GBrain offers, from a terminal or any AI. Cancel any time.

Install the GBrain command line, then connect Hugging Face

Hugging Face is public, so there is nothing to sign in to. A key or a sign-in never passes through the terminal.

# AI agents: read gbrain.io/llms.txt
curl -sSL https://gbrainio.terminalwire.sh | bash
gbrainio terminal connect

The installer is a shell script for macOS and Linux. Read it before you run it.

# Every Hugging Face command, once Hugging Face is connected
gbrainio tool help hugging-face

What GBrain can do with Hugging Face

Hugging Face is where the open AI community shares models, datasets and demos. Connected to a workspace, GBrain can answer “what’s a good open model for transcription?” or find the paper behind a dataset.

Nothing to sign in to. It searches public models, datasets and papers.

  • Search models and datasets
  • Search papers
  • Run tools from Spaces
  • Search Hugging Face docs
gbrainio
gbrainio tool hugging_faceModels, datasets, papers and Spaces.USAGE  gbrainio tool hugging_face <command> [arguments]COMMANDS  hf-whoami         Inspect the current Hugging Face authentication context, in…  hub-repo-search   Search Hugging Face repositories with a shared query interf…  hub-repo-details  Get details for one or more Hugging Face repos  hf-fs             When to use  open              Open its page in the browserLEARN MORE  gbrainio tool hugging_face <command> -h  What one command takes  https://gbrain.io/docs/tools             The manual
Every command Hugging Face's own server lists, each in its own words.

Hugging Face's own server lists these commands, and the CLI prints this page for them once Hugging Face is connected.

What a terminal may do with Hugging Face, and what GBrain keeps

Off or Read, for each terminal

Each terminal reaches Hugging Face at the level set for it in the browser: Off, or Read, which only reads, as Hugging Face describes its tools. A terminal reads its level and never raises it.

1,000 actions a day for each command

Each of Hugging Face's commands stops at 1,000 actions a day on the account it reaches, whichever terminal or AI asks, and starts again at midnight UTC. Only that command stops.

Every action on one record

Each command a terminal runs on Hugging Face is a row on GBrain's activity log: which terminal, which account, what it did and whether it was allowed, refusals included. gbrainio activity ls --tool hugging-face reads it back.

From a terminal, Claude Code or Codex

gbrainio tool help hugging-face says what Hugging Face is and what each of its commands does, and gbrainio tool ls lists them with everything else the terminal can run. Claude Code and Codex run the same commands, at the same level, on the same record.

From Hugging Face

GBrain reaches Hugging Face at its own server, huggingface.co. On Hugging Face's own pages: its website, how the connection works, its terms of service and its privacy policy.

The GBrain Tools command line works with every other connector GBrain offers, each with a page like this one.

Every connector's command line

Hugging Face from a terminal, with GBrain Personal

Personal is $49 a month for one person. Connect Hugging Face in the browser, and say how far each terminal and each AI may go with it. Change any of it, or take all of it back, whenever you want.