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

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

Built distribution (wheel)

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

Total release size: 37.7 MB

Release files / chainlit_ng-3.0.0a1.tar.gz

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

Download URL chainlit_ng-3.0.0a1-py3-none-any.whl
Size 20.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2f9a1037292d395757b01cf3c1ae4f022bee6fbf7e46cc6ee86f0933823c0baf
BLAKE2b-256 checksum
How to use checksums
fa923fd1291f8785c2ff3de0512cd1aa8cff29d8806bb7d82ab7363b2a8ec497
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.0a1

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