Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active. https://librechat.ai/
Find a file
Danny Avila 50324a0baa
🔐 fix: Skip Reasoning Labels for Encrypted Reasoning (#17100)
* 🔐 fix: Skip Reasoning Labels for Encrypted Reasoning

OpenAI models on Bedrock (and Claude's redacted thinking on Bedrock) return
reasoning as encrypted `redactedContent` bytes. The current agents SDK
base64-encodes those bytes into the reasoning stream, so they arrive as THINK
text: the reasoning-label wiring summarized the blob ("Inspecting an encoded
data snapshot"), activity and phase labels quoted it as reasoning evidence, and
the UI rendered it as thinking.

Add a shared `stripOpaqueReasoning` / `isOpaqueReasoning` predicate in
data-provider that recognizes long unbroken base64/base64url runs (Bedrock
redactedContent, Anthropic redacted_thinking data, OpenAI encrypted_content,
Gemini thought signatures) and keep them out of every label path:

- reasoning labels drop encoded deltas, ignore persisted payloads on resume,
  and re-check the accumulated text before a billed label call
- activity-label and phase-summary evidence carries readable excerpts only;
  phase anchoring still uses the raw excerpt
- the THINK renderer, grouped reasoning rows and the live header show a
  neutral "Reasoning (encrypted)" marker instead of the payload, and ignore
  labels previously generated from it

Readable reasoning on every provider, including readable text mixed with an
encoded payload in the same step, is still labeled.

* fix: Classify streamed and persisted payloads by readable content

- isOpaqueReasoning / stripOpaqueReasoning ignore the persisted `<think>`
  wrapper, so stored encrypted reasoning renders as the encrypted marker and
  never reaches label evidence as tags-only "text"
- add advanceOpaqueReasoning, a streaming cursor that holds a trailing
  payload-alphabet run until it settles as a word or grows into a payload,
  so a payload split across sub-threshold deltas is dropped as it streams
- reasoning labels count only settled readable characters plus a word-sized
  pending tail, so ciphertext fragments never advance the minChars or
  updateChars gates or trigger extra billed label calls

* fix: Show readable reasoning around payloads and settle words before counting

- the reasoning disclosures, grouped rows, live header and conversation
  export render and copy the readable text of a THINK part with encoded
  payloads removed; the encrypted marker stays for parts with nothing readable
- reasoning labels count and send only settled readable text: an undecided
  trailing run never advances minChars/updateChars or reaches the prompt,
  whatever the configured thresholds, and a short final word settles when the
  step closes

* fix: Classify reasoning before every bound and across resume

- once a run is classified as a payload, it continues through the next
  non-payload character even when that arrives in the same delta as readable
  text, so no tail fragment of the payload is released as readable
- add sliceReasoningTail: the activity-phase rolling reasoning window (and its
  snapshot/restore bounds) never starts inside an unbroken run, so a payload cut
  by the window cannot leave a fragment too short to classify; the window stays
  a substring of the raw THINK text, so phase anchoring is unchanged
- a resumed reasoning step replays its persisted text through the stream
  filter and keeps the resulting cursor, so a payload prefix that was still
  undecided at the snapshot is dropped once the continuation classifies it

* fix: Classify phase evidence while it streams and mask payloads while pending

- activity phases classify each reasoning delta with the stream cursor and keep
  a readable rolling window beside the raw anchor window; tracked activities
  carry readableExcerpts as prompt evidence, so a window cut into a payload can
  never forward a fragment (older snapshots fall back to stripping); the
  cursor-free sliceReasoningTail is removed
- add readableReasoning / flushOpaqueReasoning: while reasoning streams, the
  disclosures and live header hold back a trailing run that could still grow
  into a payload instead of showing its first characters
- the message editor offers no field for payload-only reasoning and shows only
  the readable text of mixed reasoning; an unchanged part is never written, so
  its stored payload stays intact

* fix: Replay legacy phase snapshots through the reasoning stream filter

A pending-reasoning lane restored from a snapshot without a readable window
or cursor is replayed through advanceOpaqueReasoning instead of stripped, so a
payload prefix that was still undecided at the snapshot stays in the cursor
and is dropped once the continuation classifies it.

* fix: Drop the cut leading run of a full legacy phase window

A legacy pending-reasoning window that filled the 600-char bound may have been
cut inside a payload, so its leading payload-alphabet run is dropped before the
replay; a shorter window is the whole lane and is replayed as is.

* fix: Keep payload-bearing reasoning read-only and drop payload-derived titles on resume

- reasoning that carries an encoded payload is not offered in the message
  editor: the edit endpoint replaces the whole value and the payload cannot be
  positioned in an edited draft, so editing would silently delete it
- a resumed reasoning step whose persisted text has no readable reasoning
  drops its existing title (which could only describe the payload) instead of
  carrying it forward where a short readable continuation would revive it

* fix: Reset a resumed payload-derived title on the client, only for payload-only steps

- a resumed step drops its title only when its persisted reasoning is entirely
  an encoded payload, so a short readable token (still undecided for the
  stream cursor) keeps a valid title
- dropping it emits a same-step on_reasoning_label reset, which the client
  already applies, so a resumed client clears the snapshot title too
2026-10-16 06:58:09 -04:00
.claude/skills
.devcontainer
.github 🧩 refactor: Route Message Parts Through a @librechat/chat Part Dispatcher and Host (#16976) 2026-10-14 11:10:28 +02:00
.husky 🎨 chore: Enforce Design-System Rules With @shadcn/lint (#15981) 2026-10-01 03:46:16 +00:00
.vscode
api 🔓 fix: Prevent 30-Second OpenID Refresh Stalls After a Discarded Prerender (#17174) 2026-10-15 16:02:28 -07:00
client 🔐 fix: Skip Reasoning Labels for Encrypted Reasoning (#17100) 2026-10-16 06:58:09 -04:00
config 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00
docs 🛂 feat: Audit Resource Sharing Changes and Fail Closed on Reversible Audit Writes (#17053) 2026-10-15 00:30:16 +02:00
e2e 🧲 refactor: Move Pending Quotes and Manual Skills onto Jotai (#17126) 2026-10-15 16:30:03 +02:00
helm 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00
otel/langfuse-fanout 📤 fix(langfuse): support documented media upload types (#16079) 2026-09-19 09:03:32 -04:00
packages 🔐 fix: Skip Reasoning Labels for Encrypted Reasoning (#17100) 2026-10-16 06:58:09 -04:00
redis-config 🚚 chore: Point Repository and Image References at LibreChat-AI (#16005) 2026-09-23 23:08:36 -04:00
scripts 📝 refactor: Move Text-Like Message Parts Into @librechat/chat (#17087) 2026-10-14 18:05:48 +02:00
search
skill
src/tests 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
utils 🚚 chore: Point Repository and Image References at LibreChat-AI (#16005) 2026-09-23 23:08:36 -04:00
.codex 🧴 fix: Strip LangChain URLs From Provider Errors (#15421) 2026-08-31 12:51:34 -04:00
.dockerignore
.env.example 🙈 fix: Mask Emails and Drop Personal Identifiers From Logs (#17048) 2026-10-15 15:54:27 +02:00
.gitattributes
.gitignore 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00
.npmrc ⛔ fix: Bind Tool Approvals to Generation Scope (#15724) 2026-09-08 08:02:48 -04:00
.nvmrc
.prettierignore 🔌 feat: OpenAPI spec and docs for the public Agents API (#15928) 2026-09-16 13:50:05 -04:00
.prettierrc
AGENTS.md 📦 feat: Scaffold the @librechat/chat Package (#16964) 2026-10-10 21:00:10 +02:00
bun.lock 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00
CONTEXT.md 🪂 feat: Opt-In Text Fallback for Files No Tool Can Read (#15940) 2026-09-14 21:02:54 -04:00
deploy-compose.langfuse-fanout.yml
deploy-compose.yml 🚚 chore: Point Repository and Image References at LibreChat-AI (#16005) 2026-09-23 23:08:36 -04:00
docker-compose.langfuse-fanout.yml
docker-compose.override.yml.example 🚚 chore: Point Repository and Image References at LibreChat-AI (#16005) 2026-09-23 23:08:36 -04:00
docker-compose.yml 🚚 chore: Point Repository and Image References at LibreChat-AI (#16005) 2026-09-23 23:08:36 -04:00
Dockerfile 📦 feat: Scaffold the @librechat/chat Package (#16964) 2026-10-10 21:00:10 +02:00
Dockerfile.multi 📦 feat: Scaffold the @librechat/chat Package (#16964) 2026-10-10 21:00:10 +02:00
eslint-suppressions.json 🧽 refactor: Remove Dead Client Components, Providers and Barrels (#17116) 2026-10-15 12:27:00 +02:00
eslint.config.mjs 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00
librechat.example.yaml 🛂 feat: Audit Resource Sharing Changes and Fail Closed on Reversible Audit Writes (#17053) 2026-10-15 00:30:16 +02:00
LICENSE
package-lock.json ⚛️ refactor: Move the Steer Atoms to Jotai in the Chat Package (#17135) 2026-10-15 16:31:06 +02:00
package.json 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00
rag.yml 🚚 chore: Point Repository and Image References at LibreChat-AI (#16005) 2026-09-23 23:08:36 -04:00
README.md 🚀 v0.8.8 (#15735) 2026-09-29 23:55:37 -04:00
README.zh.md 🚚 chore: Point Repository and Image References at LibreChat-AI (#16005) 2026-09-23 23:08:36 -04:00
tool-intent-spec.md
turbo.json 📦 feat: Scaffold the @librechat/chat Package (#16964) 2026-10-10 21:00:10 +02:00
UPGRADING.md 📕 fix: Explain Native Web Search Permission Denials (#16691) 2026-10-02 20:11:20 -04:00

LibreChat

English · 中文

Deploy on Railway Deploy on Zeabur Deploy on Sealos

Translation Progress

🚀 What's New in v0.8.8

  • Agent Management API (beta): Create, discover, update, and delete Agents; manage Agent files and Skills; and authenticate machine clients through deployment-bound OIDC identities while preserving existing role and Agent access controls. Public OpenAPI and Swagger UI cover inference, events, Agent management, and Skill management.
  • Attached workspaces (highly experimental): Select or save a per-Agent default workspace for each managed or personal code worker, then let Agents inspect trees, read and search files, author changes, and run Bash with bounded timeouts. Personal workers support bounded self-service enrollment, readiness status, and per-Agent Git identity.
  • Background tool controls: Optionally cancel ordinary background tools, including attached Bash, while keeping detached Subagent execution independent.
  • Code approval controls: Choose Ask, Allow, or Deny for file writes and command execution where administrators permit it, including a Full access mode for trusted attached environments. File Search and Run Code also honor role grants.
  • Manual context compaction: Start a summarize-only turn before the context window fills while preserving recent conversation content according to the deployment's summarization policy.
  • Context Usage: Inspect dialogue, retained tool traffic, Agent instructions, cache, cost, and runway pressure without double-counting category subsets.
  • Unified attachments: Upload once and let LibreChat route content to the model or extracted text, then provision File Search and Code tools only when needed.
  • Models: Added GPT-6 Astra and GPT-6.1 Sol, with Responses API routing and tool-call support.
  • Agent and chat UI: Unified tool activity, reasoning, search, and Agent workflows; added one draggable Pinned section for chats and favorites, morphing state icons, high-contrast themes, rich-text message copying, clearer sidebar titles, and refined live phase layouts.
  • Observability: Inspect ordered model conversations, tool rounds, and costs in the Trace Viewer; export correlated application logs through OpenTelemetry, configure allowlisted Langfuse trace identity and metadata, tag browser diagnostics with client build IDs, and scope Insights to authorized Agents.
  • Reliability and security: Strengthened Agent continuation and checkpoint recovery, Redis liveness detection, DocumentDB coordination, OpenID and MCP OAuth sessions, shared-link throttling, tenant isolation, attachment bounds, and upload error handling.

Read the full v0.8.8 changelog.

✨ Features

  • 🖥️ UI & Experience inspired by ChatGPT with enhanced design and features

  • 🤖 AI Model Selection:

    • Anthropic (Claude), AWS Bedrock, OpenAI, Azure OpenAI, Google, Vertex AI, OpenAI Responses API (incl. Azure)
    • Custom Endpoints: Use any OpenAI-compatible API with LibreChat, no proxy required
    • Compatible with Local & Remote AI Providers:
      • Ollama, AMD Lemonade, groq, Cohere, Mistral AI, Apple MLX, koboldcpp, together.ai,
      • OpenRouter, Helicone, Perplexity, ShuttleAI, Deepseek, Qwen, and more
  • 🔧 Code Interpreter API:

    • Secure, Sandboxed Execution in Python, Node.js (JS/TS), Go, C/C++, Java, PHP, Rust, and Fortran
    • Seamless File Handling: Upload, process, and download files directly
    • No Privacy Concerns: Fully isolated and secure execution
    • Open-Source & Self-Hostable: powered by ClickHouse/code-interpreter
  • 🔦 Agents & Tools Integration:

    • LibreChat Agents:
      • No-Code Custom Assistants: Build specialized, AI-driven helpers
      • Agent Marketplace: Discover and deploy community-built agents
      • Collaborative Sharing: Share agents with specific users and groups
      • Flexible & Extensible: Use MCP Servers, tools, file search, code execution, and more
      • Skills: Create reusable SKILL.md instruction bundles for manual, automatic, or always-on agent workflows
      • Agent Plugins: Experimentally bundle deployment Skills and MCP servers into startup-loaded packages
      • Subagents: Delegate focused work to isolated child agent runs with their own context windows
      • Agent Management API: Automate Agent, file, and Skill management with deployment-bound OIDC clients
      • Attached Code Workspaces: Let Agents inspect, search, edit, and run commands in managed or personal workspaces (highly experimental)
      • Compatible with Custom Endpoints, OpenAI, Azure, Anthropic, AWS Bedrock, Google, Vertex AI, Responses API, and more
      • Model Context Protocol (MCP) Support for Tools
  • 🔍 Web Search:

    • Search the internet and retrieve relevant information to enhance your AI context
    • Combines search providers, content scrapers, and result rerankers for optimal results
    • Customizable Jina Reranking: Configure custom Jina API URLs for reranking services
    • Learn More →
  • 🪄 Generative UI with Code Artifacts:

    • Code Artifacts create React, HTML, and Mermaid content directly in chat
    • Open previews fullscreen and export Mermaid diagrams as SVG or PNG
  • 🎨 Image Generation & Editing

  • 💾 Presets & Context Management:

    • Create, Save, & Share Custom Presets
    • Switch between AI Endpoints and Presets mid-chat
    • Edit, Resubmit, and Continue Messages with Conversation branching
    • Create and share prompts with specific users and groups
    • Fork Messages & Conversations for Advanced Context control
    • Compact long conversations on demand while preserving recent context
  • 💬 Multimodal & File Interactions:

    • Upload and analyze images with Claude 3, GPT-4.5, GPT-4o, o1, Llama-Vision, and Gemini 📸
    • Chat with Files using Custom Endpoints, OpenAI, Azure, Anthropic, AWS Bedrock, & Google 🗃️
    • Copy messages as formatted rich text for documents, email, and collaboration apps
  • 🌎 Multilingual UI:

    • English, 中文 (简体), 中文 (繁體), العربية, Deutsch, Español, Français, Italiano
    • Polski, Português (PT), Português (BR), Русский, 日本語, Svenska, 한국어, Tiếng Việt
    • Türkçe, Nederlands, עברית, Català, Čeština, Dansk, Eesti, فارسی
    • Suomi, Magyar, Հայերեն, Bahasa Indonesia, ქართული, Latviešu, ไทย, ئۇيغۇرچە
  • 🧠 Reasoning UI:

    • Dynamic Reasoning UI for Chain-of-Thought/Reasoning AI models like DeepSeek-R1
  • 🎨 Customizable Interface:

    • Customizable Dropdown & Interface that adapts to both power users and newcomers
    • Light, dark, system, and high-contrast appearance modes
  • 📈 Observability:

    • Export traces and logs with OpenTelemetry and connect Langfuse for Agent and model insights
  • 🌊 Resumable Streams:

    • Never lose a response: AI responses automatically reconnect and resume if your connection drops
    • Multi-Tab & Multi-Device Sync: Open the same chat in multiple tabs or pick up on another device
    • Production-Ready: Works from single-server setups to horizontally scaled deployments with Redis
  • 🗣️ Speech & Audio:

    • Chat hands-free with Speech-to-Text and Text-to-Speech
    • Automatically send and play Audio
    • Supports OpenAI, Azure OpenAI, and Elevenlabs
  • 📥 Import & Export Conversations:

    • Import Conversations from LibreChat, ChatGPT, Chatbot UI
    • Export conversations as screenshots, markdown, text, json
  • 🔍 Search & Discovery:

    • Search all messages/conversations
  • 👥 Multi-User & Secure Access:

    • Multi-User, Secure Authentication with OAuth2, LDAP, & Email Login Support
    • Built-in Moderation, and Token spend tools
  • 🎛️ Admin Panel:

    • Browser-based UI to manage users, groups, roles, and configuration overrides
    • Edit settings and per-role/group permissions live, without redeploying
    • Bundled with the Docker Compose stacks for one-command setup
  • ⚙️ Configuration & Deployment:

    • Configure Proxy, Reverse Proxy, Docker, & many Deployment options
    • Use S3 with CloudFront for stable media links, edge delivery, signed cookies, and secured downloads
    • Use completely local or deploy on the cloud
  • 📖 Open-Source & Community:

    • Completely Open-Source & Built in Public
    • Community-driven development, support, and feedback

For a thorough review of our features, see our docs here 📚

🪶 All-In-One AI Conversations with LibreChat

LibreChat is a self-hosted AI chat platform that unifies all major AI providers in a single, privacy-focused interface.

Beyond chat, LibreChat provides AI Agents, Model Context Protocol (MCP) support, Artifacts, Code Interpreter, custom actions, conversation search, and enterprise-ready multi-user authentication.

Open source, actively developed, and built for anyone who values control over their AI infrastructure.


🌐 Resources

GitHub Repo:

Other:


📝 Changelog

Keep up with the latest updates by visiting the releases page and notes:

⚠️ Please consult the changelog for breaking changes before updating.


⭐ Star History

Star History Chart

LibreChat-AI%2FLibreChat | Trendshift ROSS Index - Fastest Growing Open-Source Startups in Q1 2024 | Runa Capital


✨ Contributions

Contributions, suggestions, bug reports and fixes are welcome!

For new features, components, or extensions, please open an issue and discuss before sending a PR.

If you'd like to help translate LibreChat into your language, we'd love your contribution! Improving our translations not only makes LibreChat more accessible to users around the world but also enhances the overall user experience. Please check out our Translation Guide.


💖 This project exists in its current state thanks to all the people who contribute


🎉 Special Thanks

We thank Locize for their translation management tools that support multiple languages in LibreChat.

Locize Logo