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

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

Built distribution (wheel)

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

Total release size: 18.0 MB

Release files / chainlit_ng-3.0.0a5.tar.gz

Download URL chainlit_ng-3.0.0a5.tar.gz
Size 8.7 MB
Tags Source
SHA-256 checksum
How to use checksums
da8700de52c226b5bb88977653e00e29d5baab9c83cb1f5b873f1462ec937857
BLAKE2b-256 checksum
How to use checksums
5d4dff8191a595d18ca38cb2aa7ce9205b4a25c863018de60a7a07c03595f759
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.0a5-py3-none-any.whl

Download URL chainlit_ng-3.0.0a5-py3-none-any.whl
Size 9.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f1a6186fe99d445cc1a1d7a34159a38fc44ba2a6592d89577745373ce70b0386
BLAKE2b-256 checksum
How to use checksums
cbc7c25442984e69a1b4be40bde015c2c6487735131b05fc911939666b383ef5
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.0a5

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