Repository navigation
feat(web-search): add Keenable Search provider - #3686
Closed
ilya-bogin-keenable wants to merge 2 commits into
Closed
ilya-bogin-keenable wants to merge 2 commits into
ilya-bogin-keenable wants to merge 2 commits into
Conversation
Add Keenable Search as an opt-in provider that works without an API key through its public endpoint, with an optional host-local encrypted key that switches to the keyed endpoint for higher rate limits. Expose the provider in Web Search settings and capability discovery. Cover request routing, optional credentials, and legacy config loading.
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.
Summary
Adds Keenable Search as an opt-in WebSearch provider next to free Exa MCP, Exa Search API, Tavily and DeepSeek. Like free Exa MCP it needs no API key: without one it calls Keenable's public endpoint. A key saved in the existing encrypted credential vault is optional and switches to the keyed endpoint for higher rate limits. The default provider stays
exa_mcp_free; nothing changes unless a user selects Keenable.Related: #2673 (configurable search backends, delivered by #2740).
Type and Areas
Type:
Feature
Areas:
Rust services integrations and core WebSearch runtime, config contracts, web UI settings, i18n, interactive capability catalog
Motivation / Impact
WebSearch has one keyless provider, the shared free Exa MCP endpoint, and #2673 shows what happens when its quota runs out. Keenable gives users a second keyless option they can switch to in Settings > Web Search without creating an account.
KeenableSearchProviderinservices-integrations/src/web_tools/keenable.rs, following the DeepSeek and Tavily providers:POST https://api.keenable.ai/v1/search/publicwith{"query", "max_results"}, or/v1/searchwithX-API-Keywhen a key is saved. Results go through the shared validation, deduplication and truncation;published_atis kept when it is a date string, page snippets are dropped (WebFetch reads content), as Tavily'scontentis.resolve_providerreads the Keenable credential as optional, so a missing key is not a configuration error.read_credentialnow wraps a newread_optional_credential.WebSearchProviderId::KEENABLE,providers.keenable.credentialId(defaultkeenable-search-api) in config contracts; older configs load unchanged.pnpm run capabilities:generate.What is sent to Keenable: the search query and result count, with the header
X-Keenable-Title: OpenBitFun; the API key only if the user saved one.Verification
cargo test --locked -p openbitfun-services-integrations --no-default-features --features web-tools --lib web_tools::tests: 24 passed (5 new Keenable tests: keyless path and headers, saved and blank keys, request validation, empty vs invalid responses, HTTP error and Retry-After mapping)cargo test --locked -p openbitfun-core --no-default-features --features web-tools --lib service::web_search::tests: 5 passed (new optional-credential test; Keenable added to the credential lifecycle test)cargo test --locked -p openbitfun-config-contracts --lib: 145 passed (new legacy-payload test for the Keenable config)cargo test --locked -p openbitfun-runtime-ports --lib: 8 passedcargo clippyon the touched crates: no warnings in the changed files;pnpm run fmt:rs,git diff --checkpnpm --dir src/web-ui exec node scripts/run-vitest.mjs runonConfigAPI.test.ts,WebSearchSettingsPage.presentation.test.ts,settingsRegistry.test.ts: 49 passedpnpm run type-check:web: passedeslinton the touched web UI files: cleanpnpm run i18n:audit: passed, 0 warnings;pnpm run capabilities:check: verified;node scripts/check-core-boundaries.mjs: passedKeenableSearchProvider::new(None)(temporary local test, not committed): "Rust 1.0 release date" returned 10 results in 391 ms, "tokio runtime spawn_blocking" 10 results in 599 ms, all with titles and HTTP(S) URLsNot run: the desktop app itself (no screenshot), and a live call with a saved key (the keyed request is covered by a fixture test).
Reviewer Notes
Disclosure: I work at Keenable, which runs this API.
Checklist