> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keenable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Keenable search and fetch work without an API key. To add them to code, use the official SDK for the project's language: https://docs.keenable.ai/sdks.md
> Read an API key from the KEENABLE_API_KEY environment variable. Never ask a user to paste a key into chat; send them to https://docs.keenable.ai/api-keys.md
> On 402 with an API key (code insufficient_credits), stop and ask a human to add credits; don't retry. On 429, wait the number of seconds in Retry-After, then retry.
> Every error, with its cause and fix: https://docs.keenable.ai/errors.md

# Quickstart

> Paste one prompt into your coding agent, or install the SDK in two steps.

QuickstartYour first search in under two minutes

Give your agent web search with no account or API key. Paste one prompt into your coding agent, or set it up yourself in two steps.

[Get an API key](https://docs.keenable.ai/api-keys.md?utm_source=docs\&utm_medium=cta\&utm_campaign=quickstart_hero\&utm_content=get_api_key)

Recommended · copy to your coding agent

Paste this prompt into your coding agent. Your agent reads the SDK guide, adds the official SDK to your project and runs one test search.

<pre id="agent-prompt-text" tabIndex="-1">`Add Keenable web search to this project using the official SDK. Follow https://docs.keenable.ai/sdks.md. Keyless works for trying it; read KEENABLE_API_KEY from the environment for production. Then run a test search with max_results=3 and show me the 3 cited results. If the test call fails (429 or no network), stop, show me the error, and point me to https://docs.keenable.ai/api-keys.`</pre>

Your agent finishes by showing you 3 numbered results, each with a title and a source URL. The prompt works with Claude Code, Cursor, Codex and any other agent that can read a URL.

## Set it up yourself

Two steps take you from nothing to a cited search result. Pick your language, or connect over MCP or the CLI instead.

> [tab] TypeScript
>
> **1. Install**
>
> The SDK needs Node 18 or newer. This command installs it:
>
> ```bash theme={"system"}
> npm install keenable
> ```
>
> **2. Search**
>
> This program runs one search with no API key. It asks for 3 results and prints them as a numbered block your model can cite. Save it as `index.ts`:
>
> ```typescript index.ts theme={"system"}
> import { Keenable } from "keenable";
>
> async function main() {
>   const client = new Keenable(); // keyless: no API key needed to try it
>   const results = await client.search("fastest inference providers 2026", { maxResults: 3 });
>   console.log(results.toContext());
> }
>
> main();
> ```
>
> Run it with `tsx`, which runs TypeScript directly:
>
> ```bash theme={"system"}
> npx tsx index.ts
> ```
>
> It prints a block like this one:
>
> Example output · results vary
>
> ```text Output theme={"system"}
> [1] Fastest LLM Inference Provider 2026: TTFT, tok/s, p99 (https://openbenchmarks.com/inference/fastest-inference-provider) - published 2026-09-03T00:00:00Z
> Baseten recorded the lowest end-to-end p99 latency at 3.23 seconds on this run, with a median of 331 ms, time to first token p95 of 1.16 seconds ...
>
> [2] Best LLM Inference Providers Compared for 2026 - SiliconFlow (https://siliconflow.com/articles/the-best-inference-provider-for-llms)
> Provider Comparison Number | Agency | Location | Services | Target Audience | Pros 1 | SiliconFlow | Global | All-in-one AI cloud platform ...
>
> [3] Hugging Face Inference Providers · Supported Models (https://huggingface.co/inference)
> fireworks-ai fastest | - | - | 1,048,576 | 1.54 | 81 | Yes | Yes ...
> ```

> [tab] Python
>
> **1. Install**
>
> The SDK needs Python 3.9 or newer. These commands create a virtual environment and install the SDK into it:
>
> ```bash theme={"system"}
> python3 -m venv .venv
> source .venv/bin/activate
> pip install keenable
> ```
>
> **2. Search**
>
> This program runs one search with no API key. It asks for 3 results and prints them as a numbered block your model can cite. Save it as `main.py`:
>
> ```python main.py theme={"system"}
> from keenable import Keenable
>
> client = Keenable()  # keyless: no API key needed to try it
> results = client.search("fastest inference providers 2026", max_results=3)
> print(results.to_context())
> ```
>
> Run it:
>
> ```bash theme={"system"}
> python main.py
> ```
>
> It prints a block like this one:
>
> Example output · results vary
>
> ```text Output theme={"system"}
> [1] Fastest LLM Inference Provider 2026: TTFT, tok/s, p99 (https://openbenchmarks.com/inference/fastest-inference-provider) - published 2026-09-03T00:00:00Z
> Baseten recorded the lowest end-to-end p99 latency at 3.23 seconds on this run, with a median of 331 ms, time to first token p95 of 1.16 seconds ...
>
> [2] Best LLM Inference Providers Compared for 2026 - SiliconFlow (https://siliconflow.com/articles/the-best-inference-provider-for-llms)
> Provider Comparison Number | Agency | Location | Services | Target Audience | Pros 1 | SiliconFlow | Global | All-in-one AI cloud platform ...
>
> [3] Hugging Face Inference Providers · Supported Models (https://huggingface.co/inference)
> fireworks-ai fastest | - | - | 1,048,576 | 1.54 | 81 | Yes | Yes ...
> ```

> [tab] Go
>
> **1. Install**
>
> These commands create a Go module and add the SDK to it. The SDK needs Go 1.22 or newer:
>
> ```bash theme={"system"}
> go mod init example.com/keenable-demo
> go get github.com/keenableai/keenable-sdk/go@latest
> ```
>
> **2. Search**
>
> This program runs one search with no API key. It asks for 3 results and prints them as a numbered block your model can cite. Save it as `main.go` in the same directory:
>
> ```go main.go theme={"system"}
> package main
>
> import (
> 	"context"
> 	"fmt"
> 	"log"
>
> 	"github.com/keenableai/keenable-sdk/go"
> )
>
> func main() {
> 	client, err := keenable.New(nil) // keyless: no API key needed to try it
> 	if err != nil {
> 		log.Fatal(err)
> 	}
> 	defer client.Close()
>
> 	results, err := client.Search(context.Background(), "fastest inference providers 2026",
> 		&keenable.SearchOptions{MaxResults: 3})
> 	if err != nil {
> 		log.Fatal(err)
> 	}
> 	fmt.Println(results.ToContext(nil))
> }
> ```
>
> Run it:
>
> ```bash theme={"system"}
> go run .
> ```
>
> It prints a block like this one:
>
> Example output · results vary
>
> ```text Output theme={"system"}
> [1] Fastest LLM Inference Provider 2026: TTFT, tok/s, p99 (https://openbenchmarks.com/inference/fastest-inference-provider) - published 2026-09-03T00:00:00Z
> Baseten recorded the lowest end-to-end p99 latency at 3.23 seconds on this run, with a median of 331 ms, time to first token p95 of 1.16 seconds ...
>
> [2] Best LLM Inference Providers Compared for 2026 - SiliconFlow (https://siliconflow.com/articles/the-best-inference-provider-for-llms)
> Provider Comparison Number | Agency | Location | Services | Target Audience | Pros 1 | SiliconFlow | Global | All-in-one AI cloud platform ...
>
> [3] Hugging Face Inference Providers · Supported Models (https://huggingface.co/inference)
> fireworks-ai fastest | - | - | 1,048,576 | 1.54 | 81 | Yes | Yes ...
> ```

> [tab] curl
>
> **1. Install**
>
> curl ships with macOS, Linux and Windows 10 or later. This command checks that curl is installed:
>
> ```bash theme={"system"}
> curl --version
> ```
>
> **2. Search**
>
> This request runs one search with no API key. Keyless requests need an `X-Keenable-Title` header that names your app:
>
> ```bash curl.sh theme={"system"}
> curl -X POST https://api.keenable.ai/v1/search/public \
>   -H "Content-Type: application/json" \
>   -H "X-Keenable-Title: My App" \
>   -d '{"query": "fastest inference providers 2026", "max_results": 3}'
> ```
>
> **3. Fetch a page**
>
> Fetch is a `GET` request, not a `POST` like search. Pass the page in the `url` query parameter:
>
> ```bash curl.sh theme={"system"}
> curl "https://api.keenable.ai/v1/fetch/public?url=https://keenable.ai" \
>   -H "X-Keenable-Title: My App"
> ```
>
> It returns the page as markdown in `content`. See [Fetch](https://docs.keenable.ai/products/fetch.md).
>
> The search request returns JSON with `title`, `url` and `snippet` on each result:
>
> Example output · results vary
>
> ```json Output theme={"system"}
> {
>   "query": "fastest inference providers 2026",
>   "mode": "pro",
>   "results": [
>     {
>       "title": "Fastest LLM Inference Provider 2026: TTFT, tok/s, p99",
>       "url": "https://openbenchmarks.com/inference/fastest-inference-provider",
>       "snippet": "Baseten recorded the lowest end-to-end p99 latency at 3.23 seconds on this run ..."
>     }
>   ]
> }
> ```

> [tab] MCP
>
> **1. Install**
>
> The MCP server gives any MCP client two tools: `search_web_pages` and `fetch_page_content`. This command adds it to Claude Code:
>
> ```bash theme={"system"}
> claude mcp add keenable --transport http https://api.keenable.ai/mcp --scope user
> ```
>
> Run `/mcp` in Claude Code. You see `keenable` listed as connected.
>
> In Cursor, VS Code and Replit, you can install the server with one click from [MCP server](https://docs.keenable.ai/mcp-server.md#one-click-install). That page also covers every other client.
>
> **2. Search**
>
> Ask your agent a question that needs the web, for example "What are the fastest inference providers in 2026? Cite your sources." It calls `search_web_pages` and answers with linked sources.

> [tab] CLI
>
> **1. Install**
>
> The Keenable CLI searches from your terminal and sets up MCP for your local agents. Install it:
>
> ```bash Homebrew theme={"system"}
> brew install keenableai/tap/keenable-cli
> ```
>
> ```bash macOS / Linux theme={"system"}
> curl --proto '=https' --tlsv1.2 -LsSf \
>   https://github.com/keenableai/keenable-cli/releases/latest/download/keenable-cli-installer.sh \
>   | sh
> ```
>
> ```powershell PowerShell theme={"system"}
> irm https://github.com/keenableai/keenable-cli/releases/latest/download/keenable-cli-installer.ps1 | iex
> ```
>
> **2. Search**
>
> This command runs a search without logging in. The `-p` flag prints readable text instead of YAML:
>
> ```bash theme={"system"}
> keenable search "fastest inference providers 2026" -p
> ```
>
> You see ranked results with titles, URLs and excerpts.
>
> To add Keenable to Claude Code, Cursor, Devin Desktop, Codex and OpenCode, run `keenable configure-mcp --all`. [CLI](https://docs.keenable.ai/cli.md) lists every command.

If you don't send an API key, every caller on your IP address shares 1,000 requests per hour. With an [API key](https://docs.keenable.ai/api-keys.md), your organization gets its own limit with no hourly cap. See [Rate limits](https://docs.keenable.ai/rate-limits.md) for the numbers.

## Next steps

> [card] [Search](https://docs.keenable.ai/products/search.md)
>
> Find ranked web pages about a topic, each with an excerpt of its text.

> [card] [Fetch](https://docs.keenable.ai/products/fetch.md)
>
> Read any URL as clean markdown.

> [card] [SELECT](https://docs.keenable.ai/select.md)
>
> Ask a question and get back a table from live web pages in one SQL query.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.