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

# CLI

> Authenticate, configure MCP, and search from the terminal

[`keenable-cli`](https://github.com/keenableai/keenable-cli) is a single-binary CLI for Keenable — authenticate, manage API keys, configure MCP for your AI clients, and search the web from the terminal.

## Installation

<CodeGroup>
  ```bash Homebrew theme={null}
  brew install keenableai/tap/keenable-cli
  ```

  ```bash macOS / Linux theme={null}
  curl --proto '=https' --tlsv1.2 -LsSf \
    https://github.com/keenableai/keenable-cli/releases/latest/download/keenable-cli-installer.sh \
    | sh
  ```

  ```powershell PowerShell theme={null}
  irm https://github.com/keenableai/keenable-cli/releases/latest/download/keenable-cli-installer.ps1 | iex
  ```

  ```bash Source theme={null}
  cargo install --git https://github.com/keenableai/keenable-cli
  ```
</CodeGroup>

## Quick start

```bash theme={null}
# Login with your Keenable account
keenable login

# Configure MCP for your AI clients (Claude Code, Cursor, etc.)
keenable configure-mcp --all

# Search the web
keenable search "rust async patterns" -p
```

## Authentication

```bash theme={null}
keenable login                          # Device-code login (opens browser)
keenable login --api-key <KEY>          # Save API key directly (CI, servers)
keenable logout                         # Clear stored credentials
```

## MCP setup

```bash theme={null}
keenable configure-mcp                  # Show client status
keenable configure-mcp --all            # Configure all detected clients
keenable configure-mcp --cursor         # Configure a specific client
keenable reset --all                    # Remove Keenable from all clients
```

Supported clients: Claude Code, Claude Desktop, Cursor, Windsurf, Codex, OpenCode.

## Search

```bash theme={null}
keenable search "query"                 # YAML output (for agents)
keenable search "query" -p              # Pretty output (for humans)
keenable search "query" --api-key KEY   # Use a specific API key
```

## Fetch

```bash theme={null}
keenable fetch https://example.com      # Fetch page content
keenable fetch url1 url2 -p             # Fetch multiple URLs, pretty output
```

## Updating

The CLI checks for updates automatically once per hour. To update manually:

```bash theme={null}
brew upgrade keenable-cli               # Homebrew
# or re-run the installer script
```
