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.0a4

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.0a4
File Size Uploaded Provenance Actions
chainlit_ng-3.0.0a4.tar.gz 17.7 MB Without provenance Details for chainlit_ng-3.0.0a4.tar.gz

Built distribution (wheel)

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

Total release size: 37.7 MB

Release files / chainlit_ng-3.0.0a4.tar.gz

Download URL chainlit_ng-3.0.0a4.tar.gz
Size 17.7 MB
Tags Source
SHA-256 checksum
How to use checksums
a66202e3a0a457917718828d442080f78199408c2d4e448a0323526ebe54bb89
BLAKE2b-256 checksum
How to use checksums
587a8383aa97f96976ab3bc2feb5d05f74a076ad76d9239b4c7d1da540b8f61c
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.0a4-py3-none-any.whl

Download URL chainlit_ng-3.0.0a4-py3-none-any.whl
Size 20.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4e9a6fc0f50becb13aaf54c5d531714c9c60def147f39f290dc0620e209b4e1f
BLAKE2b-256 checksum
How to use checksums
31ed00216f761fbca27d77496be0969cccf849efa652a1c239c6b6062a9b8d80
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.0a4

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