Set it up
You need a Nerdly key (it starts with sk-nerd-): sign in on the API page to get one, and add credit in Billing.
- Put the key in .env next to docker-compose.yml.text1
NERDLY_API_KEY=sk-nerd-… - Add the endpoint to librechat.yaml in the project root.yaml1
version: 1.3.182cache: true3endpoints:4custom:5- name: 'Nerdly'6apiKey: '${NERDLY_API_KEY}'7baseURL: 'https://api.nerdly.us/v1'8models:9default:10- 'deepseek-v4-flash-0731'11fetch: false12titleConvo: true13titleModel: 'deepseek-v4-flash-0731'14modelDisplayLabel: 'Nerdly' - Mount the file in docker-compose.override.yml.yaml1
services:2api:3volumes:4- type: bind5source: ./librechat.yaml6target: /app/librechat.yaml - Restart LibreChat; the endpoint appears in the selector under its name.shell1
docker compose down && docker compose up -d
The examples use deepseek-v4-flash-0731, the most used coding model on Nerdly today; put any id from the models page in its place.
Which model to pick
- Qwen4 35B A3B Uncensored (
qwen4-35b-a3b-uncensored): $0.48 in, $2.40 out per million tokens, 1M context, about 1.4¢ an agent step. - Ergo Uncensored (
ergo-uncensored): $4.40 in, $13.32 out per million tokens, 1M context, about $0.11 an agent step. - GLM-5.3 Abliterated (
glm-5.3-abliterated): $2.33 in, $4.66 out per million tokens, 131K context, about 5.6¢ an agent step. - DeepSeek V4 Flash 0731 (
deepseek-v4-flash-0731): $0.08 in, $0.12 out per million tokens, 1M context, about 0.19¢ an agent step. - DeepSeek V4.1 Flash 1017 (
deepseek-v4.1-flash-1017): $0.25 in, $1.20 out per million tokens, 1M context, about 0.74¢ an agent step. - Claude Opus 5.5 (
claude-opus-5-5): $2.80 in, $10 out per million tokens, 1M context, about 7.6¢ an agent step.
What a session costs
50 chat turns (about 2,000 tokens in and 500 out each) on DeepSeek V4 Flash 0731 cost about 1.1¢, paid from your balance. Every request LibreChat sends is priced by its tokens at the model’s rate; a cheaper model costs less, a larger one more.
Things that trip people up
- baseURL keeps the /v1: LibreChat appends /chat/completions itself, so directEndpoint stays unset.
- fetch: true loads every model on the key into the picker; keep it false and list ids under models.default.
- The variable name in .env must match the one in apiKey, or every request answers 401.
- apiKey: user_provided makes each user enter their own key; with an env-var reference every user shares one key and its limits.
- If the endpoint is missing from the selector, the file is not mounted or the YAML did not parse; the container log after docker compose up names the line.
LibreChat’s own documentation: www.librechat.ai/docs/configuration/librechat_yaml/object_structure/custom_endpoint.
More guides
Questions.
Something else? Email hello@nerdly.us
Run LibreChat on any model.
Get a key, add credit from $10, and point the tool at Nerdly.
Get a key