{"categories":[{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/8"}],"enrichment":{"capability":"Provides a unified Python interface to communicate with multiple LLM providers (OpenAI, Anthropic, Mistral, Ollama, and others) using a single API, letting you switch providers by changing a string parameter.","skillfed_tags":["llm-abstraction","multi-provider","api-wrapper"],"use_cases":["Switch LLM providers in production without rewriting application code\u2014useful when costs, availability, or performance favor a different provider.","Build multi-provider fallback logic: try one provider, fall back to another if it fails or is unavailable.","Prototype and experiment with different LLM models and providers in notebooks without changing imports.","Migrate from LiteLLM to a library that uses official SDKs directly, preserving existing API keys and environment variables.","Support multiple LLM backends in a single application, letting users or deployments choose their preferred provider."],"what_it_does":"any-llm-sdk is a Python wrapper that abstracts away the differences between multiple LLM provider APIs\u2014OpenAI, Anthropic, Mistral, Ollama, and others\u2014into a single, consistent interface. Instead of learning and maintaining separate code paths for each provider, you call the same `completion()` function and change only the provider and model name strings to switch between them. It leverages each provider's official SDK under the hood, so compatibility is tied directly to those libraries.\n\nThe package offers two usage patterns: stateless direct functions for scripts and notebooks, and a reusable `AnyLLM` class for production applications that need connection pooling and multiple requests. It supports streaming, the OpenAI-style Responses API, and tool calling where providers implement them. The main dependencies are pydantic, openai, anthropic, rich, httpx, and typing_extensions, making it lightweight for a multi-provider abstraction.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, uses official provider SDKs for compatibility, and solves a real pain point for multi-provider LLM applications. Low install friction and permissive licensing make it a straightforward addition. Install it if you need to support multiple LLM providers or want the flexibility to switch between them without code changes."},"id":"any-llm-sdk","links":{"html":"https://skillfed.io/packages/any-llm-sdk","md":"https://skillfed.io/packages/any-llm-sdk.md","pypi":"https://pypi.org/project/any-llm-sdk/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-11","license_spdx":null,"license_treatment":"permissive","name":"any-llm-sdk","python_support":"supports_current","summary":null},"popularity":{"monthly_downloads":157653,"position":10748,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.25.0"}
