> SpecStream is the live web data engine for teams and agents. This is the Markdown copy of https://specstream.ai/docs/integrations/lobehub. Every page, with what SpecStream does and costs: https://specstream.ai/llms.txt

# LobeHub

For self-hosted LobeHub: web search in every chat runs on the Search API once you set its search environment variables on the server.

Set one of the two blocks below in the environment the LobeHub server starts in (for Docker, the `.env` file next to `docker-compose.yml`), with your key in place of `YOUR_SPECSTREAM_KEY`, then restart LobeHub.

## SearXNG provider

[Your key](https://specstream.ai/workspace/search?route=searxng&utm_source=lobehub&utm_medium=howto) goes inside the address, as its last part. LobeHub adds `/search` itself:

.env

```bash
SEARCH_PROVIDERS=searxng
SEARXNG_URL=https://api.specstream.ai/searxng/YOUR_SPECSTREAM_KEY
```

The address then holds your key, so keep it in a secret or an environment setting.

## Firecrawl provider

`FIRECRAWL_URL` ends in `/v2`, and [your key](https://specstream.ai/workspace/search?route=firecrawl&utm_source=lobehub&utm_medium=howto) goes in `FIRECRAWL_API_KEY`. With `CRAWLER_IMPLS=firecrawl`, LobeHub also reads the pages a chat opens through the same address:

.env

```bash
SEARCH_PROVIDERS=firecrawl
CRAWLER_IMPLS=firecrawl
FIRECRAWL_URL=https://api.specstream.ai/firecrawl/v2
FIRECRAWL_API_KEY=YOUR_SPECSTREAM_KEY
```

## Check it works

In a chat, turn on web search for the model and ask about something from this week. The answer lists the pages it searched.

## Cost

Each search is one Search API call at $5 per 1,000 searches of up to 10 results. It comes out of your balance, with no quote and no approval. [Search API](https://specstream.ai/docs/search-api.md) has the details.

LobeHub asks Firecrawl for 20 results in each search, so each Firecrawl search is priced as one search of 20 results; the SearXNG provider stays at 10. A page read through Firecrawl is one Extract API page, at $0.80 per 1,000 pages.

## Your key

[Get your key](https://specstream.ai/workspace/search?route=searxng&utm_source=lobehub&utm_medium=howto) on the Search API screen of your SpecStream workspace. New accounts start with $10 of credit, no card.

The same setting works in other tools too: [Search API by one setting](https://specstream.ai/docs/integrations/drop-in-search.md).
