Connectors
Brave Search
Let Lyna AI search the web, news, images and videos with the Brave Search API, using your own API key.
Connect your Brave Search API key so Lyna AI can look things up on the live web while it builds, then use what it finds.
What it lets you do
- Search the web, with filters.
- Search news, by default from the last 24 hours.
- Search images and videos, with their details.
- Find local businesses and places. Full local search needs a Pro plan, and it falls back to a web search otherwise.
- Summarize results, on a plan that has answers.
- Get web content ready for the AI to read.
| Item | Detail |
|---|---|
| What it asks for | Your Brave Search API key. |
| Who pays the provider | You, through your Brave Search API account. Requests are billed from prepaid credits. |
| Do actions change real data? | No. It only searches, but each request spends your credits. |
| Where it runs | In your project's cloud machine, never on your computer. |
| Who uses it | Lyna AI while it builds, in Build mode. Your published app can use it too: Use a connector in your app. |
What you need before you start
- A Brave Search API account on a plan. Brave asks for a card to prevent abuse, and charges only for credits you choose to buy.
- Credits for what you ask: billing is prepaid, per request.
- Edit access to your Lyna project.
- An open project: a local connector starts in the project's cloud machine.
Permissions in Brave Search
Brave describes its access as one key for every endpoint: the key has no scopes to choose. What a call can do depends on your plan, and what it costs comes from your credits. Treat the key as access to your whole API account.
| Task | What you need |
|---|---|
| Search the web, news, images and videos | The Search plan, 50 queries per second |
| Summarize results | The Answers plan, 2 queries per second |
| Full local search | A Pro plan, else a web search |
| Store results or train on them | A plan that includes storage rights |
See the Brave Search API.
Ways to connect
On the connector's page. A key, stored encrypted and never shown again. It reaches the project's cloud machine when the server starts, so any editor of that project can read it there.
Who owns the account? The person who pasted the key. Every search spends that person's credits.
Who can use it? Only you, in the projects you link it to, until you change it. On the connector's page, Who can use it also offers Only this project. The whole workspace is not offered, because a local server runs in your project's cloud machine. See Who can use a connection.
Set it up
Get your key
Create a Brave Search API account at brave.com/search/api, choose a plan, then generate a key in the developer dashboard.
Open the connector
Open the + menu of the chat and choose Connectors. Find Brave Search with the search field or under Notes and search, then open its page.
Connect
Choose Connect. The New connection page opens. Under Configure connection, paste your key in Brave API key. Get value opens your keys in the Brave dashboard. Choose Connect at the bottom of the page. Lyna saves the key encrypted and never shows it again. Sharing, just above, sets who can use it.
Read the result
The page tests the connection and shows the result. Connected means Lyna can use it.
What the field expects:
| Field | Format | Secret? | Where you find it |
|---|---|---|---|
| Brave API key | A key starting with BSA | Yes. Anyone who has it can spend your credits. | The Brave Search API developer dashboard |
Check it works
After you choose Connect, the page tests the connection and shows the result. Run it again at any time with Test connection. Connected proves that the Brave Search server started in your project's cloud machine and listed its tools. A pass does not prove access to every piece of data. The test only starts the server and lists its tools, so a wrong key or an empty plan can first show at a real search.
To check for real, ask for something you know exists:
- "Search the web for the Lyna docs, and give me the first 3 results."
What to ask Lyna AI
Type these in the chat, in Build mode, and adjust the names to yours. Once it is connected, Use Brave Search on its page starts a message for you.
| What you build or do | What to type | What happens |
|---|---|---|
| Write from recent news | "Search the news for the latest changes to this payment regulation and summarize them in a page section." | Lyna AI searches, reads the results and writes the section. |
| Compare sources | "Find 3 recent articles on onboarding for mobile apps, and tell me what they agree on." | It searches and compares what it finds. |
| Find images | "Search for free images of mountains and tell me where each one comes from." | It lists images with their source. Check each licence yourself. |
| Find videos | "Find 3 short videos that explain two-factor sign-in." | It lists videos with their details. |
| Add a local list | "Find coffee shops near this address for my city guide page." | It searches places, on a Pro plan, or falls back to a web search. |
| Check a library | "Search the web for this error message and tell me the likely cause." | It searches and answers in the chat. |
| Get a short answer | "Summarize what the web says about this topic." | On a plan with answers, it summarizes the results. |
Approvals and tool switches
Before a call, Lyna AI shows the tool and what it asks. You choose Deny, Allow once, Always allow this tool or Always allow this connector. A tool its server marks as read-only does not ask. A changed or new tool asks again, and Ask again on the connector's page takes a choice back.
Under What Lyna AI can use, each tool has a switch. Lyna AI stops using a tool you turn off, in your chats in this project.
Stay safe
What a connector answers reaches the AI as data, never as instructions. Read each approval before you accept it.
- This key reaches your whole Brave Search API account, so never put it in code or in a message.
- Brave's billing is per request, so a wide research task can use many. Keep an eye on your credits in its dashboard.
- Search results come from the open web. Lyna passes them to the AI as data, not as instructions.
Limits
- The Search plan allows 50 queries per second, and Answers 2.
- A query holds up to 400 characters and 50 words.
- Web search returns 1 to 20 results per request, and image search 1 to 200.
- See Brave Search MCP server.
- Connector tools run in Build mode. Plan and Ask do not run them.
Troubleshooting
| What you see | What it means and what to do |
|---|---|
| Needs a key | A value is missing. Choose Connect and paste it. |
| The server did not accept the key. | The key is wrong, or it was deleted. Copy a valid one from the Brave dashboard, choose Delete connection under More options, then Connect and paste it. |
| The project's cloud machine is off. Open the project, then test again. | This connector runs in that machine. Open the project, then choose Test connection. |
| The server stopped before it answered. Check its command and settings. | Choose Test connection. If it stops again, choose Delete connection under More options, then Connect. |
| It holds saved values and other people can edit this project, so it did not start. Use it in a project only you can edit. | Your key sits in the project's cloud machine, and code another editor adds runs there. Use it in a project only you can edit. |
| Not tested yet | No test has answered. Choose Test connection. |
| Connection failed | The page says why next to it. If the server did not answer, choose Test connection. |
| A call fails with a permission error | Connected does not prove access to every piece of data. Brave Search refused the call with the rights of the account you connected. Check Permissions in Brave Search above, then try again. |
| New tools to review | The server changed its list of tools, so Lyna stops using it until you decide. Read the list, then choose Approve new tools. |
| Turned off | Lyna AI does not use it. Choose Turn on. |
| Local search returns web results | Full local search needs a Pro plan. |
| The summary tool returns nothing | It works from a web search made with summaries on, and needs a plan with answers. Ask Lyna to search again first. |
Disconnect
Turn off stops Lyna from using the connector and keeps your settings. Remove from this project, under More options, takes it out of this project only, and shows when another project uses it. Delete connection, in the same menu, removes it from every project, with what it stored, and says first how many projects lose it. If you stop using the key, delete it in your Brave dashboard as well.
Related
Need help?
Ask the team, read what changed, or learn from the blog.