Install
Install the Keenable SDK and the Cerebras SDK, then set your Cerebras key:KEENABLE_API_KEY: the SDK reads it from the environment. See API keys.
Answer from search results
Search once, render the results as a numbered context block withto_context(), and ask the model to cite by number:
[1], [2] and so on. cited() lists the results that made it into the context, in the same numbering, so the source list matches the citations. A result that did not fit the context’s character budget is not listed.
Let the model search
TOOLS holds definitions for keenable_search and keenable_fetch. run_tool_call runs the tool the model picked and returns text to hand back:
TOOLS and a runToolCall function. See the Node example.
SDK pieces used
See the Python and TypeScript SDK READMEs for every search filter.
Without
KEENABLE_API_KEY, searches run on the shared public tier at lower rate limits. Set the key to use your organization’s limits and remove the hourly cap.Related pages
OmniRoute
Route web search and page fetch through Keenable in the OmniRoute AI gateway with provider keenable-search. No key needed, in OmniRoute 3.8.54 and later.
OpenRouter
Web search and page fetch for any OpenRouter model, as tools it calls itself: from Python, the AI SDK, or the Agent SDK over MCP. No Keenable key needed.
Baseten
Keenable web search and page fetch as server-side tools on Baseten Model APIs, called by the model inside the inference loop.
Tool calling
Give an LLM web search and page fetch as tools. Pass the SDK’s TOOLS to any OpenAI-compatible chat completions client and run each call with run_tool_call.