This release is a pre-release and may not be stable for production use.
Welcome to Chainlit 👋
Build python production-ready conversational AI applications in minutes, not weeks ⚡️
⚠️ Notice: this is the community-maintained fork of Chainlit.
The original repository, Chainlit/chainlit, has been archived by its owners. Maintenance continues here, in chainlit-community/chainlit.
This fork is not affiliated with, maintained by or endorsed by Chainlit SAS, which provides no warranties on it.
Scope: we fix security issues and bugs, and we remove functionality so that it can be plugged in by others later. We do not add features.
Documentation • Cookbook • Open Collective
The documentation and cookbook linked above are those of the original Chainlit. They are not maintained by this fork and may be outdated. We intend to bring the documentation into this repository, so that it is always updated in sync with the code. The Discord and Twitter account linked from this page also belong to the original project.
https://github.com/user-attachments/assets/b3738aba-55c0-42fa-ac00-6efd1ee0d148
Installation
This fork is published on PyPI as chainlit-community. Only the name of the distribution is different: you still import chainlit in Python and run the chainlit command.
Use the one command that matches your tooling:
# pip
pip install chainlit-community
# uv, in a project: records the dependency in pyproject.toml
uv add chainlit-community
# uv, without a project: installs into the active virtual environment only
uv pip install chainlit-community
# poetry
poetry add chainlit-community
Extras go on the new name as well, e.g. pip install "chainlit-community[custom-data]".
⚠️ Warning: if the original
chainlitdistribution is installed, uninstall it first (pip uninstall chainlit).chainlitandchainlit-communityboth provide thechainlitimport package, so when both are installed they overwrite each other's files.
pip install chainlitstill installs the last release of the original project from PyPI. That package is unmaintained and does not receive the security fixes made in this fork. For security reasons, we strongly recommend that you do not install it. A third-party package that depends onchainlitwill pull it in alongsidechainlit-community;pip show chainlittells you whether it is installed and what requires it.
The PyPI project page and the Releases page show which versions have been published. To install a release candidate, pin it exactly, e.g. pip install chainlit-community==3.0.0rc1. If the version you need has not been published yet, use a preview build.
Coming from the original chainlit? Each final release has an upgrade guide.
Then check that it works:
chainlit hello
If this opens the hello app in your browser, you're all set!
Preview builds
Every commit on main that passes CI is published as a pre-release on GitHub Releases, with a version such as 3.0.0.dev1234. Preview builds are not published to PyPI. Pick one from the Releases page and install its wheel by URL, replacing <version>. Use the one command that matches your tooling:
# pip
pip install https://github.com/chainlit-community/chainlit/releases/download/<version>/chainlit_community-<version>-py3-none-any.whl
# uv, in a project: records the dependency in pyproject.toml
uv add "chainlit-community @ https://github.com/chainlit-community/chainlit/releases/download/<version>/chainlit_community-<version>-py3-none-any.whl"
# uv, without a project: installs into the active virtual environment only
uv pip install https://github.com/chainlit-community/chainlit/releases/download/<version>/chainlit_community-<version>-py3-none-any.whl
# poetry
poetry add https://github.com/chainlit-community/chainlit/releases/download/<version>/chainlit_community-<version>-py3-none-any.whl
The notes of each release have these commands with the version filled in, plus how to verify the download against SHA256SUMS and its build provenance attestation. The wheel includes the built frontend, so Node and pnpm are not needed.
From source
To install the current state of main (or another branch) straight from GitHub:
pip install git+https://github.com/chainlit-community/chainlit.git#subdirectory=backend/
(Requires Node and pnpm installed on the system.)
🚀 Quickstart
🐍 Pure Python
Create a new file demo.py with the following code:
import chainlit as cl
@cl.step(type="tool")
async def tool():
# Fake tool
await cl.sleep(2)
return "Response from the tool!"
@cl.on_message # this function will be called every time a user inputs a message in the UI
async def main(message: cl.Message):
"""
This function is called every time a user inputs a message in the UI.
It sends back an intermediate response from the tool, followed by the final answer.
Args:
message: The user's message.
Returns:
None.
"""
# Call the tool
tool_res = await tool()
await cl.Message(content=tool_res).send()
Now run it!
chainlit run demo.py -w
📚 More Examples - Cookbook
You can find various examples of Chainlit apps here that leverage tools and services such as OpenAI, Anthropiс, LangChain, LlamaIndex, ChromaDB, Pinecone and more.
🛠 Maintenance and governance
The primary maintainer of this fork is Mathijs de Bruin (@dokterbob, mathijs@mathijsfietst.nl), who was one of the maintainers of the original Chainlit.
The fork is run and supported by enterprise users who have compliance and security needs, and by Open Collective sponsors.
We are explicitly open to additional maintainers. To keep the supply chain secure, we ask that maintainers:
- have a track record of quality contributions, here or on the original project;
- can verify their identity;
- have stable contact details (email).
💖 Sponsoring
You can support the maintenance of this fork through the Chainlit Open Collective.
We are open to discussing how to fairly share any income from the Open Collective amongst maintainers.
💁 Contributing
We currently do not accept contributions that add new features. We welcome bug fixes (including CI, reliability, package management and tooling improvements and simplifications) and feature reductions, such as removing legacy functionality.
For what we accept and how to contribute, see here.
Security fixes are handled privately: report vulnerabilities through the security policy, never in a public issue or pull request.
📃 License
Chainlit is open-source and licensed under the Apache 2.0 license.
Metadata
Release files for chainlit-community 3.0.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chainlit_community-3.0.0rc1.tar.gz | 11.3 MB | With provenance | Details for chainlit_community-3.0.0rc1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chainlit_community-3.0.0rc1-py3-none-any.whl | Python 3 | none | any | Details for chainlit_community-3.0.0rc1-py3-none-any.whl |
Total release size: 22.7 MB
Release files / chainlit_community-3.0.0rc1.tar.gz
| Download URL | chainlit_community-3.0.0rc1.tar.gz |
|---|---|
| Size | 11.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3b3714c83e9b4b5037b3e9e19c7b792a39d04e27e3a0f3c61a41bdd75ef1070
|
|
BLAKE2b-256 checksum How to use checksums |
d41c00078b206f0fa7268d5df2f3ca6f4a67021e6eb8f502293effd394fef90d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / chainlit_community-3.0.0rc1-py3-none-any.whl
| Download URL | chainlit_community-3.0.0rc1-py3-none-any.whl |
|---|---|
| Size | 11.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06f7158831ea6430b5bea0b4acdf7e6551d1f24018cbdccbc234237d8b409d13
|
|
BLAKE2b-256 checksum How to use checksums |
c02e2dfda11c61e905bbab144755f5ac3e39949588965f88ab10c37e1bbd5abe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for chainlit-community 3.0.0rc1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for chainlit_community-3.0.0rc1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.