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

# Agno

For Agno developers: the `Searxng` toolkit searches with the Search API once you set its `host`.

## Set it up

Give `Searxng` this `host`, with your key in place of `YOUR_SPECSTREAM_KEY`:

host

```text
https://YOUR_SPECSTREAM_KEY@api.specstream.ai/searxng
```

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

Read the key from the environment, here `SPECSTREAM_API_KEY`, and build the address in code:

Python

```python
import os
from agno.agent import Agent
from agno.tools.searxng import Searxng

searxng = Searxng(host=f"https://{os.environ['SPECSTREAM_API_KEY']}@api.specstream.ai/searxng")

agent = Agent(tools=[searxng])
```

## Check it works

Call the toolkit's web search once. It prints the results as JSON, each with a title, URL, and text:

Python

```python
print(searxng.search_web("latest SEC rule on climate disclosure", max_results=5))
```

## 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.

## Your key

Create the key under **Agents & API** in your SpecStream workspace. [Sign up](https://specstream.ai/signup) and get $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).
