Skip to main content

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 still chainlit, and the CLI is still chainlit. Do not install it next to the chainlit package: both provide the same module.
  • Versions: 2.12.N, following the upstream 2.12 line; N is the build number of our CI.
  • Security and bug fixes: taken from the upstream main branch 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, default true): since 2.11 the side view opens by itself on the latest display="side" element of a message. Set it to false to open side elements only when the user clicks their reference, as in 2.10.
  • OAuth: oauth_callback receives the provider's id_token (5th argument) in the authorization-code flow too, not only in the Azure AD hybrid flow.
  • Private user metadata: GET /user never returns metadata["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.

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

Chainlit%2Fchainlit | Trendshift

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

Quick Start

📚 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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kairntech-chainlit 2.12.3
File Size Uploaded Provenance Actions
kairntech_chainlit-2.12.3.tar.gz 11.3 MB Without provenance Details for kairntech_chainlit-2.12.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kairntech-chainlit 2.12.3
File Interpreter ABI Platform Actions
kairntech_chainlit-2.12.3-py3-none-any.whl Python 3 none any Details for kairntech_chainlit-2.12.3-py3-none-any.whl

Total release size: 22.6 MB

Release files / kairntech_chainlit-2.12.3.tar.gz

Download URL kairntech_chainlit-2.12.3.tar.gz
Size 11.3 MB
Tags Source
SHA-256 checksum
How to use checksums
ee8c074cea68b90e3e5732b96e0f795d34214a0e2c73b32e150d6a3917f82c76
BLAKE2b-256 checksum
How to use checksums
3b7984204c097086ce3eaa0531a1340a235e5f8700953a522867da41040c4e9e
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.3-py3-none-any.whl

Download URL kairntech_chainlit-2.12.3-py3-none-any.whl
Size 11.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
96a44e4d1e58073ff630823c921f2b665124d17a87653b347e72a582b8b5041e
BLAKE2b-256 checksum
How to use checksums
3facc954152824d785e27fb204a68c2cdb9b1be12608a4fe6b1e10002f5870b8
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.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page