{"repo":"mozilla-ai/any-llm","free":true,"listed":false,"github":"https://github.com/mozilla-ai/any-llm","clone":"git clone https://github.com/mozilla-ai/any-llm.git","description":"Communicate with an LLM provider using a single interface","language":"Python","stars":2158,"topics":["inference","llm","text-completion","ai","anthropic","developer-tools","openai","python"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"any-llm Communicate with any LLM provider using a single, unified interface. Switch between OpenAI, Anthropic, Azure / Microsoft Foundry, Mistral, Ollama, and more without changing your code. Documentation otari.ai Try the Demos Contributing Quickstart That's it! Change the provider name and add provider-specific keys to switch between LLM providers. Coming from LiteLLM? Your API keys and environment variables carry over unchanged. Install the SDK with extras for the providers you need, then update your import and model strings: See Supported Providers to map your existing model strings. That's the full migration — no proxy, no extra config. Installation Requirements - Python 3.11 or newer - API keys for whichever LLM providers you want to use Basic Installation Install support for specific providers: See our list of supported providers to choose which ones you need. Using an OpenAI-compatible gateway or local server that isn't listed? You don't need a dedicated provider entry: see Custom OpenAI-compatible Endpoints. Setting Up API Keys Set environment variables for your chosen providers: Alternatively, pass API keys directly in your code (see Usage examples). Otari Gateway For budget management, API key management, usage analytics, and multi-tenant support, see mozilla-ai/otari. Why choose any-llm ? - Simple, unified interface - Single function for all providers, switch models with just a string change - Developer friendly - Full type hints for better IDE support and clear, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/mozilla-ai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mozilla-ai/any-llm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}