A
mozilla-ai/any-llm★ 2,269 · Python
In-process Python SDK for hosted and local LLMs behind one typed API
Apache-2.0 · Commercial Friendly1.55.2
Side-by-side 2026 comparison in LLMs & Inference: huggingface/huggingface_hub leads both total GitHub adoption (★ 4.1k) and recent 7-day momentum. Licensing: Apache-2.0 · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
In-process Python SDK for hosted and local LLMs behind one typed API
Python SDK and CLI for Hugging Face artifacts, hosted inference, and jobs
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | mozilla-ai/any-llm | huggingface/huggingface_hub |
|---|---|---|
| Total GitHub Stars | ★ 2,269 | ★ 4,096 |
| 24h / 7d Velocity | +0 / +2 | +3 / +23 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 93/100 | A+ · 98/100 |
| Deployment Signals | API · Local AI | CLI · API |
| Primary Language | Python | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated today | Updated today |
| Latest Release | 1.55.2 | v2.5.0 |
| Best For | Python applications that need to switch among hosted providers or a local inference endpoint, reuse clients in services, and validate a common subset of model features without running a proxy | ML teams standardizing how applications and automation discover, cache, and publish Hub artifacts or call Hugging Face hosted services |
completion from any_llm and select a backend using separate arguments or a provider:model string.AnyLLM.create(...) supports client and connection-pool reuse.openresponses-types.responses and aresponses require a supporting provider.pip install 'any-llm-sdk[mistral,ollama]' export MISTRAL_API_KEY="YOUR_KEY_HERE" # or OPENAI_API_KEY, etc from any_llm import completion import os # Make sure you have the appropriate environment variable set assert os.environ.get('MISTRAL_API_KEY') response = completion( model="mistral-small-latest", provider="mistral", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content)
huggingface_hub Python package also installs the hf CLI, which is available separately through a standalone installer.hf_hub_download retrieves one file and snapshot_download retrieves a repository snapshot; downloads use a local cache.create_repo, upload_file, and upload_folder cover repository creation and file or directory uploads.hf models ls --warm discovers models served by Inference Providers; hf jobs run submits a job to Hugging Face infrastructure.# On macOS and Linux. curl -LsSf https://hf.co/cli/install.sh | bash
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy