Skip to main content

Welcome to Chainnext 👋

Build python production-ready conversational AI applications in minutes, not weeks ⚡️

PyPI Downloads Contributors CI

Chainnext is a fork of the archived Chainlit project. The goal is to keep the familiar Chainlit app API while distributing a maintained package under a new name.

Repository • Upstream Chainlit docs • Upstream cookbook

Names: PyPI vs import vs CLI

The PyPI / GitHub name is chainnext. The Python import, CLI, and on-disk config names stay chainlit so existing apps keep working.

What Name Example
GitHub repository chainnext https://github.com/Puyanfar/chainnext
PyPI package chainnext pip install chainnext
Python import chainlit import chainlit as cl / from chainlit import *
CLI chainlit chainlit run app.py / chainlit hello
Config directory .chainlit/ .chainlit/config.toml
Welcome file chainlit.md project-root markdown shown in the UI
Environment variables CHAINLIT_* CHAINLIT_AUTH_SECRET, CHAINLIT_PORT, …

Do not pip install chainlit for this fork, and do not import chainnext — that module does not exist.

Installation

Open a terminal and run:

pip install chainnext
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/Puyanfar/chainnext.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-compatible apps here that leverage tools and services such as OpenAI, Anthropic, LangChain, LlamaIndex, ChromaDB, Pinecone and more.

Tell us what you would like to see added in Chainnext using the GitHub issues.

💁 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

Chainnext is a fork of Chainlit and is open-source under the Apache 2.0 license.

Metadata

Release files for chainnext 2.12.0

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

Source distribution (sdist)

Source distribution for chainnext 2.12.0
File Size Uploaded Provenance Actions
chainnext-2.12.0.tar.gz 11.3 MB With provenance Details for chainnext-2.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chainnext 2.12.0
File Interpreter ABI Platform Actions
chainnext-2.12.0-py3-none-any.whl Python 3 none any Details for chainnext-2.12.0-py3-none-any.whl

Total release size: 22.6 MB

Release files / chainnext-2.12.0.tar.gz

Download URL chainnext-2.12.0.tar.gz
Size 11.3 MB
Tags Source
SHA-256 checksum
How to use checksums
fdfd2fc1568d57b13baeefe8d3c6eb5f097c8c76b12ff8e99e3ef737b4c93e5a
BLAKE2b-256 checksum
How to use checksums
edc52a91227ebb240b6d0e2215af35882e5f7ed2341b0d83a5648904257afb25
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 21, 2026.

Transparency log

Release files / chainnext-2.12.0-py3-none-any.whl

Download URL chainnext-2.12.0-py3-none-any.whl
Size 11.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e0ab1127b2d7cd4169be66c02611fc5e547ee1148aaf43089b16f2be0f82cfd0
BLAKE2b-256 checksum
How to use checksums
1ec2159a5d3ea8ea2a0917b437857b541989790d573151d715d4d2c6268e0e44
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 21, 2026.

Transparency log

Security for chainnext 2.12.0

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.

Select from 2 files

Attestation for chainnext-2.12.0.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 21, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

2.12.0 This release

2 release files Full provenance

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