mozilla-ai

    mozilla-ai/any-llm

    Communicate with an LLM provider using a single interface

    ai
    developer-tools
    llm
    anthropic
    inference
    openai
    python
    text-completion
    Python
    Apache-2.0
    2.2K stars
    243 forks
    2.2K GitHub watchers
    Updated Nov 1, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest 2 days ago, with 83 contributors on GitHub.

    Peaked at #54 in the weekly ranking the week of Nov 9, its best in the past year.

    Use Cases & Benefits

    • Provides a unified Python interface to communicate with multiple LLM providers using a single API call.
    • Enables seamless switching between providers like OpenAI, Anthropic, and Mistral without code changes.
    • Use for quickly experimenting with different LLM providers in scripts or notebooks via direct API calls.
    • Use for building production applications that require connection pooling and multiple LLM requests with the AnyLLM class.
    • Use for deploying enterprise-grade LLM access with budget management and API key control using the optional any-llm-gateway.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Communicate with any LLM provider using a single, unified interface. Switch between OpenAI, Anthropic, Mistral, Ollama, and more without changing your code.

    That's it! Change the provider name and add provider-specific keys to switch between LLM providers.

    Excerpt from the mozilla-ai/any-llm README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    243+38

    Open issues

    62+21

    Compared with peers in AI

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    mozilla-ai/any-llm compared with AI repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    thedotmack/claude-mem113.6K+8.8K35today
    D4Vinci/Scrapling98.1K+6.9K651 day ago
    Leonxlnx/taste-skill110.7K+5.2K551 day ago
    calesthio/OpenMontage77.2K+4.2K40—
    heygen-com/hyperframes79.6K+4.1K45today
    mozilla-ai/any-llm2.2K—652 days ago
    Category median98.1K+5.2K45—

    Also by mozilla-ai

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description