Kirha CLI
Command Line Interface (CLI)
This tool allows you to interact with Kirha directly from a terminal. For example, you can log in to your account, run searches and tasks, and configure agents to use Kirha MCP, skills, etc. In this guide, we will look at the main features of the CLI and how to use them.
kirha-ai/kirha-cli
1
Installation
curl -fsSL https://cli.kirha.com/install.sh | shDownloads a precompiled binary for macOS (arm64/x64) or Linux (x64/arm64) and installs to ~/.kirha/bin/kirha. Your shell PATH is updated automatically.
npm install -g @kirha/cliOr run once without installing:
npx @kirha/cli search "..."Authentication
Get an API key
Sign up at app.kirha.com and create an API key from your project settings.
Log in
kirha auth login --api-key <YOUR_API_KEY>Or interactively:
kirha auth loginCredentials are stored in ~/.config/kirha/auth.json (user-readable only).
API key resolution order
--api-keyflag (per command) → 2. Config file (~/.config/kirha/auth.json) → 3.KIRHA_API_KEYenvironment variable.
Commands
Search
Query real-time data across any vertical.
kirha search "What's the largest USDC holder on Base?" --vertical cryptoWith summarization:
kirha search "Latest patents in quantum computing" --summarize
kirha search "Latest SEC filings for Nvidia" --summarize --instruction "Format as table"Prop
Type
Input can come from argument, stdin, or pipe:
echo "What's hot in DeFi today?" | kirha searchPlan
Preview execution steps and estimated cost before running a query.
# Create a plan
kirha plan create "Compare ETH vs Base trading volume"
# Execute it
kirha plan exec plan_abc123Task
Run long-running deep research (can take several minutes).
# Create and wait for result
kirha task run "Compare AI strategies of Google, Microsoft, Meta"
# Fire and forget
kirha task create "Compare AI strategies..."
kirha task status tsk_abc123
kirha task result tsk_abc123Prop
Type
Tools
Call individual Kirha tools directly.
# List available tools
kirha tools list --vertical crypto
# Run a tool
kirha tools run zerion_getEthereumWalletProfitAndLoss \
--input '{"currency":"usd","ethereumAddress":"0x..."}'Discovery
Browse available verticals and providers.
kirha discovery verticals list
kirha discovery verticals get crypto
kirha discovery providers list
kirha discovery providers get zerionMCP
Install the Kirha MCP and configure AI clients.
# Interactive picker
kirha mcp install
# Target specific clients
kirha mcp install --client claudecode
kirha mcp install --client claudecode,codex
kirha mcp install --client allSupported clients: Claude Code, Codex, OpenCode, Gemini CLI, Droid.
kirha mcp update --client claudecode # re-sync API key
kirha mcp remove --client claudecode # uninstall
kirha mcp show --client claudecode # show configSkills
Install the Kirha Skill and configure AI agents.
kirha skills install --yes
kirha skills install --agent claude-code --yesSupports 45+ agents including Claude Code, Cursor, Cline, Codex, and more.
Config
Set defaults so you don't have to repeat flags.
kirha config set vertical crypto
kirha config set runtime standard
kirha config get vertical
kirha config list
kirha config unset verticalPriority: flag → config file → environment variable.
Upgrade
kirha upgrade # install latest version
kirha upgrade --check # check without installingOutput format
All commands output JSON, one object per invocation. Pipe to jq for processing:
kirha search "Top 5 stablecoin yields" | jq '.summary'Errors go to stderr as stable JSON:
{ "error": { "code": "AUTH_REQUIRED", "message": "..." } }Exit codes: 0 success, 2 bad usage, 3 auth required, 4 rate limit, 5 network error, 6 expired plan.
Uninstall
rm -rf ~/.kirha ~/.config/kirhanpm uninstall -g @kirha/cli
rm -rf ~/.config/kirha