LibreChat with a custom endpoint in librechat.yaml
Add this entry under endpoints.custom in librechat.yaml, set AIGROW_API_KEY in LibreChat’s .env, and restart LibreChat.
Already have a code? Redeem it on API access, then create a key.
librechat.yaml
endpoints:
custom:
- name: 'AIGROW'
apiKey: '${AIGROW_API_KEY}'
baseURL: 'https://aigrow.gg/v1'
models:
default: ['claude-opus-5.5', 'grok-4.7', 'gpt-6.1-sol']
fetch: true
titleConvo: true
titleModel: 'claude-sonnet-5.5'
modelDisplayLabel: 'AIGROW'
What the film says
- Paying list price for Claude?
- Claude Opus 5.5, Claude Fable 5.2, GPT-6 Astra, Gemini 4 Argon and Grok 4.7, +4 more models
- $1.60 instead of $4.00. Per million input tokens on Claude Opus 5.5.
- 9 of 9 models on sale pass the check against the same model at its maker. The results and the script are public: aigrow.gg/ai-api/genuine-models
- API credit$100 of API credit for $25. Start today.
Where the setting lives
- Custom endpoint config
librechat.yaml- Server environment file
.env
Or use LibreChat’s native Anthropic client
Setting provider to anthropic switches the custom endpoint to /v1/messages with baseURL https://aigrow.gg (no /v1) and fetch: false.
endpoints:
custom:
- name: 'AIGROW-Claude'
provider: 'anthropic'
apiKey: '${AIGROW_API_KEY}'
baseURL: 'https://aigrow.gg'
headers:
anthropic-version: '2023-06-01'
models:
default: ['claude-opus-5.5', 'claude-sonnet-5.5', 'claude-fable-5.2']
fetch: false
titleConvo: true
titleModel: 'claude-sonnet-5.5'
modelDisplayLabel: 'AIGROW Claude'Which model to use
Put the id in exactly as it is written here.
- Claude Opus 5.5
claude-opus-5.5 - The default in every block on this page and a good main model for agent work. Context: 1,000,000 tokens.
- Grok 4.7
grok-4.7 - For a Grok model. It costs less than Opus per token sent and per token received. Context: 500,000 tokens.
- GPT-6.1 Sol
gpt-6.1-sol - For a GPT model. It costs less than Opus per token sent and per token received. Context: 1,050,000 tokens.
- Claude Fable 5.2
claude-fable-5.2 - Costs more per token than Opus. Compare the two on the coding leaderboard before you switch. Context: 1,000,000 tokens.
The price list has every id and its credit rate, Claude API pricing has the list prices, and the coding leaderboard compares the models on coding prompts.
Check that it works
First the key on its own, then LibreChat with it.
The key
Ask for the model list. It needs a valid key and costs nothing.
curl https://aigrow.gg/v1/models -H "Authorization: Bearer ag_your_key_here"{
"object": "list",
"data": [
{ "id": "claude-opus-5.5", "object": "model", ... },
{ "id": "claude-fable-5.2", "object": "model", ... },
{ "id": "claude-fable-5.1", "object": "model", ... },
{ "id": "gpt-6.2-astra", "object": "model", ... },
{ "id": "gpt-6-astra", "object": "model", ... },
{ "id": "claude-sonnet-5.5", "object": "model", ... },
{ "id": "claude-haiku-5.5", "object": "model", ... },
{ "id": "gpt-6.2-sol", "object": "model", ... },
{ "id": "gpt-6.1-sol", "object": "model", ... },
{ "id": "gpt-6.1-terra", "object": "model", ... },
{ "id": "gpt-6-luna", "object": "model", ... },
{ "id": "grok-4.7", "object": "model", ... },
{ "id": "gemini-4-argon", "object": "model", ... },
{ "id": "qwen3.8-max", "object": "model", ... },
{ "id": "kimi-k3.1-pro", "object": "model", ... },
{ "id": "gemini-4-hydrogen", "object": "model", ... },
{ "id": "gemini-4-neon", "object": "model", ... },
{ "id": "gemini-3.8-flash", "object": "model", ... },
...
],
"has_more": false
}LibreChat
Restart LibreChat after editing librechat.yaml, pick AIGROW in the Endpoints Selector and send this prompt.
Reply with the word readyreadyWhen it fails
The LibreChat errors first, then the answers the endpoint gives any tool.
- 404 on provider: anthropic
- baseURL ends in /v1. LibreChat’s native anthropic custom provider expects the API root (https://aigrow.gg), whereas standard OpenAI-compatible entries expect https://aigrow.gg/v1.
- Model list is empty on provider: anthropic with fetch: true
- LibreChat documents that models.fetch is not used when provider is anthropic; list your model ids explicitly in models.default and set fetch: false.
- My tool says 401 or authentication error
- The key is missing or mistyped. Copy it again from API access on the dashboard, and make sure it is sent as the key, not as a model name. A revoked key fails the same way: create a new one and swap it in.
- I get 402 or a message about credit
- Your balance is empty. Open API access on the dashboard, redeem a code or buy another pack, and the next request goes through. Nothing else needs to change.
- It says 404 or Unknown model
- The model has to be one the endpoint serves, for example claude-opus-5.5. The provider’s own spellings work too (claude-opus-5-5, anthropic/claude-opus-5.5), but a dated id or any model outside the catalogue is rejected before the request is forwarded, and nothing is billed. Request GET /v1/models with your key for the live list, or read the ids on the price list.
- Requests are rejected with 429
- The endpoint asked you to slow down. Each 429 carries a retry-after header, and the OpenAI and Anthropic SDKs wait that long and retry on their own. In a loop of your own, wait the seconds it names or send fewer requests at once. A refused request is not billed.
- The model is unavailable right now
- A 404 that says the model is not available right now means that model is briefly unavailable. Your key and balance are fine. Retry in a moment or send the request to another model.
- I get a 503
- A temporary error, and it is never charged to your balance. Retry the request; if it keeps failing, reach us through the store and we will look into it. When the error says the answer took too long to complete, the whole answer ran past the time limit: for long answers, send the request with "stream": true. On Claude in the Anthropic format, an answer still unfinished 240 seconds after the request ends with this error.
What does not work through AIGROW
Live web search inside the model. On /v1/chat/completions and /v1/messages, a web search tool sent with a request is answered from what the model already knows, with no live results, and /v1/responses refuses it. A tool that fetches pages on your own machine still works.
Any endpoint past /v1/messages, /v1/chat/completions, /v1/responses, /v1/images, /v1/videos and /v1/models: embeddings, audio and token counting answer 404. The Responses API at /v1/responses serves the GPT models only, without hosted tools or stored conversations.
Images: /v1/images/generations and /v1/images/edits take gpt-image-2.6-flare only, one image per request, at 1024x1024, 1024x1536, 1536x1024 or auto, and answer with base64 in b64_json. response_format, n above 1, another size, streaming, or any field beyond model, prompt, n, size, quality, background, output_format, output_compression, moderation and user (and input_fidelity on an edit) answers 400. A client’s own image feature is untested here.
Router fields such as models, route, provider and plugins. They are dropped, so a request always goes to the one model it names.
What a month of LibreChat costs
LibreChat is billed per token at the credit rates in the price list. An agent sends the whole conversation again with each step, so a long task costs more than its last message suggests; the activity log on API access shows what each request cost.
Cap what LibreChat can spend
Questions about LibreChat and a custom API
- Can each LibreChat user enter their own AIGROW key in the UI?
- Yes. Set apiKey: "user_provided" instead of "${AIGROW_API_KEY}" in librechat.yaml, and LibreChat prompts each user for their own key in the web app.
- Why set titleModel to claude-sonnet-5.5?
- LibreChat sends a background request to titleModel when titleConvo is true, so picking a lower-cost catalogue model avoids 404s on an unserved default and lowers title cost.
- Can I limit what LibreChat spends?
- Yes. Give LibreChat its own key on API access and set a monthly cap on it. Once the key has spent its cap in a calendar month (UTC), its requests get a 402 error until the 1st of the next month, and your other keys keep working.
Sources: LibreChat Custom Endpoint Object Structure (librechat.yaml, endpoints.custom, name, provider, apiKey, user_provided, baseURL, headers, models.default, models.fetch, titleConvo, titleModel, modelDisplayLabel). Read 18 November 2026.
Set up another tool
- Open WebUIOpenAI protocol
Add Connection under Manage OpenAI API Connections, or OPENAI_API_BASE_URL.
- LobeChatAnthropic and OpenAI protocols
OPENAI_PROXY_URL and OPENAI_API_KEY (or ANTHROPIC_PROXY_URL) when self-hosting.
- ChatboxOpenAI protocol
Model Provider > Add in Settings, with API Host set to the root without /v1.
- Cherry StudioAnthropic and OpenAI protocols
+ Add Provider under Model Provider, with OpenAI and Anthropic root URLs.
- JanAnthropic and OpenAI protocols
Add Custom Provider in Model Providers, on OpenAI-compatible or Anthropic-compatible.
- MstyOpenAI protocol
Add Provider in Msty Studio with /v1 endpoint, API key and Fetch Models.
- AnythingLLMOpenAI protocol
Generic OpenAI in Settings, with Base URL /v1, context window and Max Tokens.
- big-AGIOpenAI protocol
Add another OpenAI-compatible service on the OpenAI entry, then press Models.
- TypingMindAnthropic and OpenAI protocols
Add Custom Models with an Authorization header, or set a custom Proxy endpoint.
- NextChatOpenAI protocol
OPENAI_API_KEY, BASE_URL (without /v1) and CUSTOM_MODELS in the server env.
- SillyTavernOpenAI protocol
Chat Completion with Custom (OpenAI-compatible), /v1 URL and your AIGROW key.
- Raycast AIOpenAI protocol
~/.config/raycast/ai/providers.yaml in Raycast Pro, hot-reloaded on save.
- Obsidian CopilotOpenAI protocol
Add a custom provider in Copilot settings, stored in Obsidian Keychain.
- ChatWiseOpenAI protocol
Custom OpenAI-compatible provider with API Base URL, API Key and Fetch Models.
- HuggingChatOpenAI protocol
OPENAI_BASE_URL, OPENAI_API_KEY and TASK_MODEL in .env.local.
- OnyxOpenAI protocol
OpenAI-Compatible card under Admin Panel, Language Models, Self-hosted & Custom.
- KhojOpenAI protocol
AI Model API with Api Base Url and Api Key, linked to an Openai Chat Model in self-hosted Khoj.
- ollama-logseqOpenAI protocol
Base API URL, API token and Models in the ollama-logseq plugin settings.
- EnconvoAnthropic and OpenAI protocols
OpenAI Compatible or Anthropic Compatible under Settings, AI Model, Add New Provider.
- AlterOpenAI protocol
Add Provider under Settings, API keys, Custom providers with Provider Type Custom.
- Page AssistOpenAI protocol
Custom under OpenAI Compatible API, then select Chat Models from /models.
- ChainlitOpenAI protocol
AsyncOpenAI(base_url=..., api_key=...) with cl.instrument_openai() in app.py.
- WitsyAnthropic and OpenAI protocols
Create Custom Engine with API Specification OpenAI, or Anthropic API Base URL.
- GPT4AllOpenAI protocol
Models, Add Model, Remote Providers, Custom with API Key, Base Url and Model Name.
- PerplexicaOpenAI protocol
OpenAI provider with Base URL and API Key in Settings, Models, plus custom Chat Models.
- Home AssistantOpenAI protocol
Extended OpenAI Conversation custom component with Base Url and API Key.
- Zotero GPTOpenAI protocol
/secretKey, /api and /model commands inside the Zotero GPT input bar.
- JanitorAIOpenAI protocol
A proxy configuration with the full /v1/chat/completions URL and your AIGROW key.
- 5ireOpenAI protocol
An OpenAI Compatible provider whose Endpoint is the /v1 base, with your AIGROW key and model ids.
- BoltAIOpenAI protocol
A Custom provider with Friendly Name, API Key (Optional) and a Base URL that ends in /v1.
- ChatGPTBoxOpenAI protocol
A Custom Model API mode with its own provider whose API Url is the full Chat Completions address.
- DeepChatOpenAI protocol
A Custom Provider with API Type OpenAI Completions, an API Base URL that ends in /v1 and your key.
- HARPA AIOpenAI protocol
A Custom API key card with the proxy URL on the bare origin and the path /v1/chat/completions.
- Smart Composer for ObsidianAnthropic and OpenAI protocols
An OpenAI Compatible provider with Base URL and API Key, then a custom chat model with your Model Name.
- Text Generator for ObsidianOpenAI protocol
Provider Profile OpenAI Chat (Langchain) with API Key, Base Path ending in /v1 and your Model.
- Wave TerminalOpenAI protocol
A custom mode in waveai.json with ai:apitype openai-chat, the full ai:endpoint and a secret for the key.
The API guide has the SDKs, curl, the endpoints and the error codes.
Paste the block and LibreChat runs on your credit.
Buy a credit pack, redeem the code from your email on API access, create a key and put it in place of ag_your_key_here.