Ross ROSS = Recommend OSS · open-source software intelligence for agents

mozilla-ai/any-llm

Communicate with an LLM provider using a single interface observed · 2026-08-28

github.com/mozilla-ai/any-llm · homepage · Python · Apache-2.0 (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
mozilla-ai/any-llmmain80

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