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

# Install the CLI

> Install and run bounty-cli from npm, or run it without a global install.

The package name and installed binary are both `bounty-cli`. The CLI is open source at [bounty-growth/cli](https://github.com/bounty-growth/cli).

`bounty-cli` is intended for hands-on use by Claude Code, Codex, and other AI coding agents. For the agent workflow, see [Use with Claude & Codex](/cli/claude-codex).

## Run With npx

```bash theme={null}
npx -y bounty-cli@latest login
npx -y bounty-cli@latest whoami
npx -y bounty-cli@latest campaigns list --json
```

## Recommended Agent Setup

For AI coding agents, install skills and authenticate in one command:

```bash theme={null}
npx -y bounty-cli@latest init --all --browser
```

Use `--agent` to target one agent:

```bash theme={null}
npx -y bounty-cli@latest init --agent codex --browser
```

Supported agent targets:

| Target        | Aliases                 |
| ------------- | ----------------------- |
| `codex`       | `codex`                 |
| `claude-code` | `claude`, `claude-code` |
| `cursor`      | `cursor`                |
| `windsurf`    | `windsurf`              |
| `opencode`    | `opencode`, `open-code` |
| `gemini-cli`  | `gemini`, `gemini-cli`  |

## Global Install

```bash theme={null}
npm install -g bounty-cli
bounty-cli login
bounty-cli whoami
```

## Backend Target

Installed usage targets:

```text theme={null}
https://app.bountygrowth.com
```

Override the backend only when directed by Bounty support:

```bash theme={null}
BOUNTY_API_URL=https://app.bountygrowth.com bounty-cli whoami
```

The CLI rejects insecure non-local HTTP URLs.
