chatlas
A simple and consistent interface for chatting with LLMs
What it is and what it does
Chatlas is a Python library that abstracts away the differences between LLM providers (OpenAI, Anthropic, and others) by offering a single, consistent Chat client interface. Instead of learning each provider's API separately, you instantiate a Chat client for your chosen model, set a system prompt, register tools, and call a single chat() method. The library handles credential management, message formatting, and tool calling under the hood.
It's built on top of widely-used dependencies like httpx, pydantic, and openai, and targets developers building multi-turn conversational applications who want to avoid vendor lock-in or easily swap providers. The package is in active development (released 2026-08-12, last commit 2026-08-14) and supports Python 3.10 through 3.14.
Use it for:
- Build a chatbot that can switch between OpenAI and Anthropic models without rewriting client code.
- Register Python functions as tools so the LLM can call them autonomously during conversation.
- Prototype LLM applications quickly without learning each provider's specific API and authentication patterns.
- Manage multi-turn conversations with consistent message history and system prompt handling across providers.
- Deploy chat applications that abstract provider details, making it easier to migrate or A/B test models.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Chatlas provides a unified Python interface for building LLM chat applications across multiple model providers with tool registration and message management.
Yes. Chatlas is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real problem—provider abstraction for LLM chat apps. MIT licensing is permissive. The 11 dependencies are all stable, widely-used packages. Install it if you're building multi-provider LLM chat applications or want to avoid vendor lock-in.
Install
chatlas on PyPI
pip
pip install chatlasuv
uv add chatlaspoetry
poetry add chatlasInstalling chatlas
Before you install
Low install friction with a pure Python wheel. Active maintenance with a release 2 days old and last commit on 2026-08-14. Depends on 11 runtime packages including httpx, openai, pydantic, and rich—all widely used and stable.
License in practice
MIT license (permissive) means you can use, modify, and distribute chatlas freely in commercial and private projects with minimal restrictions.
Quickstart
pip install chatlas
from chatlas import ChatOpenAI
chat = ChatOpenAI(
model="gpt-4-mini",
system_prompt="You are a helpful assistant."
)
chat.chat("Hello, how are you?")
Requires Python 3.10 or later. You must provide API credentials (e.g., OPENAI_API_KEY environment variable) for the chosen model provider.
Verify before relying
- Whether all 11 runtime dependencies are strictly required or if some are optional for specific providers.
- Performance characteristics and latency overhead compared to direct provider SDK calls.
- Exact scope of tool registration and function calling support across different providers.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — httpx, httpx2, jinja2, openai, opentelemetry-api, orjson, platformdirs, pydantic, requests, rich, typing-extensions |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 131,545/month — #11,585 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: chatlas-0.21.1-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
llmLLM is a CLI tool and Python library for…
permissive · top 15,000 on PyPI
any-llm-sdkProvides a unified Python interface to…
permissive · top 15,000 on PyPI
llama-index-llms-litellmIntegrates LiteLLM with LlamaIndex to provide…
permissive · top 15,000 on PyPI
litellm-enterpriseLiteLLM Enterprise provides a unified Python…
unclear · top 5,000 on PyPI
lmstudioPython SDK for interacting with LM Studio, a…
unclear · top 15,000 on PyPI
shinychatshinychat provides a chat UI component for…
permissive · top 15,000 on PyPI
llama-index-llms-openai-likeProvides a thin wrapper to use…
permissive · top 15,000 on PyPI
uipath-langchain-clientProvides LangChain-compatible chat models and…
unclear · top 15,000 on PyPI
llama-index-llms-openaiIntegrates OpenAI's language models into…
permissive · top 1,000 on PyPI