One Interface.
Any LLM Provider.
any-llm is a library that provides a single interface to various Large Language Model (LLM) providers, allowing you to adapt to changing needs, markets, or costs, whether you're building agents or any other LLM-powered application. Switch providers in seconds without rewriting your code.
Why any-llm?
Today’s LLM ecosystem is fragmented. Each provider has unique APIs, parameters, response formats, and feature sets. any-llm unifies them under a simple, single API so you can adapt to changing needs, markets, or costs without code rewrites.
Whether you’re using LLMs hosted by AWS, Azure, OpenAI, Anthropic, Mistral, or others, any-llm makes it easy to switch models and providers on demand.

One Interface, Any Provider
Call multiple LLMs and providers with a single function signature. No provider-specific wrappers to maintain.

Built with Official SDKs
Uses official SDKs when available to ensure compatibility, performance, and stability.

No Extra Infrastructure Needed
No proxies. No gateways. Just plug in your provider keys and start building.

Used in
Octonous
Every agent built on Octonous runs on any-llm, enabling seamless provider switching as your needs evolve.
Get Started with any-llm
Try it yourself and switch LLM providers without changing your code.