> ## 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.

# OpenCode

> opencode-keenable — a native plugin giving OpenCode agents web search and page fetch.

*Coding-agent plugin*

`opencode-keenable` gives OpenCode agents web search and page fetch as native tools — no CLI to install, no login step. Calls the Keenable REST API directly from the plugin rather than wrapping a separate binary.

→ [opencode-keenable on npm](https://www.npmjs.com/package/opencode-keenable)

## Install

### Add the plugin

Add one line to `opencode.json`:

```json theme={"dark"}
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-keenable"]
}
```

OpenCode installs the plugin with Bun on startup, and the tools register on the next launch.

### Use it

Two tools register automatically: `keenable_search` (natural-language `query`, plus optional `site` and date filters) and `keenable_fetch` (one `http(s)` URL → clean markdown). Just ask something that needs the web.

<Note>
  Set `KEENABLE_API_KEY` to authenticate — this removes the hourly request cap. Without a key, calls run on the shared public tier at [lower rate limits](/rate-limits).
</Note>
