Skip to the page

LibreChat

Google PSE stops on January 1, 2027. The setting to change.

LibreChat's google tool calls Google's Custom Search JSON API with GOOGLE_SEARCH_API_KEY and GOOGLE_CSE_ID. Google closed that API to new customers and ends it on January 1, 2027, and LibreChat fixes its address in code.

Change one setting. Move search to LibreChat's web search with searchProvider: searxng and set SEARXNG_INSTANCE_URL=https://api.specstream.ai/searxng/YOUR_KEY. Our test passed with that setting and nothing else changed.

SpecStream scores 97.9 F-score on all 1,000 SimpleQA Verified questions and costs $5 per 1,000 searches, with no daily limit. A new account gets $10 of credit, no card, which covers 2,000 searches.

New accounts get $10 of credit, no card. It covers 2,000 searches.

Google search in LibreChat and what replaces it, from each company's own pages on Nov 10, 2026

SpecStreamGoogle (the google tool)SerperTavily
Role in LibreChatSearch provider of LibreChat's web search, through the SearXNG settingAn agent tool named google, with its own two keysSearch provider and scraperSearch provider and scraper
Address setting in LibreChatSEARXNG_INSTANCE_URL, in .env or as searxngInstanceUrl in librechat.yamlNone. The address is fixed in GoogleSearch.js at www.googleapis.com/customsearch/v1None for search. The address is fixed in LibreChat's code at google.serper.dev/searchTAVILY_SEARCH_URL. A user can enter it only after the admin opts in
Open to a new accountYes. Create a key and start with $10 of credit, no cardNo. Closed to new customers, and existing customers have until January 1, 2027Yes, with 2,500 free queriesYes, with 1,000 free credits every month
Price per 1,000 searches$5, with up to 10 results a search$5 per 1,000 queries after 100 free queries a day, for existing customers only$1.00 per 1,000 in the pack of 50,000 credits$0.008 a credit on pay as you go. A basic search is 1 credit and an advanced search 2
How long it lastsCredit you buy never expiresUntil January 1, 2027, when Google ends the APICredits are valid for 6 monthsCredits reset on the first day of each month
LimitNo daily limit. Up to 8,800 searches a minute on one account10,000 queries a day300 queries per second on the largest packOn a monthly plan, requests stop when the month's credits run out

Why LibreChat admins move Google search to SpecStream

Other Google PSE alternatives for LibreChat

How SpecStream scores

The same numbers as the benchmarks page, from the official tasks and scorers.

How to move LibreChat from Google search to SpecStream

1. Create a key under Agents & API in the SpecStream workspace. A new account gets $10 of credit, no card, which covers 2,000 searches.

2. Check the key with the call LibreChat will send. A 200 with results means LibreChat gets the same.

curl "https://api.specstream.ai/searxng/$SPECSTREAM_API_KEY/search?q=test&format=json"

3. In .env, remove GOOGLE_SEARCH_API_KEY and GOOGLE_CSE_ID and add the instance URL.

SEARXNG_INSTANCE_URL=https://api.specstream.ai/searxng/YOUR_SPECSTREAM_KEY

4. In librechat.yaml, under webSearch, set searchProvider: searxng. Keep your scraper and reranker.

5. Restart LibreChat, turn on web search in a chat and ask a question. Each search shows up in your SpecStream request log with its price.

Frequently asked questions

Something we didn't answer? Talk to a human

Why is Google search not working in LibreChat?
Google closed the Custom Search JSON API to new customers and ends it on January 1, 2027. A new project gets no key, and the google tool throws Request failed with status with Google's error. Set SEARXNG_INSTANCE_URL to SpecStream and search works again.
What is the best Google PSE alternative for LibreChat?
SpecStream, at $5 per 1,000 searches with no daily limit and 97.9 F-score on all 1,000 SimpleQA Verified questions. It runs as LibreChat's SearXNG search provider with one line in .env.
Can I change the Google address in LibreChat?
No. GoogleSearch.js fixes the address at https://www.googleapis.com/customsearch/v1. LibreChat's SearXNG provider takes an address, and https://api.specstream.ai/searxng/YOUR_KEY answers it.
What replaces GOOGLE_SEARCH_API_KEY and GOOGLE_CSE_ID?
One line: SEARXNG_INSTANCE_URL=https://api.specstream.ai/searxng/YOUR_SPECSTREAM_KEY, with searchProvider: searxng in librechat.yaml. There is no engine ID: SpecStream searches the whole live web.
How much does LibreChat web search cost with SpecStream?
$0.005 a search of up to 10 results, or $5 per 1,000. Credit you buy never expires, and a new account starts with $10 of credit, which covers 2,000 searches.
Do I need to host a SearXNG instance?
No. SpecStream answers SearXNG's JSON at https://api.specstream.ai/searxng, so there is no instance to run and no JSON output to turn on. Each search is $0.005.

Sources

SpecStream wrote this page. LibreChat's settings come from its source on GitHub, and each provider's figure from that company's own page.

  1. LibreChat Google tool, GoogleSearch.jsgithub.com/danny-avila/LibreChat/blob/main/api/app/clients/tools/structured/GoogleSearch.js, read Nov 10, 2026
  2. LibreChat config.tsgithub.com/danny-avila/LibreChat/blob/main/packages/data-provider/src/config.ts, read Nov 10, 2026
  3. LibreChat .env.examplegithub.com/danny-avila/LibreChat/blob/main/.env.example, read Nov 10, 2026
  4. LibreChat agents search.tsgithub.com/danny-avila/agents/blob/main/src/tools/search/search.ts, read Nov 10, 2026
  5. LibreChat web.tsgithub.com/danny-avila/LibreChat/blob/main/packages/api/src/web/web.ts, read Nov 10, 2026
  6. Google Custom Search JSON API overviewdevelopers.google.com/custom-search/v1/overview, read Nov 10, 2026
  7. Vertex AI Search pricingcloud.google.com/generative-ai-app-builder/pricing, read Nov 10, 2026
  8. Serperserper.dev/, read Nov 10, 2026
  9. Tavily API creditsdocs.tavily.com/documentation/api-credits.md, read Nov 10, 2026
  10. Tavily pricingtavily.com/pricing, read Nov 10, 2026
  11. Firecrawl pricingfirecrawl.dev/pricing, read Nov 10, 2026
  12. SpecStream benchmarksspecstream.ai/benchmarks, read Nov 10, 2026
  13. SpecStream pricingspecstream.ai/pricing, read Nov 10, 2026
  14. SpecStream for agentsspecstream.ai/agents.md, read Nov 10, 2026