TL;DR:

  • Install each AI CLI tool individually with proper commands
  • Configure API keys for each tool separately
  • Use tools for AI-assisted development and data processing

Tool-by-Tool Installation Guide

Prerequisites

Install Bun Runtime

curl -fsSL https://bun.sh/install | bash

Install Golang (for Crush CLI)

# Ubuntu/Debian
sudo apt install golang-go

# macOS
brew install go

# Windows
choco install golang

GEMINI CLI

Installation

npm install -g @google/gemini-cli

Verify Installation

gemini --version

Configuration

gemini config set api-key YOUR_GOOGLE_API_KEY

Basic Usage

gemini ask "Explain async/await in JavaScript"

OpenCode CLI

Installation

curl -fsSL https://opencode.ai/install | bash

Verify Installation

opencode --version

Configuration

opencode auth login

Basic Usage

opencode "Generate a React component"

Qwen Code CLI

Installation

npm install -g @qwen-code/qwen-code@latest

Verify Installation

qwen --version

Configuration

qwen config set api-key YOUR_ALIBABA_API_KEY

Basic Usage

qwen "Refactor this function"

Crush CLI

Installation

go install github.com/liljencrantz/crush@latest

Verify Installation

crush --version

Basic Usage

echo "name,age\nAlice,30\nBob,25" | crush "select name, age from input where age > 20"

References