Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Chainlit NG

Build production-ready conversational AI applications in Python.
Tool-call approvals, agent questions, observability, and a modern React 19 frontend.

Fork notice: Chainlit NG is an independent fork of the original Chainlit project. The upstream project is no longer actively maintained. This line continues development with security fixes and new interaction features. Source, issues, and releases: JonasKenke/chainlit-ng.

Install

pip install chainlit-ng

Requires Python 3.10 or newer.

The Python import is unchanged:

import chainlit as cl

The CLI is chainlit-ng. The chainlit command remains as an alias, so existing scripts and deployment commands keep working.

chainlit-ng hello

Quickstart

Create demo.py:

import chainlit as cl


@cl.step(type="tool")
async def tool():
    await cl.sleep(2)
    return "Response from the tool!"


@cl.on_message
async def main(message: cl.Message):
    tool_res = await tool()
    await cl.Message(content=tool_res).send()

Run it with auto-reload:

chainlit-ng run demo.py -w

What's new in 3.0

  • Tool-call approvals with schema-generated edit forms and request-changes feedback.
  • cl.ask questions with options, free text, typed multi-field forms, checkbox multi-select, optional fields, and explicit answer provenance.
  • Thread sharing with opt-in, read-only grants for named users.
  • Safer MCP: named servers, a user-server URL allowlist, and per-user OAuth.
  • OpenTelemetry export with a fixed redaction allowlist.
  • Skills, prompt gallery, and scheduled prompts.
  • UI improvements: message timestamps, compact chain-of-thought, side-view by element id, and a configurable upload directory.

Screenshots and the full feature overview are in the repository README.

Security

Security fixes in this line include the MCP fixes for CVE-2026-45018 and CVE-2026-45019, Azure AD hybrid state and id_token verification with a per-login nonce, lone-surrogate request handling, element ownership checks, upload validation, markdown and media hardening, thread-grant ACLs, and OpenTelemetry redaction and export bounds. This is not a claim that every upstream bug is fixed.

See the MCP advisory and the changelog.

Migrating from Chainlit 2.x

The 3.0 migration guide covers the package and CLI rename, the npm package rename, the Recoil to Zustand state change, and breaking configuration updates.

pip uninstall chainlit
pip install chainlit-ng==3.0.0

Documentation

Guides for approvals, questions, thread sharing, MCP OAuth, telemetry, skills, and scheduled prompts live in the docs directory.

License

Apache License 2.0. Chainlit NG is an independent fork of Chainlit; the original authors and contributors retain credit for the code and documentation they wrote.

Metadata

Release files for chainlit-ng 3.0.0a3

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

Source distribution (sdist)

Source distribution for chainlit-ng 3.0.0a3
File Size Uploaded Provenance Actions
chainlit_ng-3.0.0a3.tar.gz 17.7 MB Without provenance Details for chainlit_ng-3.0.0a3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chainlit-ng 3.0.0a3
File Interpreter ABI Platform Actions
chainlit_ng-3.0.0a3-py3-none-any.whl Python 3 none any Details for chainlit_ng-3.0.0a3-py3-none-any.whl

Total release size: 37.7 MB

Release files / chainlit_ng-3.0.0a3.tar.gz

Download URL chainlit_ng-3.0.0a3.tar.gz
Size 17.7 MB
Tags Source
SHA-256 checksum
How to use checksums
dfc5f4d998522f0470f1a27fc321e2c4a42e18fe923e7f580223568ee199ca7e
BLAKE2b-256 checksum
How to use checksums
5c0d1d4a3a81cd825397a16d954d74d6f5f7ad7fd63561ded8d548c4d0ea2501
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / chainlit_ng-3.0.0a3-py3-none-any.whl

Download URL chainlit_ng-3.0.0a3-py3-none-any.whl
Size 20.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7137e90492ccbfc54bc1e6614d3ec7508210dcfd4ed8d81c5da9b5cd4681e97b
BLAKE2b-256 checksum
How to use checksums
99956d533ff7a2d4d24c18ee5bfdff947f35bb931ab485bdf686330cddb95996
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Security for chainlit-ng 3.0.0a3

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