
Open-source Python library giving you one unified Chat Completions API plus an Agents API across all major LLM providers.
Open-source Python library giving you one unified Chat Completions API plus an Agents API across all major LLM providers.
aisuite is an open-source Python library from Andrew Ng's team that abstracts LLM development into two layers: a unified Chat Completions API and an Agents API built on top. The Chat Completions layer exposes an OpenAI-style interface that works across OpenAI, Anthropic, Google, Mistral, Hugging Face, AWS, Cohere, Ollama, OpenRouter, Requesty and more, so switching providers is a one-string change and streaming/async work identically everywhere. The Agents layer lets you register real Python functions as tools, run multi-turn tool-use loops, and attach ready-made toolkits for files, git, shell, or any MCP server, all governed by tool policies. Model names use the `provider:model-name` convention and aisuite routes the call with the right parameters under the hood. aisuite also powers OpenWorker, a desktop AI coworker developed in its own repository, and the library is available on PyPI under the `aisuite` package.
Aisuite is an open-source Python library that consolidates Chat Completions and Agents APIs, providing a unified interface across major Large Language Model (LLM) providers. It simplifies the integration of AI functionalities, making it easier for developers to build intelligent applications.
Aisuite is designed to streamline the process of working with various Large Language Models (LLMs). By offering a unified Chat Completions API and an Agents API, developers can implement AI capabilities without needing to learn different interfaces or manage separate integrations for each LLM provider.
For example, if a developer wants to create a chatbot that uses different LLMs depending on user needs, aisuite allows them to switch between providers seamlessly. The library supports popular LLMs like OpenAI’s GPT, Google’s BERT, and others, ensuring flexibility and versatility in application development.
To get started with aisuite, follow these steps:
pip install aisuite
import aisuite
chat_api = aisuite.ChatAPI(provider="OpenAI")
response = chat_api.get_response("Hello, how are you?")
print(response)
agent_api = aisuite.AgentsAPI(provider="Google")
task_response = agent_api.perform_task("Find the weather forecast for today.")
print(task_response)
This library is particularly beneficial for applications in customer support, content generation, and virtual assistance, where natural language understanding and generation are crucial.
aisuite operates by integrating multiple AI service providers through a unified API, allowing users to effortlessly switch between models like OpenAI, Anthropic, and Google. It standardizes essential parameters and facilitates real-time streaming, enabling seamless multi-provider prototyping and efficient tool usage.
aisuite simplifies the interaction with various AI models by providing a unified API that handles different providers seamlessly. Here’s how it works in detail:
Unified Chat Completions API: This feature allows users to access multiple AI platforms, such as OpenAI, Anthropic, and Google, using a single interface. By changing only the model string, users can easily switch providers without altering the underlying code.
Provider-Agnostic Parameters: aisuite standardizes key parameters, such as temperature and max tokens, across different AI models. This ensures that developers can maintain consistency in their applications regardless of which provider they are using.
Streaming and Async Capabilities: With the stream=True option, aisuite provides output in real-time, delivering data in chunks similar to OpenAI's API. Additionally, the acreate asynchronous variant allows developers to handle multiple responses effectively using async for, enhancing user experience during interactions.
Agents API: This feature enables users to register Python functions as tools within the aisuite framework, facilitating advanced multi-turn dialogues. Developers can leverage Python functions as tools to enhance the capabilities of their applications.
Ready-Made Toolkits: aisuite comes with built-in toolkits for file handling, Git interactions, and shell commands. This functionality allows agents to operate within the local environment without extensive custom coding.
Multi-Provider Prototyping: Users can easily compare outputs from different models by simply changing the model string. This feature is particularly useful for developers testing various AI solutions or optimizing responses.
Local + Cloud Hybrid: aisuite supports both local and cloud-based operations, allowing users to run lightweight models like Ollama for private tasks while utilizing cloud services for more demanding applications.
MCP Integration: aisuite can connect to existing Multi-Channel Platforms (MCP) such as GitHub and Slack, allowing users to expose their tools to various AI models without significant additional configuration.
Vendor-Portable Products: Developers can create products that allow end users to select their preferred LLM provider without the hassle of maintaining separate SDK integrations for each one.
Aisuite offers a range of powerful features designed for seamless integration across various AI providers. Key functionalities include a Unified Chat Completions API, Provider-Agnostic Parameters, Streaming and Async capabilities, an Agents API for real Python functions, and Ready-Made Toolkits for file and environment interactions.
The Unified Chat Completions API allows developers to interact with various AI models, including OpenAI, Anthropic, and Google, through a single interface. This simplifies the process of switching providers; you only need to change one string in your code. For example, if you want to switch from OpenAI to Cohere, you can do so effortlessly without rewriting your entire integration.
Aisuite standardizes essential parameters such as temperature, max_tokens, and request/response formats across different providers. This ensures that developers can maintain consistent behavior in their applications, regardless of which underlying AI service they choose to leverage. For instance, you can set a maximum token limit of 1500, and it will be respected by all integrated providers.
With the stream=True option, aisuite allows developers to receive real-time responses in OpenAI-shaped chunks from any supported provider. This is particularly useful for applications that require immediate feedback. Additionally, the acreate async variant enables developers to use asynchronous programming patterns, improving performance in applications that require multiple API calls.
The Agents API allows you to register real Python functions as tools, enabling advanced interactions in a multi-turn dialogue. This is particularly powerful for building applications that require complex decision-making processes. For example, you could create an agent that queries a database, processes the results, and then presents them to the user in a conversational format.
Aisuite includes pre-built toolkits for file manipulation, Git operations, and shell commands. These allow agents to perform tasks in the local environment without needing extensive custom code. For example, an agent could automate the process of version control by pushing updates to a Git repository based on user commands.
aisuite is designed for developers, data scientists, and businesses seeking to leverage Multi-Provider Prototyping, Local + Cloud Hybrid solutions, and the development of Agentic Apps. It facilitates seamless integration across different LLM providers and enhances productivity by allowing users to run complex tasks efficiently.
aisuite allows developers to test and compare AI models from multiple providers, including OpenAI, Anthropic, Google, and Ollama. By changing the model string in a single location, users can effortlessly switch between different AI engines. This is particularly beneficial for researchers and developers looking to evaluate the performance of various LLMs on the same prompt.
The Local + Cloud Hybrid feature enables users to run Ollama locally for sensitive or smaller tasks while utilizing cloud providers for more demanding operations. This flexibility means that developers can maintain a single codebase and client interface, reducing complexity and streamlining development processes.
aisuite is particularly useful for creating Agentic Apps, where developers can wire domain-specific Python functions as tools. The platform manages the multi-turn tool-calling loop, allowing seamless interactions with the selected LLM. This feature is ideal for companies looking to build sophisticated applications that require continuous user interaction or complex decision-making.
With aisuite, you can integrate with existing Multi-Channel Platforms (MCP) such as GitHub, Slack, or filesystem servers. By pointing an aisuite agent to an MCP server, you can expose these tools to any supported model, enhancing the functionality of your applications without needing extensive reconfiguration.
One of the standout features of aisuite is its ability to enable vendor-portable products. This means businesses can ship applications that allow end users to choose their preferred LLM provider without the hassle of maintaining multiple SDK integrations. This flexibility not only improves user satisfaction but also future-proofs applications against changes in provider offerings.
aisuite is completely free to use, allowing users to access its features without any cost. This makes it an attractive option for businesses and individuals looking to leverage AI tools without financial commitment.
aisuite provides a range of AI-driven features tailored to enhance productivity and efficiency without any financial burden. This platform enables users to utilize advanced AI tools for tasks such as data analysis, content generation, and customer engagement.
For example, small businesses can leverage aisuite’s capabilities to automate customer support through chatbots, saving both time and money. Additionally, content creators can use aisuite to generate blog ideas, optimize SEO keywords, or even draft entire articles, all at zero cost.
The user-friendly interface ensures that even those with minimal technical expertise can navigate the platform easily. Features include real-time collaboration, intuitive dashboards, and an extensive library of templates, making it a versatile tool for various industries.
To get started with AIsuite, visit AIsuite on GitHub. Here, you can sign up, download the software, and explore the features that AIsuite offers for AI development and integration.
AIsuite is an AI development suite designed to streamline the integration and management of AI models. Here’s how to get started:
Visit the GitHub Repository: Go to AIsuite's GitHub page. This page includes the latest updates, release notes, and installation instructions.
Sign Up: Depending on the version, you may need to create an account or download the software directly. Ensure you have a GitHub account for collaboration and access to community support.
Installation: Follow the installation instructions based on your operating system (Windows, macOS, or Linux). The repository typically includes a README file that provides detailed steps for setup.
Explore Features: Once installed, take some time to explore the user interface. AIsuite offers various tools for model training, data management, and deployment. Familiarizing yourself with these features will enhance your productivity.
Documentation: Consult the official documentation for in-depth tutorials and examples. This can help you utilize AIsuite effectively and troubleshoot common issues.
Compare aisuite: vs is.team · vs siift · vs Juggler · vs Elva