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

# Hive CLI

> Run the Hive catalog from your terminal for scripts, cron jobs, and setup checks.

The CLI reaches the same tools your agent does. It is useful when you want data in a shell
script, when you need to confirm credentials work, or when you are setting up a client and
want the config generated for you.

## Install

```bash theme={null}
npx -y -p hive-intelligence@latest hive init --all --browser
```

That one command installs the CLI, walks you through authentication in the browser, and
detects which AI clients you have so it can write their config for you.

Requires Node 22.12 or newer. The package is
[`hive-intelligence`](https://www.npmjs.com/package/hive-intelligence) on npm, currently
version 1.3.0.

## Authenticate

```bash theme={null}
hive auth login
```

This opens a browser, you approve, and the CLI stores a key locally. Check it worked:

```bash theme={null}
hive auth whoami
```

For CI, set `HIVE_API_KEY` in the environment instead of running an interactive login.

## Your first call

```bash theme={null}
hive tools call get_token_price --args '{"token":"BTC"}'
```

Or search for the right tool first:

```bash theme={null}
hive tools search "funding rates"
```

## Check your setup

```bash theme={null}
hive doctor
```

`doctor` checks your API key, the endpoint, server health, the tool catalog, and whether a
CLI update is available. Run it first whenever something is not working.

<Card title="Command reference" icon="terminal" href="/cli/commands">
  Every command and what it does.
</Card>
