any-llm is a unified interface for calling OpenAI, Anthropic, Google, local models (via Ollama/LocalAI), and more. Switch between providers just by changing a string.
Installation and setup
api_key parameter or set as environment variables (e.g., OPENAI_API_KEY, ANTHROPIC_API_KEY). See the any-llm documentation for provider-specific requirements.
Chat models
API reference
For detailed documentation of allChatAnyLLM features and configurations, head to the API reference: https://github.com/mozilla-ai/langchain-any-llm