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

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

Built distribution (wheel)

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

Total release size: 37.7 MB

Release files / chainlit_ng-3.0.0a2.tar.gz

Download URL chainlit_ng-3.0.0a2.tar.gz
Size 17.7 MB
Tags Source
SHA-256 checksum
How to use checksums
9b7dcbdc8aeb07a1000fd67c1ee137b8675a52389adc91733cf5cd0f4bbb5f5d
BLAKE2b-256 checksum
How to use checksums
2c422cfa447fd794ffdb9111671a57167f1a861a046844d24342b643dd81cf9c
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.0a2-py3-none-any.whl

Download URL chainlit_ng-3.0.0a2-py3-none-any.whl
Size 20.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8794ab1fed02fe19a904326935e7640d0eb15fbad48c2da44fcd5ad30f3cc55d
BLAKE2b-256 checksum
How to use checksums
9cf7ca14049a20726d5572cee8d8b9cc78ee34f3f3a0f7ef49f268dd1166f659
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.0a2

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