kairntech-chainlit
Kairntech's maintenance fork of Chainlit 2.12
⚠️ This is a fork. The original Chainlit/chainlit repository was archived by its owners on 2026-10-15, after its last release, 2.12.0. Kairntech maintains this fork for its own products (the Sherpa chatbots). It is not affiliated with, maintained by or endorsed by Chainlit SAS, which provides no warranties on it. Licensed Apache-2.0, like the original.
How it differs from Chainlit 2.12.0
- Package name:
pip install kairntech-chainlit. The imported module is stillchainlit, and the CLI is stillchainlit. Do not install it next to thechainlitpackage: both provide the same module. - Versions:
2.12.N, following the upstream 2.12 line;Nis the build number of our CI. - Security and bug fixes: taken from the upstream
mainbranch after 2.12.0 and from the community maintenance fork chainlit-community/chainlit, cherry-picked (git cherry-pick -x, so each commit names its origin) rather than rewritten. The dependency floors are raised accordingly. features.auto_open_side_view(.chainlit/config.toml, defaulttrue): since 2.11 the side view opens by itself on the latestdisplay="side"element of a message. Set it tofalseto open side elements only when the user clicks their reference, as in 2.10.- OAuth:
oauth_callbackreceives the provider'sid_token(5th argument) in the authorization-code flow too, not only in the Azure AD hybrid flow. - Private user metadata:
GET /usernever returnsmetadata["auth"]. Apps can keep server-side credentials there (e.g. the IdP access token used to call APIs on the user's behalf) without sending them to the browser. - PDF elements under a root path: the pdf.js worker is resolved next to the bundle instead of at
/assets/…from the domain root, so PDFs load when the app is served under a prefix (/my-app/).
No new features otherwise: the scope is fixes, security, and what our products need. The rest of this page is the original Chainlit README; its links (documentation, cookbook, Discord) belong to the original project.
Website • Documentation • Chainlit Help • Cookbook
https://github.com/user-attachments/assets/b3738aba-55c0-42fa-ac00-6efd1ee0d148
Installation
Open a terminal and run:
pip install chainlit
chainlit hello
If this opens the hello app in your browser, you're all set!
Development version
The latest in-development version can be installed straight from GitHub with:
pip install git+https://github.com/Chainlit/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.
Tell us what you would like to see added in Chainlit using the Github issues or on Discord.
💁 Contributing
As an open-source initiative in a rapidly evolving domain, we welcome contributions, be it through the addition of new features or the improvement of documentation.
For detailed information on how to contribute, see here.
📃 License
Chainlit is open-source and licensed under the Apache 2.0 license.
Metadata
Release files for kairntech-chainlit 2.12.11
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 |
|---|---|---|---|---|
| kairntech_chainlit-2.12.11.tar.gz | 11.3 MB | Without provenance | Details for kairntech_chainlit-2.12.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kairntech_chainlit-2.12.11-py3-none-any.whl | Python 3 | none | any | Details for kairntech_chainlit-2.12.11-py3-none-any.whl |
Total release size: 22.6 MB
Release files / kairntech_chainlit-2.12.11.tar.gz
| Download URL | kairntech_chainlit-2.12.11.tar.gz |
|---|---|
| Size | 11.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb0e2bb91bea3b3105f49a56739b66bc424001cd8bdca1c5f97283da3b3bf36d
|
|
BLAKE2b-256 checksum How to use checksums |
e21b25d3d2ce1fb6b07e04292bb7c33a96a92ed7e786b3b31b7650235edddb19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / kairntech_chainlit-2.12.11-py3-none-any.whl
| Download URL | kairntech_chainlit-2.12.11-py3-none-any.whl |
|---|---|
| Size | 11.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ce5f75239d2d16b748564966f8bb4aa46182572221657e469238b61875a687a
|
|
BLAKE2b-256 checksum How to use checksums |
85d7d6d7d480840ec70679ce1f13bcfa062bc05f9e6864fb7f91b1b9433f10a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for kairntech-chainlit 2.12.11
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.