Cost tracking, observability, and more for LibreChat
Create Virtual Key
Create Default Config
Configure Portkey API Key
Step 2
docker-compose-override.yaml
file
Create this file following the instructions here.
This file will point to the librechat.yaml
file where we will configure our Portkey settings (in Step 3).
.env
file
Edit your existing .env
file at the project root (if the file does not exist, copy the .env.example
file and rename to .env
). We will add:
librechat.yaml
file
Edit this file following the instructions here.
Here, you can either pass your Config (containing provider/model configurations) or direct provider Virtual key saved on Portkey.
Step 1: Implement Budget Controls & Rate Limits
Step 2: Define Model Access Rules
Step 3: Implement Access Controls
Step 4: Deploy & Monitor
virtual key
in your default config
object.
How do I update my Virtual Key limits after creation?
Can I use multiple LLM providers with the same API key?
How do I track costs for different teams?
What happens if a team exceeds their budget limit?