mozilla-ai/any-llm
Communicate with an LLM provider using a single interface observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 99
- Release rhythm 86
- Longevity 29
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 2.0
- age_days: 415
- days_rel: 16
- days_push: 7
- n_releases_24m: 79
Adoption not part of the score
2171 stars · 216 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
any-llm is a Python library from Mozilla.ai that provides a single, unified interface for calling many LLM providers (OpenAI, Anthropic, Mistral, Ollama, Azure, and more) via one completion/embedding API. Switching providers requires only changing a provider parameter and API key, with unified exception handling, streaming, and tool calling support.
Use cases
- switch between openai and anthropic without changing code
- unified python api for multiple llm providers
- call local ollama models with the same code as openai
- migrate from litellm to a lighter sdk
- compare llm provider costs with one interface
- add streaming and tool calling across providers
- build a library that lets users pick their llm provider
When to choose
- you want a lightweight, provider-agnostic LLM client in Python
- you need to swap or benchmark multiple LLM providers with minimal code changes
- you want unified exception handling and streaming across providers
- you're migrating from LiteLLM and want compatible env vars and model strings
When to avoid
- you only ever call a single provider's official SDK
- you need features like provider-side routing, caching, or spend tracking that gateway platforms offer
- you're not using Python 3.11+
Facets
library · maturity active
llm-inference sdk http-client large-language-models artificial-intelligence developer-tools apis python cross-platform unified-api llm-providers openai-compatible provider-agnostic litellm-alternative streaming tool-calling embeddings
4 sources
- readme: https://github.com/mozilla-ai/any-llm · fetched 2026-08-28 · c4e36a5d66f4
- homepage: https://docs.mozilla.ai/any-llm · fetched 2026-08-29 · 383a948c569a
- site_page: https://docs.mozilla.ai/quickstart · fetched 2026-08-29 · 1e4b7f312c52
- site_page: https://docs.mozilla.ai/cookbooks/any-llm-getting-started · fetched 2026-08-29 · 27bbab8b628d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mozilla-ai/any-llm | main | 80 |
For agents
markdown · JSON · MCP: product_card(name="mozilla-ai/any-llm")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem