Skip to main content

A simple suite of CLI tools for Hugging Face

Project description

🤗 hf-bot

PyPI version License: MIT

An intelligent, multi-provider agentic CLI playground for the Hugging Face Ecosystem. Instead of acting as a rigid shortcut router, hf-bot functions as an interactive co-pilot capable of executing local system operations, pulling real-time repository telemetry, checking disk capacity, and maintaining stateful multi-turn developer sessions.


🛑 About

  1. diskspace (Preventing Storage Crashes): Stops you from downloading a model that will crash your hard drive halfway through. It checks the remote model size against your remaining local storage before you download.
  2. vibecheck (Evaluating Project Activity): Checks monthly downloads, community likes, and lifecycle metrics so you can immediately see if a model is vibrant and maintained or a dormant archive.
  3. peek (Inspecting Model Architecture): Avoids downloading heavy model weights just to check basic parameters. It instantly snatches and parses the remote config.json to show context windows, attention heads, and model classes.

Installation

pip install hf-bot

For local development mode and contributions:

git clone [https://github.com/kuyesu/hf-tool.git](https://github.com/kuyesu/hf-tool.git)
cd hf-bot
pip install -e .

Usage & Commands

Open hf-bot CLI

Omit string arguments or use the start target keyword to drop directly into a stateful interactive REPL environment loop:

hf-bot
# OR
hf-bot start

1. diskspace

Pass a Huggingface repository path (<repo_id>) to check its total weight footprint against your available local storage space:

hf-bot diskspace EleutherAI/gpt-j-6b

Storage Assessment

2. vibecheck

Pass a Huggingface repository ID (repo_id) to evaluate monthly usage trends, community traction, and lifecycle milestones:

hf-bot vibecheck EleutherAI/gpt-j-6b

Vibe Check

3. peek

Pass a Huggingface model identifier (<model_id>) to fetch and parse its metadata parameters instantly:

hf-bot peek gpt2

Structural Architecture Peek

Environment Setup

hf-bot is entirely model-agnostic and will seamlessly fall back depending on the environment variables exported in your terminal profile session.

Bash

To run via flagship cloud APIs (e.g., xAI Grok-4.3 Engine)

export XAI_API_KEY="your-grok-api-key"

To run via entirely FREE, local offline architectures (e.g., Ollama / LM Studio)

export LOCAL_MODEL_URL="http://localhost:11434/v1" export LOCAL_MODEL_NAME="llama3" # Or your chosen local tool-calling weight base

Private & Gated Repositories

If a repository requires authentication, hf-bot securely prompts for your Hugging Face token and saves it locally:

🔒 Authentication Needed
Enter your Hugging Face Access Token (input will be hidden): ············
✓ Success! Token validated and saved locally.

Uninstallation

pip uninstall hf-bot

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hf_bot-0.3.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hf_bot-0.3.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file hf_bot-0.3.0.tar.gz.

File metadata

  • Download URL: hf_bot-0.3.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for hf_bot-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d04ca55eb9cffb3f2f0e078e21cf27a1a67cbd26d7164cef18ff406aae77dce7
MD5 2acf340c29bc56b17dbba82b8068827d
BLAKE2b-256 922947a4365349d95fd5ec2d495dda8da32d0fc3221289491886df31f6a01d9c

See more details on using hashes here.

File details

Details for the file hf_bot-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: hf_bot-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for hf_bot-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a9072ebfce75d48a8fe21c5c1d53f4cedf8016eb8d6e01ef4bb2d698918b14a
MD5 57356b0462caf4a9ad450ed3858ffc88
BLAKE2b-256 607dfc4f9a36068557ccf93ef47de02b09c36faa354cb323705faddeec969810

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page