andrewyng /aisuite

Simple, unified interface to multiple Generative AI providers

★ 16,386⑂ 1,738
PythonCreated 2024-06-30
16,386
stars
+11+14+69
1,738
forks
–
watchers
–
prs
–
issues
–
releases
–
discussions

README

!OpenWorker
  OpenWorker
 A desktop AI coworker, built on aisuite — now in its own repository: andrewyng/openworker.

 OpenWorker chats, does deep research, and carries out real tasks on your computer — reading files with
 permission, connecting to Slack/email, producing PDFs, documents, and spreadsheets, and running scheduled
 automations. Bring your own API key (OpenAI, Anthropic, Google) or run fully local with Ollama; your data
 stays on your machine.

 ⬇ Download for macOS macOS 13+ (Apple Silicon)  ·  ⬇ Download for Windows Windows 10/11 (x64)  ·  Quickstart

 OpenWorker development has moved to the new repo. A historical snapshot of its source remains in openworker-archive/.



  aisuite




aisuite is a lightweight Python library for building with LLMs, in two layers: a unified Chat Completions API across providers, and an Agents API with tools and toolkits on top. aisuite also powers OpenWorker, a desktop AI coworker developed in its own repository:

text
┌───────────────────────────────────────────────┐
│          OpenWorker  (separate repo)          │   agent harness for doing everyday tasks
├───────────────────────────────────────────────┤
│        Agents API  ·  Toolkits  ·  MCP        │   build agents across multiple LLMs
├───────────────────────────────────────────────┤
│             Chat Completions API              │   one API across multiple LLM providers
├────────┬───────────┬────────┬────────┬────────┤
│ OpenAI │ Anthropic │ Google │ Ollama │ Others │
└────────┴───────────┴────────┴────────┴────────┘


 Chat Completions API — a unified, OpenAI-style interface for OpenAI, Anthropic, Google, Mistral, Hugging Face, AWS, Cohere, Ollama, OpenRouter, Requesty, and more. Swap providers by changing one string.
 Agents API · Toolkits · MCP — give models real Python functions as tools, run multi-turn loops, attach ready-made toolkits (files, git, shell) or any MCP server, and govern it all with tool policies.
 OpenWorker — a desktop AI coworker built using aisuite, shipped as an app for everyday tasks. Developed in its own repository.

---

 Installation

Install the base package, or include the SDKs of the providers you plan to use:

shell
pip install aisuite                base package, no provider SDKs
pip install 'aisuite[anthropic]'   with a specific provider's SDK
pip install 'aisuite[all]'         with all provider SDKs


You'll also need API keys for the providers you call — the Chat Completions quickstart covers key setup and your first calls.

Looking for the OpenWorker desktop app? Downloads are on its releases page.

---


 Chat Completions — one API across providers

The chat API provides a high-level abstraction for model interactions. It supports all core parameters (temperature, max_tokens, tools, etc.) in a provider-agnostic way, and standardizes request and response structures so you can focus on logic rather than SDK differences.

Model names use the format :; aisuite routes the call to the right p

Snapshot: 2026-11-10T09:35:25Z · Data license Apache-2.0 · JSON