Skip to content

Proposal: opt-in Keenable web search (keenableSearchApiEnabled), keyless #403

Open

Description

@ilya-bogin-keenable

WebSearch currently has three paths in packages/core/src/tools/web-search-handler.ts: the built-in Plus backend (default), DeepSeek official search behind deepseekSearchApiEnabled, and a custom webSearchTool script. For users outside the Plus plan, or with an LLM BASE_URL other than api.deepseek.com, the only alternative today is writing their own script.

Would you accept a fourth opt-in path that follows the deepseekSearchApiEnabled pattern exactly?

  • New setting keenableSearchApiEnabled (boolean, default false). When it is off, nothing changes.
  • When on, WebSearch calls Keenable's keyless endpoint (POST https://api.keenable.ai/v1/search/public). No sign-up or API key needed; the keyless limit is 1,000 requests per hour per IP.
  • Optional env.KEENABLE_API_KEY (or DEEPCODE_KEENABLE_API_KEY) switches to the keyed endpoint for higher limits. --doctor already hides env.* values.
  • DeepSeek official search keeps priority if both switches are on. Keenable takes priority over webSearchTool, the same way DeepSeek search does. No fallback to other providers on error.
  • It also works without an LLM key, since it does not need the query-language step.

I have it built on a local branch: a new tools/keenable-search.ts (about 80 lines, modeled on deepseek-search.ts), the setting wired through settings.ts, openai-client.ts, settings-diagnostics.ts and the VS Code extension, tests in keenable-search.test.ts plus a diagnostics test, and a section in docs/configuration.md / configuration_en.md. 345 lines added, nothing removed. npm run lint, format:check and the core typecheck pass, the touched test files pass (106 tests), and a live run returned 10 results per query in under a second.

If this fits, I can open the PR. Happy to rename the setting or drop the docs part if you prefer.

Disclosure: I work at Keenable, which runs this API.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions