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

Chainnext requires Python 3.15.2 or newer. 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.js 26.13.1+, npm 12.2.3+, and pnpm 12.22.0.)

🚀 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

We welcome bug fixes and security fixes. At this time, pull requests that introduce new features are not reviewed or merged; please open an issue to discuss feature ideas first.

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.13.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.13.0
File Size Uploaded Provenance Actions
chainnext-2.13.0.tar.gz 14.4 MB With provenance Details for chainnext-2.13.0.tar.gz

Built distribution (wheel)

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

Total release size: 28.7 MB

Release files / chainnext-2.13.0.tar.gz

Download URL chainnext-2.13.0.tar.gz
Size 14.4 MB
Tags Source
SHA-256 checksum
How to use checksums
3d3d936d18dd3dd856e385b658577fbb1d8825e15ee627830f600b72592d1e74
BLAKE2b-256 checksum
How to use checksums
e7eab3440cba3f76fe413d4819746f185be76b2054d4db2cd88eb409a32bc96a
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 28, 2026.

Transparency log

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

Download URL chainnext-2.13.0-py3-none-any.whl
Size 14.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
05d0ede848abdbad77405d971f61617ab025564a85ac107d4b949be5d458f045
BLAKE2b-256 checksum
How to use checksums
2aba4b120fb5eb9c1afb376d440d800310aaa305fb4e40bbf8619f8bddbc880f
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 28, 2026.

Transparency log

Security for chainnext 2.13.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.13.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 28, 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.13.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