本地安装指南
这是我们 本地安装指南 的精简版本。
第 1 步:下载项目
手动下载
-
前往项目页面:访问 https://github.com/danny-avila/LibreChat。
-
下载 ZIP 文件:点击绿色的 "Code" 按钮,然后点击 "Download ZIP"。
-
解压 ZIP 文件:找到下载的 ZIP 文件,右键点击,然后选择“全部解压...”。
使用 Git
在您的终端中,从所需的父目录运行以下 git 命令:
第 2 步:安装 Docker
- 下载: 前往 Docker Desktop 下载页面 并下载 Docker Desktop。
- 安装: 打开安装程序并按照说明进行操作。
- 运行: 打开 Docker Desktop 以确保其正在运行。
注意:
- 对于大多数用户,推荐使用 Docker Desktop。如果您正在寻找高级 docker/容器设置,特别是针对远程服务器安装,请参阅我们的 Ubuntu Docker Deployment Guide。
- 安装后您可能需要重启计算机。
第 3 步:运行应用
-
导航至项目目录
-
创建并配置 .env 文件:
- 将
.env.example的内容复制到一个名为.env的新文件中。 - 填写任何必要的值。
- 有关深入的环境配置,请参阅 .env File Configuration Guide。
- 将
-
启动应用程序:
- 运行以下命令:
结论
就是这样! 你现在应该已经在本地机器上运行了 LibreChat。尽情享受吧!
Additional Links
Explore more about LibreChat and how to configure it to your needs.
- Updating LibreChat
- Instructions on how to update this setup with the latest changes to LibreChat.
- Configuring AI Providers
- Configure OpenAI, Google, Anthropic, and OpenAI Assistants
- Configuring a Custom Endpoint
- Configure services such as Deepseek, OpenRouter, Ollama, Mistral AI, Databricks, groq, and others.
- Click here for a list of known, compatible services.
- Environment Configuration
- Read for a comprehensive look at the
.envfile.
- Read for a comprehensive look at the
- librechat.yaml File Configuration
- Configure custom rate limiters, file outputs, and much more with the
librechat.yamlfile.
- Configure custom rate limiters, file outputs, and much more with the
- Ubuntu Docker Deployment Guide
- Read for advanced Docker setup on a remote/headless server.
- Setup the Azure OpenAI endpoint
- Configure multiple Azure regions and deployments for seamless use with LibreChat.
这篇指南怎么样?