Skip to main content
Connect LibreChat to Requesty and your team gets every Requesty model in one self-hosted chat UI. Requesty adds cost tracking per user, routing policies, approved-model lists and spend limits on top. Tested with LibreChat v0.8.9 (config version 1.3.19) running in Docker.

1. Install LibreChat

Open http://localhost:3080 and sign up. The first account becomes the admin.
The docker-compose.yml at v0.8.9 pulls the librechat-dev:latest image. To run the release you checked out, pin the image in the override file (step 3).

2. Create a Requesty API key

Go to API Keys, click Create key, pick a group, name it (for example librechat-team) and click Create API Key. Copy the key.

3. Configure LibreChat

Add these lines to the end of .env:
ENDPOINTS=custom hides LibreChat’s built-in OpenAI, Anthropic and Google endpoints, so every request goes through Requesty. Create librechat.yaml next to docker-compose.yml:
librechat.yaml
Create docker-compose.override.yml to mount the config and pin the release image:
docker-compose.override.yml
Restart and check that the config loaded:
For EU data residency, use https://router.eu.requesty.ai/v1 as the baseURL.

4. Pick a model and chat

Open the model selector and choose Requesty. With fetch: true, LibreChat loads the full model list from Requesty, including your routing policies (policy/...). Search by name, for example claude, gpt or gemini.
Requesty model list in the LibreChat model selector
Each message, and the conversation title generated by titleModel, shows up in Logs with model, tokens, cost and latency.

5. Track usage per user

Add headers to the Requesty endpoint in librechat.yaml:
librechat.yaml
Then restart the API with docker compose restart api.
  • X-Requesty-User sends the signed-in LibreChat user’s email with every request. In Analytics, choose Group → Extra: User to see requests and spend per person.
  • X-Title names the app. Choose Group → Origin Title to see all LibreChat traffic in one row.
  • Requests also show the user in the log’s Metadata panel.
Requesty Analytics grouped by LibreChat user
Requests sent before you add the header appear as (empty) when you group by user.

6. Add presets and Auto routing

Model specs give users a short list of presets instead of hundreds of model IDs. Create an Auto routing policy first, for example librechat-auto, with a classifier that sends simple chat to Haiku, writing to Sonnet and multi-step reasoning to Opus. Then add the specs to librechat.yaml:
librechat.yaml
Restart the API. The model selector now opens on the presets.
Everyday, Deep work and Auto presets in LibreChat
With Auto, every message makes one cheap classifier call, then goes to the routed model. In our test, “What’s the capital of Portugal?” went to claude-haiku-5-5 at $0.00, and a request to compare retainer pricing models went to claude-opus-5-5. Filter Logs by the policy to see where each message went.
When modelSpecs is set, LibreChat hides the endpoint list. Keep addedEndpoints: ["Requesty"] if users should still be able to pick any model next to the presets.

7. Limit which models users see

Create an access list under Admin Panel → Access lists → Create access list and add the models you approve. To attach it, select the key on the API Keys page and choose Access list in the bar that appears. After docker compose restart api, LibreChat’s Requesty list only shows the approved models plus your routing policies. A request for any other model is rejected with:
If an access list is attached to the key, an Auto policy skips its classifier and sends every message to the fallback model. Use Auto on keys without an access list.

8. Set a spend limit

Open the key on the API Keys page. Under Settings → Monthly limit, click the pencil, enter an amount in USD and click Save. The key page shows usage against the limit, for example $0.23 of $50.00. When a key reaches its limit, LibreChat shows the error in the chat:
LibreChat showing the Requesty monthly spend limit error
Usage is counted after each response finishes, so a request that starts just under the limit can still go through and take the key over it. LibreChat retries before it shows the error, so the message can take over a minute to appear.

Hosted config

requestyai/librechat-requesty has a ready-made config you can load with CONFIG_PATH. It uses a static model list in an older config version, and many of its model IDs are no longer available. Use the librechat.yaml above, with fetch: true, to get current models.

Resources

Last modified on November 24, 2026