Skip to content

LibreChat clone with enhanced Ollama LLM support for doc ingestion and chat with open source models

License

Notifications You must be signed in to change notification settings

loulibre/librechat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

✨ Get original here: LibreChat

Getting Started

πŸš€ Quick Start Guide for MacOS

Prerequisites

Step-by-Step Setup

  1. Clone the Repository

    git clone https://github.com/danny-avila/LibreChat.git
    cd LibreChat
  2. Create Configuration Files

    • Create librechat.yaml in the root directory:
    endpoints:
      ollama:
        baseURL: http://host.docker.internal:11434
        models:
          - llama2
          - codellama
          - mistral
          - mixtral
          # Add other models you've pulled in Ollama
          # IMPORTANT: The model names here must match the tags used when pulling models in Ollama
          # For example: if you run 'ollama pull llama2:13b', use 'llama2:13b' here
          # See your available models with 'ollama list'
    • Create docker-compose.override.yml:
    services:
      api:
        environment:
          - OLLAMA_PROXY=true

    πŸ“š Documentation Links

  3. Start Docker Services

    docker compose up --build
  4. Access LibreChat

    • Open http://localhost:3080 in your browser
    • Create an account and log in
    • Select "Ollama" from the model dropdown
    • Start chatting with your local LLMs!

Troubleshooting

  • If models aren't visible in LibreChat, ensure Ollama is running and models are pulled:
    ollama list
    ollama pull mistral  # or any other model you want to use
  • Check Docker logs if you encounter issues:
    docker compose logs -f

✨ Features of this clone

Project Structure

πŸ“ .cursor/rules/ - AI Coding Rules

.cursor/rules/
β”œβ”€β”€ frontend.mdc .............. Frontend development rules and patterns
└── backend.mdc ............... Backend development and API guidelines
πŸ“ LibreChat
β”œβ”€β”€ πŸ“ [API] api/ ........................... Backend API and server-side code
β”œβ”€β”€ πŸ“ [Frontend] client/ ................... Frontend React application
β”‚   β”œβ”€β”€ πŸ“ public/ ......................... Static assets and files
β”‚   └── πŸ“ src/ ............................ Source code for the React app
β”œβ”€β”€ πŸ“ [Config] config/ .................... Configuration files and settings
β”œβ”€β”€ πŸ“ [Modules] packages/ ................. Shared packages and modules
β”œβ”€β”€ πŸ“ [Testing] e2e/ ...................... End-to-end testing files
β”œβ”€β”€ πŸ“ [Helpers] utils/ .................... Utility functions and helper code
β”œβ”€β”€ πŸ“ [IDE] .cursor/ ...................... Cursor IDE configuration
β”‚   └── πŸ“ rules/ .......................... AI coding rules and settings
β”œβ”€β”€ πŸ“ [Python] .venv/ ..................... Python virtual environment
└── πŸ“ [K8s] charts/ ...................... Kubernetes Helm charts
  • πŸ–₯️ Modified logo and UI for use in LibreDash project

  • πŸ€– AI Model Selection:

    • Anthropic (Claude), AWS Bedrock, OpenAI, Azure OpenAI, Google, Vertex AI, OpenAI Assistants API (incl. Azure)
    • Custom Endpoints: Use any OpenAI-compatible API with LibreChat, no proxy required
    • Compatible with Local & Remote AI Providers:
      • Ollama, groq, Cohere, Mistral AI, Apple MLX, koboldcpp, together.ai,
      • OpenRouter, 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
  • πŸ”¦ Agents & Tools Integration:

    • LibreChat Agents:
      • No-Code Custom Assistants: Build specialized, AI-driven helpers without coding
      • Flexible & Extensible: Attach tools like DALL-E-3, file search, code execution, and more
      • Compatible with Custom Endpoints, OpenAI, Azure, Anthropic, AWS Bedrock, and more
      • Model Context Protocol (MCP) Support for Tools
    • Use LibreChat Agents and OpenAI Assistants with Files, Code Interpreter, Tools, and API Actions
  • πŸͺ„ Generative UI with Code Artifacts:

    • Code Artifacts allow creation of React, HTML, and Mermaid diagrams directly in chat
  • πŸ’Ύ Presets & Context Management:

    • Create, Save, & Share Custom Presets
    • Switch between AI Endpoints and Presets mid-chat
    • Edit, Resubmit, and Continue Messages with Conversation branching
    • Fork Messages & Conversations for Advanced Context control
  • πŸ’¬ 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 πŸ—ƒοΈ
  • 🌎 Multilingual UI:

    • English, δΈ­ζ–‡, Deutsch, EspaΓ±ol, FranΓ§ais, Italiano, Polski, PortuguΓͺs Brasileiro
    • Русский, ζ—₯本θͺž, Svenska, ν•œκ΅­μ–΄, TiαΊΏng Việt, 繁體中文, Ψ§Ω„ΨΉΨ±Ψ¨ΩŠΨ©, TΓΌrkΓ§e, Nederlands, Χ’Χ‘Χ¨Χ™Χͺ
  • 🧠 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
  • πŸ—£οΈ 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
  • βš™οΈ Configuration & Deployment:

    • Configure Proxy, Reverse Proxy, Docker, & many Deployment options
    • 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 brings together the future of assistant AIs with the revolutionary technology of OpenAI's ChatGPT. Celebrating the original styling, LibreChat gives you the ability to integrate multiple AI models. It also integrates and enhances original client features such as conversation and message search, prompt templates and plugins.

With LibreChat, you no longer need to opt for ChatGPT Plus and can instead use free or pay-per-call APIs. We welcome contributions, cloning, and forking to enhance the capabilities of this advanced chatbot platform.

Watch the video

Click on the thumbnail to open the video☝️


🌐 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

danny-avila%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 LibreChat team. Also Locize for their translation management tools that support multiple languages in LibreChat.

Locize Logo

About

LibreChat clone with enhanced Ollama LLM support for doc ingestion and chat with open source models

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published