Dify
The Kaer plugin lets Dify agents, chatflows and workflows search the web through Kaer Search. It adds one tool, Kaer Search, which takes a query and returns ranked results with titles, links and snippets. On the deep lane each result also carries the page's main text.
- Plugin
kaer-ai/kaerin the Dify Marketplace- Source
- Kaer-AI/dify-plugin-kaer
- Requires
- Dify 1.10.0 or later
- Price
- Each search is billed like
POST /v1/search, see Search pricing
#Before you begin
- A key with the
searchscope. See Authentication. - Search open on your account: add a card in Billing, which comes with 1,000 free web searches, or make a first top-up of $5 or more. Until then a search returns 403
tier_required. - Dify 1.10.0 or later. The dark-theme icon shows from Dify 1.11.0.
- Outbound HTTPS from your Dify instance to
api.kaer.aion port 443. The plugin connects to no other host.
#Install the plugin
- In Dify, open Plugins, find Kaer in the Marketplace and install it.
- Open the installed plugin and add your API key in its authorisation settings.
- Save. Dify checks the key by running one search on the
weblane for one result. That check is billed like any other web search; a check that fails is not billed.
Dify stores the key with your other tool credentials. The plugin sends it only to api.kaer.ai, in the Authorization: Bearer header.
#Set the parameters
Add Kaer Search to an agent, a chatflow or a workflow tool node.
| Parameter | Set by | Default | What it does |
|---|---|---|---|
query | The model or you | Required | What to search for, 1 to 512 characters. |
lane | You, in the node settings | auto | How Kaer runs the search. See Choose a lane. |
num_results | You, in the node settings | 5 | Results to return, from 1 to 25. |
include_domains | The model or you | Empty | Comma-separated hosts that results must come from, such as bbc.co.uk, reuters.com. Subdomains count. Up to 20. |
exclude_domains | The model or you | Empty | Comma-separated hosts to leave out. Up to 20. |
Hosts can be typed as example.com, https://example.com/page or *.example.com; the plugin keeps the host name only.
#Choose a lane
| Lane | What it does | Per query | Timeout |
|---|---|---|---|
web | Kaer's own index alone. Fastest and cheapest. | $0.0005 | 6 s |
fast | Kaer's index racing the live web. | $0.001 | 12 s |
deep | Every lane, re-ranked. Results carry the page's main text, up to 4,000 characters, when the page could be read. | $0.003 | 40 s |
auto | Kaer picks a lane for each query and bills the lane that served it. | As served | 40 s |
A search that fails or runs out of time is not billed.
#Read the output
The tool node gives you two outputs:
text: a short summary for people and models. A line naming the query and the lane that served it comes first, then Kaer's instant answer when there is one. Each result follows with its title, link, publication date when known and snippet (up to 400 characters); deep results add up to 800 characters of the page text, and drop the snippet when the page text begins with it. Notes from Kaer come last.json: the full Search response, so later nodes can read any field, such asserved_lane,results[].url,results[].text(deep only),answer,warningsandkaer.request_id.
Kaer search for "uk bank holidays 2027" (auto lane, served by fast, 1 result)
1. Bank holidays - GOV.UK
https://www.gov.uk/bank-holidays
The next bank holiday in England and Wales is ...#Handle errors
An error stops the tool with a message that says what to do, with the HTTP status, Kaer's error code and the request ID; a timeout or a connection failure says so instead. In an agent, the model sees the message and can try again. Input problems, such as an empty query or a value in include_domains that is not a host name, are reported before any request is sent.
| Status | Code | What it means |
|---|---|---|
| 401 | invalid_api_key | The key is malformed, unknown, revoked or expired. |
| 402 | insufficient_credits | Your balance cannot cover the call's hold. Free credit never pays for mail. |
| 403 | tier_required | Your tier does not include this service yet. |
| 403 | insufficient_scope | The key does not have the endpoint's scope. |
| 403 | ip_not_allowed | The caller's IP is not on the key's allow-list. |
| 429 | rate_limit_exceeded | Too many requests this minute for the key or the account, or too many invalid keys from your address. |
| 429 | too_many_concurrent_searches | Your account already has its maximum of searches in flight: your tier's figure, or your search plan's when that is higher. |
| 502 | search_failed | The search service failed. Nothing was charged. |
| 503 | search_busy | Search is at capacity. Nothing was charged. |
| 502 or 503 | search_unavailable | Search is unreachable or paused. Nothing was charged. |
| 504 | search_timeout | Search ran out of time. Nothing was charged. |
Every code, with its fix, is in Errors.