Skip to main content
Keenable SDK with Cerebras Ground answers from Cerebras Inference models in current web pages with the Keenable SDK. Each search result already carries the page text, so a cited answer takes one search and one chat completion. For agents that decide when to search, the SDK ships OpenAI-compatible tool definitions that go straight into a Cerebras request. → Cerebras examples in the Keenable SDK repository

Install

Install the Keenable SDK and the Cerebras SDK, then set your Cerebras key:
The Keenable SDK runs without a key. To use your organization’s limits, also export 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 with to_context(), and ask the model to cite by number:
The answer cites sources as [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. TOOLS holds definitions for keenable_search and keenable_fetch. run_tool_call runs the tool the model picked and returns text to hand back:
The loop ends when the model answers without calling a tool. A failed call goes back to the model as the tool result, so it can try another source. The Node SDK exports the same 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.

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.