This repository provides YAML configuration files for LibreChat, enabling flexible and efficient configuration management.
librechat-env.yaml
- Uses.env
variables with the API key hardcoded in the.env
file, making it suitable for single-user usage.librechat-user-provided.yaml
– Allows users to manually input the API key via the LibreChat front end, suitable for multi-user environments.
-
Select a configuration file
Choose eitherlibrechat-env.yaml
orlibrechat-user-provided.yaml
. -
Obtain the RAW URL
Copy the RAW URL of the chosen file (see RAW URLs). -
Edit your
.env
file
Locate your project’s.env
file and open it for editing. -
Update the CONFIG_PATH
Uncomment theCONFIG_PATH
line and replace<RAW_URL_GOES_HERE>
with the copied URL:#===============# # Configuration # #===============# # Use an absolute path, a relative path, or a URL CONFIG_PATH=<RAW_URL_GOES_HERE>
-
Configure your environment keys (For
librechat-env.yaml
only) Replace<ENV_GOES_HERE>
with the provided .env configuration values:#===================================# # Known Endpoints - librechat.yaml # #===================================# # See: https://www.librechat.ai/docs/configurationlibrechat_yamlai_endpoints <ENV_GOES_HERE>
- Create a file named
librechat.yaml
at the project root (if it doesn’t exist already). - Copy and paste the entire content of one of the YAML configuration files into it.
- Modify the configuration as needed.
-
librechat-env.yaml
https://raw.githubusercontent.com/febryanvaldo/LibreChat/refs/heads/main/librechat-env.yaml
-
librechat-user-provided.yaml
https://raw.githubusercontent.com/febryanvaldo/LibreChat/refs/heads/main/librechat-user-provided.yaml
COHERE_KEY=Your_API_Key_Here
DEEPSEEK_KEY=Your_API_Key_Here
MISTRALAI_KEY=Your_API_Key_Here
PERPLEXITY_KEY=Your_API_Key_Here
XAI_KEY=Your_API_Key_Here
CEREBRAS_KEY=Your_API_Key_Here
GROQ_KEY=Your_API_Key_Here
SAMBANOVA_KEY=Your_API_Key_Here
CHUTES_KEY=Your_API_Key_Here
DEEPINFRA_KEY=Your_API_Key_Here
FIREWORKSAI_KEY=Your_API_Key_Here
FRIENDLIAI_KEY=Your_API_Key_Here
HYPERBOLIC_KEY=Your_API_Key_Here
KLUSTERAI_KEY=Your_API_Key_Here
NEBIUS_KEY=Your_API_Key_Here
NOVITAAI_KEY=Your_API_Key_Here
SHUTTLEAI_KEY=Your_API_Key_Here
TARGON_KEY=Your_API_Key_Here
TOGETHERAI_KEY=Your_API_Key_Here
APIPIE_KEY=Your_API_Key_Here
NANOGPT_KEY=Your_API_Key_Here
OPENROUTER_KEY=Your_API_Key_Here
REQUESTY_KEY=Your_API_Key_Here
I strive to update the configuration on a daily basis. Stay tuned for new changes and improvements.
To validate and format your YAML configuration files, you can use these online tools:
For detailed documentation on LibreChat configuration, please see the LibreChat Custom Config Documentation.