Repository navigation
Conversation
Follows the existing Tavily/Exa/Bocha/Zhipu/Keenable pattern. Default stays `auto`; nothing changes unless a user picks Keirolabs and enters a key.
Manasbh
force-pushed
the
feat/keirolabs-search
branch
from
November 10, 2026 07:34
cbcbd48 to
e6f7800
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I work at Keirolabs, so weigh the suggestion accordingly.
改了什么 · What changed
Adds Keirolabs as an optional keyed web-search provider, following the existing Tavily/Exa/Bocha/Zhipu/Keenable pattern. Default stays
auto(free search); nothing changes unless a user picks Keirolabs and enters a key.src/tools/search.ts:keirolabsinSEARCH_PROVIDERS/KEYED;keyedRequest→POST https://api.keirolabs.cloud/api/v2/keirowithAuthorization: Bearer <key>, body{ query, maxResults }(≤50). Results maptitle/url/snippet/publishedDatethrough the existingsource()tidy; an emptypublishedDateis dropped. Existing fallback to free search on auth/HTTP failure applies unchanged. Also updated the header comment's list of keyed providers (it was missing Keenable too).keirolabsadded to the settings search keywords (en / zh-CN / ja / ko / ru).test/web-search.unit.test.ts.为什么 · Why
Keirolabs serves queries from its own web index, typically in 100 ms – 1 s, with a free tier (30 req/min). That makes it a low-latency keyed option for the agent's
web_search, next to the existing ones.怎么验证的 · How it was verified
npm run typecheck && npm test(typecheck clean; full suite passes, incl. the new case)npm run docs:check· not applicable, no README/docs changes<option>in the existing picker, no layout/style changeTHIRD_PARTY_NOTICES.md· no new dependenciesAlso checked live against the real API through
SearchService(not mocked): a valid key returns results withbackend: "keirolabs"; an invalid key returns 401, is classified asauth(so Settings shows the key-rejected hint) and falls back to free search.